Blame Scripts/CentOS-Web/centos-web.cgi

cc10e6
#!/usr/bin/python
cc10e6
06c05e
import os
06c05e
import cgi
06c05e
import cgitb; cgitb.enable()
cc10e6
cc10e6
def main():
06c05e
    qs = cgi.parse(os.environ['QUERY_STRING'])
06c05e
    if 'app' in qs.keys():
06c05e
        app = qs['app'][0].lower()
06c05e
    else:
06c05e
        app = 'home'
06c05e
06c05e
    if app == 'home':
06c05e
        from Apps.Home import page
06c05e
    elif app == 'sponsors':
06c05e
        from Apps.Sponsors import page
06c05e
    else:
06c05e
        from Apps.Home import page
06c05e
06c05e
    print 'Content-type: text/html' + "\n"
06c05e
    print page.main()
cc10e6
cc10e6
if __name__ == '__main__': main()