/[shmookey]/portconf/index.py


UCC Code Repository

Diff of /portconf/index.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 113 by shmookey, Wed May 28 09:44:41 2008 UTC revision 114 by shmookey, Wed May 28 10:30:17 2008 UTC
# Line 24  cgitb.enable () Line 24  cgitb.enable ()
24    
25  form = cgi.FieldStorage ()  form = cgi.FieldStorage ()
26    
27    # Cookie stuff
28  cookieExpiry = time.gmtime(time.time())  cookieExpiry = time.gmtime(time.time())
29  if cookieExpiry[3] == 23: cookieExpiry[3] = 0  if cookieExpiry[3] == 23: cookieExpiry[3] = 0
30  else: cookieExpiry[3] += 1  else: cookieExpiry[3] += 1
31  cookie = Cooke.Cookie (os.environ.get("HTTP_COOKIE", ""))  cookie = Cooke.Cookie (os.environ.get("HTTP_COOKIE", ""))
32    if cookie.has_key ("sid"):
33            session = cookie["sid"]
34    else:
35            # Not logged in, send them packing.
36            print "Location: login.py"
37    
38    
39  defaultCursor = None  defaultCursor = None
40  def GetDefaultCursor ():  def GetDefaultCursor ():

Legend:
Removed from v.113  
changed lines
  Added in v.114

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26