diff --git a/app/funct.py b/app/funct.py index dbb1209c..e415ba99 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 fa90d3ae..d3f81c9c 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