2 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
4 from __future__ import print_function
6 # Printing errors (no SyntaxErrors though, but that's not a problem)
12 def myexceptionhandler(type, value, traceback):
15 sys.__excepthook__(type, value, traceback)
18 print("Content-Type: text/plain\n")
19 sys.__excepthook__(type, value, traceback)
22 sys.excepthook=myexceptionhandler
25 sys.path.insert(0, '../modules')
29 opts, cks = wwwiface.getopts()
30 u=user.User(cks, opts)
33 wwwiface.addheader('Logged in: '+u.login)
34 wwwiface.addmenu(file='loggedinmenu')
36 wwwcmds.handlecmds(opts)
38 wwwiface.addheader('Login form')
39 wwwiface.addcontent(file='regform')
41 wwwiface.sendhttpheaders()