From 06e8e65d850b613481c49b9e1e403b3b659d2993 Mon Sep 17 00:00:00 2001 From: Aidaho12 Date: Fri, 26 Jan 2018 10:24:20 +0600 Subject: [PATCH] v1.4.1 Fixed bugs --- cgi-bin/funct.py | 48 +++++++------------- cgi-bin/viewsttats.py | 6 +-- haproxy-webintarface.config | 10 ++--- index.html | 5 +-- style.css | 89 ++++++++++++++++++++++++++++++++++--- 5 files changed, 106 insertions(+), 52 deletions(-) diff --git a/cgi-bin/funct.py b/cgi-bin/funct.py index ec86fa1b..d7627ccc 100644 --- a/cgi-bin/funct.py +++ b/cgi-bin/funct.py @@ -12,8 +12,7 @@ def check_config(): path_config = "haproxy-webintarface.config" config = configparser.ConfigParser() config.read(path_config) - - + for section in [ 'main', 'configs', 'ssh', 'logs', 'haproxy' ]: if not config.has_section(section): print('Check config file, no %s section' % section) @@ -71,6 +70,7 @@ def mode_admin(button): def links(): print('Home Page ') print('Stats ') + print('Monitoring ') print('Logs') print('Edit settings ') print(' | Configs: ') @@ -82,9 +82,8 @@ def links(): show_login_links() def head(title): - print("Content-type: text/html\n") + print('Content-type: text/html\n') print('%s' % title) -<<<<<<< HEAD print('' '' '' @@ -98,18 +97,18 @@ def head(title): if config.get('main', 'logo_enable') == "1": print('' % config.get('main', 'logo_path')) print('