Some typo fixes
This commit is contained in:
parent
9197630601
commit
ea64a53ba3
10
blogthon.cgi
10
blogthon.cgi
@ -171,7 +171,7 @@ if cname and ctext and ctitle:
|
|||||||
ctext = ctext.replace("<", "<") \
|
ctext = ctext.replace("<", "<") \
|
||||||
.replace(">", ">") \
|
.replace(">", ">") \
|
||||||
.replace("\"", """)
|
.replace("\"", """)
|
||||||
|
|
||||||
# Add comment
|
# Add comment
|
||||||
if not cquiz == cquizv:
|
if not cquiz == cquizv:
|
||||||
errorpage("Brainmode")
|
errorpage("Brainmode")
|
||||||
@ -182,7 +182,7 @@ if cname and ctext and ctitle:
|
|||||||
content = open(entries_dir + ctitle + '.comments', "w")
|
content = open(entries_dir + ctitle + '.comments', "w")
|
||||||
content.close()
|
content.close()
|
||||||
except:
|
except:
|
||||||
errorpage('not writable entries_dir')
|
errorpage('Entries_directory not writable!')
|
||||||
comments_file = glob.glob(entries_dir + ctitle + '.comments')
|
comments_file = glob.glob(entries_dir + ctitle + '.comments')
|
||||||
try:
|
try:
|
||||||
content = open(comments_file[0], "a+")
|
content = open(comments_file[0], "a+")
|
||||||
@ -199,7 +199,7 @@ if cname and ctext and ctitle:
|
|||||||
smtp.sendmail(blog_title, mail_to, msg)
|
smtp.sendmail(blog_title, mail_to, msg)
|
||||||
smtp.quit()
|
smtp.quit()
|
||||||
except:
|
except:
|
||||||
errorpage('commentsfile seems not to be writable!')
|
errorpage('Commentsfile not to be writable!')
|
||||||
|
|
||||||
# Read entries and store their title and timestamp
|
# Read entries and store their title and timestamp
|
||||||
entries = []
|
entries = []
|
||||||
@ -223,7 +223,7 @@ if feed_display == "atom":
|
|||||||
blog_title_md5sum = generate_uuid(blog_title)
|
blog_title_md5sum = generate_uuid(blog_title)
|
||||||
title_md5sum = generate_uuid(title)
|
title_md5sum = generate_uuid(title)
|
||||||
|
|
||||||
# Atom need a 2byte string
|
# Atom needs a 2byte string
|
||||||
month = str(date[1])
|
month = str(date[1])
|
||||||
day = str(date[2])
|
day = str(date[2])
|
||||||
hour = str(date[3])
|
hour = str(date[3])
|
||||||
@ -235,7 +235,7 @@ if feed_display == "atom":
|
|||||||
if len(str(date[4])) == 1: min = '0' + str(date[4])
|
if len(str(date[4])) == 1: min = '0' + str(date[4])
|
||||||
if len(str(date[5])) == 1: sec = '0' + str(date[5])
|
if len(str(date[5])) == 1: sec = '0' + str(date[5])
|
||||||
|
|
||||||
document_header("atom")
|
document_header("atom")
|
||||||
print '<link href="' + blog_url + '/?feed=atom" rel="self" type="application/atom+xml"/>'
|
print '<link href="' + blog_url + '/?feed=atom" rel="self" type="application/atom+xml"/>'
|
||||||
print ' <author>'
|
print ' <author>'
|
||||||
print ' <name>' + blog_title + '</name>'
|
print ' <name>' + blog_title + '</name>'
|
||||||
|
Loading…
Reference in New Issue
Block a user