/[theodore]/bunnyblog/admin.cgi


UCC Code Repository

Diff of /bunnyblog/admin.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by theodore, Fri Feb 1 02:19:08 2008 UTC revision 17 by theodore, Fri Feb 1 03:48:08 2008 UTC
# Line 174  if form.has_key('page'): Line 174  if form.has_key('page'):
174                  blogtags = re.compile(r'<@[email protected]>index.cgi\?(page|title|index)=(.*?).><span>(.*?)</span>')                  blogtags = re.compile(r'<@[email protected]>index.cgi\?(page|title|index)=(.*?).><span>(.*?)</span>')
175                  urltags = re.compile(r'<a href="(.*?)"><span>(.*?)</span>')                  urltags = re.compile(r'<a href="(.*?)"><span>(.*?)</span>')
176                  imgtags = re.compile(r'<@[email protected]>gallery.cgi\?image=(.*?)"><span>(.*?)</span>')                  imgtags = re.compile(r'<@[email protected]>gallery.cgi\?image=(.*?)"><span>(.*?)</span>')
177                    rsstags = re.compile(r'<@[email protected]>blog.rss"><span><img src="templates/blog/rss.png" style="height:15px;width:15px" alt="" />')
178                  for line in menu.splitlines()[1:-1]:                  for line in menu.splitlines()[1:-1]:
179                          line = line.strip()                          line = line.strip()
180                          blogs = blogtags.findall(line)                          blogs = blogtags.findall(line)
# Line 186  if form.has_key('page'): Line 187  if form.has_key('page'):
187                          elif imgs:                          elif imgs:
188                                  line = '[blog=image:%s]%s[/blog]' % imgs[0]                                  line = '[blog=image:%s]%s[/blog]' % imgs[0]
189                          htmlmenu += line + "\n"                          htmlmenu += line + "\n"
190                                            htmlmenu = htmlmenu.replace('<a href = "<@[email protected]>blog.rss"><span><img src="templates/blog/rss.png" style="height:1em;width:1em" alt="" /> Link to <@[email protected]> RSS Feed</span></a>', "[rss/]")
191                    htmlmenu = htmlmenu.replace('<a href = "<@[email protected]>blog.rss"><span><img src="templates/blog/rss.png" style="height:1em;width:1em" alt="" /> ',"[rss]")
192                    htmlmenu = htmlmenu.replace('</span></a>', "[/rss]")
193    
194                  htmlmenu = blog.cleanse(htmlmenu)                  htmlmenu = blog.cleanse(htmlmenu)
195                  main = main.replace("<@[email protected]>", htmlmenu)                  main = main.replace("<@[email protected]>", htmlmenu)

Legend:
Removed from v.13  
changed lines
  Added in v.17

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26