Disable anonymous access
This commit is contained in:
parent
e93d83aec3
commit
44797851ee
|
@ -43,6 +43,11 @@ if cookie.has_key('sess'):
|
|||
con.commit()
|
||||
pass
|
||||
|
||||
if not user:
|
||||
print "Sorry, bantracker has been shut down for anonymous users due to server load"
|
||||
send_page('bans.tmpl')
|
||||
|
||||
|
||||
# Log
|
||||
if form.has_key('log'):
|
||||
cur.execute("""SELECT log FROM bans WHERE id=%s""", form['log'].value)
|
||||
|
|
Loading…
Reference in New Issue