diff --git a/Bantracker/bans.cgi b/Bantracker/bans.cgi index 8739f50..907dfe0 100755 --- a/Bantracker/bans.cgi +++ b/Bantracker/bans.cgi @@ -13,6 +13,7 @@ # ### +import os import sys import time # This needs to be set to the location of the commoncgi.py file @@ -20,8 +21,9 @@ sys.path.append('/var/www/bot') from commoncgi import * ### Variables -db = '/home/bot/data/bans.db' +db = '/home/bot/data/bans.db' num_per_page = 100 +pagename = os.path.basename(sys.argv[0]) t1 = time.time() @@ -84,7 +86,7 @@ if form.has_key('comment') and form.has_key('comment_id') and user: con.commit() # Write the page -print '