mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
620 B
28 lines
620 B
7 years ago
|
#!/usr/bin/env python3
|
||
|
import html
|
||
|
import cgi
|
||
|
import funct
|
||
7 years ago
|
import ovw
|
||
7 years ago
|
|
||
|
form = cgi.FieldStorage()
|
||
|
serv = form.getvalue('serv')
|
||
|
left = form.getvalue('left')
|
||
|
right = form.getvalue('right')
|
||
|
|
||
|
funct.head("Compare HAproxy configs")
|
||
|
funct.check_config()
|
||
7 years ago
|
funct.check_login()
|
||
7 years ago
|
funct.chooseServer("diff.py#diff", "Compare HAproxy configs", "n", onclick="showCompareConfigs()")
|
||
7 years ago
|
|
||
7 years ago
|
print('<div id="ajax-compare">')
|
||
7 years ago
|
|
||
7 years ago
|
if serv is not None and form.getvalue('open') is not None :
|
||
|
ovw.show_compare_configs(serv)
|
||
7 years ago
|
|
||
7 years ago
|
print('</div><div id=ajax>')
|
||
7 years ago
|
|
||
7 years ago
|
if serv is not None and right is not None:
|
||
7 years ago
|
ovw.comapre_show()
|
||
7 years ago
|
|
||
|
print('</div>')
|
||
7 years ago
|
funct.footer()
|