Alpha first commit

This commit is contained in:
root
2017-12-19 23:39:22 +00:00
commit 0f53680f31
7 changed files with 217 additions and 0 deletions

16
functions/headfoot.py Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/python3.5
# DEBUG
import cgitb
cgitb.enable()
def printheader():
print("Content-Type: text/html\n")
print ("""
<html>
<title> Ma Jolie petite Page</title>
""")
def printfooter():
print("</html>")

View File

@ -0,0 +1,8 @@
#!/usr/bin/python3.5
import re
def htmlsyntax(DATA):
DATA = re.sub('<', '&lt', DATA)
DATA = re.sub('>', '&gt', DATA)
return(DATA)