def __init__(self): self.PathConfig = '../data/config.conf' self.chk = checker.Checker() self.ppslimit = 0 self.mbitslimit = 0 self.timecheck = 0 self.blocktime = 0 self.deleteRegister = 0
def StopTrace(): ath = auth.Auth() if not ath.checkSession(): if 'authkey' in request.args: if not ath.checkKey(request.args["authkey"]): return "-1" else: return redirect(url_for('lock')) chk = checker.Checker() chk.updateValue('8') return "0"
def makeclean(): ath = auth.Auth() if not ath.checkSession(): if 'authkey' in request.form: if not ath.checkKey(request.form["authkey"]): return "-1" else: return redirect(url_for('lock')) if 'clean' in request.form or 'authkey' in request.form: chk = checker.Checker() chk.updateValue('c') return "0" return "-1"
def shutdown(): ath = auth.Auth() if not ath.checkSession(): if 'authkey' in request.form: if not ath.checkKey(request.form["authkey"]): return "-1" else: return redirect(url_for('lock')) if 'shutdown' in request.form: chk = checker.Checker() chk.updateValue('s') chk.shutdown_server() return render_template('shutdown.html', title="Apagar el cortafuegos")
def __init__(self): self.ipBlockedPath = '../data/portBlocked.data' self.table = {}; self.chk = checker.Checker()
def __init__(self): self.ipBlockedPath = '../data/protocolBlocked.data' self.table = {} self.chk = checker.Checker()