g tout peter mais c'est fait exprès

This commit is contained in:
piair 2023-09-27 20:20:09 +02:00
parent b5abd589ba
commit 5d8ebc379b
3 changed files with 59 additions and 3 deletions

View File

@ -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/<path:filename>', methods=['GET', 'POST'])
@login_required

View File

@ -0,0 +1,53 @@
{% extends "base.html" %}
{% block left_pannel %}override{% endblock %}
{% block content %}
{%if not current_user.is_authenticated %}
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
<form method="post" action="/config/">
<table>
<tr>
<td style="width: 10%;">config : </td>
<td style="width: 40%;">
<select onchange="change_config(this.value, data2, '{{len}}')" name="config">
<option id="config" value="{{len}}">New config</option>
{% for i in configs %}
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>
{% endfor %}
</select>
</td>
<td style="width: 10%;">name : </td>
<td>
<input type="text" id="name" name="name" value = "">
</td>
</tr>
<tr>
<td style="width: 10%;">Proxy : </td>
<td style="width: 40%;">
<select id="proxy" name="proxy">
<option id="" value="-1">No proxy</option>
{% for i in proxys %}
<option id="{{proxys[i]['name']}}" value="{{i}}">{{proxys[i]['name']}}</option>
{% endfor %}
</select>
</td>
<td style="width: 10%;">Discord : </td>
<td>
<select id="discord" name="discord">
<option id="no discord" value="-1">No discord (not sure about the support)</option>
{% for i in discords %}
<option id="{{discords[i]['name']}}" value="{{i}}">{{discords[i]['name']}}</option>
{% endfor %}
</select>
</td>
</tr>
</table>
{% endif %}
{%endblock %}