From 03a1d02ee3f5b855ccdfc4e8f8a0a794f41bf564 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Mon, 18 May 2009 21:08:37 +0200 Subject: [PATCH] Rewrite session Part 3 --- blogthon.cgi | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/blogthon.cgi b/blogthon.cgi index 6cdea07..a56dc28 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -285,10 +285,11 @@ else: print ' ' print '' + print '
' + print '' # Staticpage if static_display != "": content = open(staticpages_dir + static_display, "r") - print '
' print '
' + re.sub('\d+?-', '', static_display) + '
' print '
' print '

' @@ -302,7 +303,6 @@ else: print '

' print '
' print '
' - print '
' content.close() # Entry else: @@ -318,7 +318,6 @@ else: if post_display == title or not post_display: if allentries_display == "1" or entry_counter < entries_per_page: content = open(entry, "r") - print '
' if permalinks: print '
' + title + '
' else: @@ -333,8 +332,6 @@ else: print '
' print '
' print '
' - print '
' - print '' # Comments... # ... are shown when post_display and comments_file isn't false @@ -343,6 +340,9 @@ else: if comments_file: comments_file = glob.glob(entries_dir + title + '.comments') comments_content = open(comments_file[0], "r") + print '' + print '
' + print '' print '
' for line in comments_content: if line.split(".", 1)[0] == "-": @@ -354,7 +354,6 @@ else: print '
' print ' ' + line.strip() + '
' print '
' - print '
' print '' comments_content.close() @@ -362,14 +361,15 @@ else: random_int_a = random.randint(1,9) random_int_b = random.randint(1,9) cquizv = random_int_a + random_int_b - print '
' - print ' ' - print ' ' - print ' ' - print '
' - print '
' - print '
' - print '
' + print '
' + print ' ' + print ' ' + print ' ' + print '
' + print '
' + print '
' + print '
' + print '' if comments == "True": comments_file = glob.glob(entries_dir + title + '.comments') @@ -377,6 +377,7 @@ else: print '
' print ' no comments' print '
' + print '' elif comments_file and not post_display: comments_content = open(comments_file[0], "r") comments_counter = 0 @@ -385,6 +386,7 @@ else: print '
' print ' comments (' + str(comments_counter) + ')' print '
' + print '' comments_content.close() content.close() @@ -393,6 +395,7 @@ else: if not month_display and not post_display and not allentries_display and entry_counter == entries_per_page: # Display pagelist print '
View all entries...
' + print '
' print '' print ' ' print ''