diff --git a/scripts/cgi-bin/info.py b/scripts/cgi-bin/info.py
index 48a434079..4d28f082e 100755
--- a/scripts/cgi-bin/info.py
+++ b/scripts/cgi-bin/info.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import sys
import MySQLdb
@@ -18,13 +18,16 @@ smtpserver = 'localhost'
def Display(Content, Title=DefaultTitle):
TemplateHandle = open(TemplateFile, "r") # open in read only mode
# read the entire file as a string
- TemplateInput = TemplateHandle.read()
+ TemplateInput = TemplateHandle.read()
TemplateHandle.close() # close the file
-
+
+ for field in Form.keys():
+ Content=Content+"
"+key+"="+Form[key]
+
# this defines an exception string in case our
# template file is messed up
BadTemplateException = "There was a problem with the HTML template."
-
+
SubResult = re.subn("", Title, TemplateInput)
SubResult = re.subn("", Content, SubResult[0])
if SubResult[1] == 0:
@@ -48,7 +51,7 @@ def ShowInfo(custid, Password):
#print query
results = cursor.execute(query);
if results > 0:
-
+
output = "