| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| import cgi |
| import cgitb; cgitb.enable() |
| |
| def main(): |
| |
| qs = cgi.parse() |
| |
| if 'app' in qs: |
| app = qs['app'][0].lower() |
| else: |
| app = 'home' |
| |
| if app == 'home': |
| from Apps.Home import page |
| elif app == 'sponsors': |
| from Apps.Sponsors import page |
| else: |
| from Apps.Unknown import page |
| |
| print 'Content-type: text/html' + "\n" |
| print page.main() |
| |
| if __name__ == '__main__': main() |