diff --git a/web/web_qchess/qchess.py b/web/web_qchess/qchess.py new file mode 120000 index 0000000000000000000000000000000000000000..35c6d6e8a5edf5bdf5173254d57a1c5500b7b59b --- /dev/null +++ b/web/web_qchess/qchess.py @@ -0,0 +1 @@ +../../qchess/qchess.py \ No newline at end of file diff --git a/web/web_qchess/web_qchess.py b/web/web_qchess/web_qchess.py new file mode 100644 index 0000000000000000000000000000000000000000..c0513c196e2876855747a80ca9ab83be1a3f50e6 --- /dev/null +++ b/web/web_qchess/web_qchess.py @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys +import os +import cgi + + +if __name__ == "__main__": + form = cgi.FieldStorage() + x = int(form.getvalue("x")) + y = int(form.getvalue("y")) + + print "Content-type:text/html\r\n\r\n" + print "\n\nWebbified QChess\n\n" + print "

x = %d\ty = %d <\p>" % (x, y) + print "\n" \ No newline at end of file