#!/usr/bin/env python3 import html import cgi import funct form = cgi.FieldStorage() serv = form.getvalue('serv') funct.head("HAproxy Logs") funct.check_config() funct.check_login() funct.get_auto_refresh("HAproxy logs") print('' '' '' '' '' '' '' '' '' % rows) print('' '' '' '
ServerNumber rowsEx for grep
' '
' '') if serv is not None: rows = 'value='+form.getvalue('rows') else: rows = 'value=10' if form.getvalue('grep') is not None: grep = 'value='+form.getvalue('grep') else: grep = ' ' print('
' % grep) print('' 'Show' '
' '
' '
' '') funct.footer()