diff --git a/README.md b/README.md
index 646c34ed..458a1ec1 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+#Meet Haproxy-wi 2.0! Now with DB and Admin web interface! Life has become easier, life has become more cheerful!
+
# Haproxy web interface
A simple web interface(user-frendly web GUI) for managing Haproxy servers. Leave your [feedback](https://github.com/Aidaho12/haproxy-wi/issues)
@@ -37,10 +39,19 @@ For Apache just do virtualhost with cgi-bin.

# Settings
-Edit $HOME_HAPROXY-WI/cgi-bin/listserv.py, add your HAproxy servers.
+```
+cd $HOME_HAPROXY-WI/cgi-bin/
+chmod +x *.py
+```
+
+Run create_db.py for DB createing
Edit $HOME_HAPROXY-WI/cgi-bin/haproxy-webintarface.config with your env
+Login http://haproxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
+
+
+
Copy ssh key on all HAproxy servers
For Runtime API enable state file on HAproxt servers and need install socat on all haproxy servers:
diff --git a/cgi-bin/add.py b/cgi-bin/add.py
index 51282b88..74cbb1d2 100644
--- a/cgi-bin/add.py
+++ b/cgi-bin/add.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
import html
import cgi
-import listserv as listhap
import os
import funct
+import sql
import paramiko
import configparser
import http.cookies
@@ -23,6 +23,7 @@ funct.page_for_admin(level = 1)
haproxy_configs_server = config.get('configs', 'haproxy_configs_server')
hap_configs_dir = config.get('configs', 'haproxy_save_configs_dir')
form = cgi.FieldStorage()
+listhap = sql.get_dick_permit()
if form.getvalue('mode') is not None:
serv = form.getvalue('serv')
@@ -141,8 +142,8 @@ print('
'
''
'
Note: If you reconfigure First server, second will reconfigured automatically
'
@@ -261,8 +262,8 @@ print(''
''
'
Note: If you reconfigure First server, second will reconfigured automatically
'
@@ -345,8 +346,8 @@ print(''
''
'
Note: If you reconfigure First server, second will reconfigured automatically
'
diff --git a/cgi-bin/config.py b/cgi-bin/config.py
index f86f2e46..bd240c7b 100644
--- a/cgi-bin/config.py
+++ b/cgi-bin/config.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
import html
import cgi
-import listserv as listhap
import os
import http.cookies
import configparser
diff --git a/cgi-bin/configver.py b/cgi-bin/configver.py
index 099d1d7f..0f1944e4 100644
--- a/cgi-bin/configver.py
+++ b/cgi-bin/configver.py
@@ -51,7 +51,7 @@ if serv is not None and form.getvalue('open') is not None:
print('')
print('' % serv)
print('')
- print('')
+ print('')
Select = form.getvalue('Select')
@@ -65,7 +65,10 @@ if serv is not None and form.getvalue('open') is not None:
print('' % serv)
print('' % configver)
print('')
- print('')
+ print('')
+ print('