From 5d8ebc379bd40027b1acfceeebccbb65d8239121 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 27 Sep 2023 20:20:09 +0200 Subject: [PATCH] =?UTF-8?q?g=20tout=20peter=20mais=20c'est=20fait=20expr?= =?UTF-8?q?=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Flask/app.py | 9 ++-- Flask/templates/vnc_get.html | 53 +++++++++++++++++++++ Flask/templates/{vnc.html => vnc_post.html} | 0 3 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 Flask/templates/vnc_get.html rename Flask/templates/{vnc.html => vnc_post.html} (100%) diff --git a/Flask/app.py b/Flask/app.py index 024f7e5..11e6880 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -369,10 +369,13 @@ def stats(): return(render_template("stats.html")) -@app.route("/override/", methods=["GET", "POST"]) -def override(): - return(render_template("vnc.html")) +@app.route("/override/", methods=["POST"]) +def override_post(): + return(render_template("vnc_post.html")) +@app.route("/override/", methods=["GET"]) +def override_get(): + return(render_template("vnc_get.html")) @app.route('/download/', methods=['GET', 'POST']) @login_required diff --git a/Flask/templates/vnc_get.html b/Flask/templates/vnc_get.html new file mode 100644 index 0000000..896334f --- /dev/null +++ b/Flask/templates/vnc_get.html @@ -0,0 +1,53 @@ + +{% extends "base.html" %} +{% block left_pannel %}override{% endblock %} + +{% block content %} + +{%if not current_user.is_authenticated %} + +{% else %} + +
+ + + + + + + + + + + + + +
config : + + name : + +
Proxy : + + Discord : + +
+ + + +{% endif %} +{%endblock %} \ No newline at end of file diff --git a/Flask/templates/vnc.html b/Flask/templates/vnc_post.html similarity index 100% rename from Flask/templates/vnc.html rename to Flask/templates/vnc_post.html