diff --git a/cgi-bin/config.py b/cgi-bin/config.py
index 7319ad81..d82192b5 100644
--- a/cgi-bin/config.py
+++ b/cgi-bin/config.py
@@ -41,7 +41,7 @@ if form.getvalue('serv') is not None and form.getvalue('open') is not None :
conf = open(cfg, "r")
print(' ')
print("
Config from %s " % serv)
- print('')
+ print(' ')
print(' ' % serv)
print(' ' % configver)
print(' ')
@@ -81,6 +81,6 @@ if form.getvalue('serv') is not None and form.getvalue('config') is not None:
funct.upload_and_restart(serv, configver)
- print('Go to view stats ')
+ print('Go to view stats ' % serv)
funct.footer()
diff --git a/cgi-bin/delver.py b/cgi-bin/delver.py
index 442e9e0c..cea041de 100644
--- a/cgi-bin/delver.py
+++ b/cgi-bin/delver.py
@@ -23,7 +23,7 @@ funct.chooseServer("delver.py#conf", "Delete Versions HAproxy config", "n")
if serv is not None and form.getvalue('open') is not None:
print('Choose old version ')
- print('')
+ print(' ')
import glob
@@ -51,9 +51,9 @@ if serv is not None and form.getvalue('open') is not None:
try:
os.remove(form.getvalue(get))
print(form.getvalue(get) + " ")
- funct.logging(serv, "delver.py deleted config: %s" % form.getvalue(get))
-
+ funct.logging(serv, "delver.py deleted config: %s" % form.getvalue(get))
except OSError:
print ("Error: %s - %s." % (e.filename,e.strerror))
- print(' ' % form.getvalue('serv'))
+ print(' ' % form.getvalue('serv'))
+
funct.footer()
\ No newline at end of file
diff --git a/cgi-bin/funct.py b/cgi-bin/funct.py
index 4794e27d..8b1a7ed6 100644
--- a/cgi-bin/funct.py
+++ b/cgi-bin/funct.py
@@ -70,9 +70,9 @@ def show_login_links():
login = cookie.get('login')
if login is None:
- print('Login ')
+ print('Login ')
else:
- print('Logout ')
+ print('Logout ')
def mode_admin(button, **kwargs):
cookie = http.cookies.SimpleCookie(os.environ.get("HTTP_COOKIE"))
@@ -88,20 +88,38 @@ def mode_admin(button, **kwargs):
print('%s ' % button)
def links():
- print('Home Page ')
- print('Stats ')
- print('Monitoring ')
- print('Logs ')
- print('Edit settings ')
- print(' | Configs: ')
- print('Show ')
- print('Compare ')
- print('Add ')
- print('Edit ')
- print(' | Versions: ')
- print('Upload ')
- print('Delete ')
+ print('')
+
def head(title):
print('Content-type: text/html\n')
@@ -132,7 +150,7 @@ def footer():
' '
'