32 lines
741 B
Python
Executable File
32 lines
741 B
Python
Executable File
#!/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"):
|
|
rawname = values["name"].value
|
|
else:
|
|
rawname = " "
|
|
namepass = re.sub("<", "<", rawname)
|
|
name = re.sub(">", ">", namepass)
|
|
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( rawname , rawdata , color )
|
|
|
|
print """<html><body>ok</body></html>"""
|
|
|