#!/usr/bin/python # PyShoutOut by Joey C. (http://www.joeyjwc.x3fusion.com) # Writes the recieved information to the data file. import cgi, datetime, os, re from psogen import process_form print "Content-type:text/html\r\n\r\n" values = cgi.FieldStorage() if values.has_key("name"): name = values["name"].value else: name = " " if values.has_key("data"): rawdata = values["data"].value else: rawdata = " " datapass = re.sub("<", "<", rawdata) data = re.sub(">", ">", datapass) color = values["color"].value curdate = datetime.datetime.now() process_form( name , rawdata , color ) print """<html><body>ok</body></html>"""
#!/usr/bin/python # PyShoutOut by Joey C. (http://www.joeyjwc.x3fusion.com) # Writes the recieved information to the data file. import cgi from psogen import process_form print "Content-type:text/html\r\n\r\n" values = cgi.FieldStorage() if "name" in values: rawname = values["name"].value else: rawname = " " if "data" in values: rawdata = values["data"].value else: rawdata = " " color = values["color"].value timestamp = float(values["timestamp"].value) process_form(rawname, rawdata, color, timestamp) print "Status:200\r\n\r\n" print """<html><body>ok</body></html>"""
#!/usr/bin/python # PyShoutOut by Joey C. (http://www.joeyjwc.x3fusion.com) # Writes the recieved information to the data file. import cgi, datetime from psogen import process_form print "Content-type:text/html\r\n\r\n" values = cgi.FieldStorage() if values.has_key("name"): rawname = values["name"].value else: rawname = " " if values.has_key("data"): rawdata = values["data"].value else: rawdata = " " color = values["color"].value curdate = datetime.datetime.now() process_form(rawname, rawdata, color) print "Status:200\r\n\r\n" print """<html><body>ok</body></html>"""