summaryrefslogtreecommitdiff
path: root/hw4/cgi-bin/board.py
blob: 5ca8afcf61e62d093eb1fa480d883a223a2632e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python2.7
import Cookie, os, time
import re
import uuid
import cgi
import cgitb

cgitb.enable()		## allows for debugging errors from the cgi scripts in the browser

from output import *

cookie = Cookie.SimpleCookie() # for writing cookies
form = cgi.FieldStorage() # for reading GET datas

if not Login():
    DisplayLogin()

# if we get here, this is an authorized user, let's print the messages
PrintMessages()

exit(0)