From a4407a13623bd04301ead4b51eab0423eea24516 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Wed, 14 Jul 2021 22:14:59 +0600 Subject: [PATCH] v5.2.1.0 Changelog: https://haproxy-wi.org/changelog.py#5_2_1 --- app/funct.py | 5 ++--- app/templates/ajax/config_show.html | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/funct.py b/app/funct.py index dbb1209..e415ba9 100644 --- a/app/funct.py +++ b/app/funct.py @@ -242,8 +242,7 @@ def page_for_admin(**kwargs): give_level = 1 if not is_admin(level=give_level): - print('

How did you get here?! O_o You do not have need permissions') - print('') + print('') import sys sys.exit() @@ -420,7 +419,7 @@ def get_section_from_config(config, section): return_config = "" with open(config, 'r') as f: for index, line in enumerate(f): - if line.startswith(section): + if line.startswith(section + '\n'): start_line = index return_config += line record = True diff --git a/app/templates/ajax/config_show.html b/app/templates/ajax/config_show.html index fa90d3a..d3f81c9 100644 --- a/app/templates/ajax/config_show.html +++ b/app/templates/ajax/config_show.html @@ -282,7 +282,7 @@ {% if configver %}
-
+
{% if role <= 3 %} {% if not is_serv_protected or role <= 2 %}
@@ -298,5 +298,5 @@ {% endif %} {% endif %}
Note: If you reconfigure Master server, Slave will reconfigured automatically
-
+

{% endif %} \ No newline at end of file