2023-06-17 16:52:47 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block left_pannel %}
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/override';">override</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2023-06-18 17:40:59 +02:00
|
|
|
<button class="unselected" onclick="location.href = '/config';">config</button>
|
2023-06-17 16:52:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/discord';">discord</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="selected" onclick="location.href = '/proxy';">proxy</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-08-25 16:25:17 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/logs';">logs</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-08-24 14:36:24 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
2023-08-29 19:04:34 +02:00
|
|
|
<button class="unselected" onclick="location.href = '/stats';">stats</button>
|
2023-08-24 14:36:24 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-06-17 16:52:47 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/settings';">settings</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{%if not current_user.is_authenticated %}
|
|
|
|
<button class="unselected" onclick="location.href = '/login';">login</button>
|
|
|
|
{% else %}
|
|
|
|
<form method="post" action="/proxy/">
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td class="comlumn-name"></td>
|
|
|
|
<td>
|
2023-08-26 13:12:25 +02:00
|
|
|
<script>data = JSON.parse('{{data|tojson}}');</script>
|
2023-08-26 13:17:57 +02:00
|
|
|
<select name="select" onchange="change_proxy(this.value, data, '{{len}}')">
|
2023-06-17 16:52:47 +02:00
|
|
|
<option selected id="new" value="{{ len }}">Create new proxy</option>
|
|
|
|
{% for i in data %}
|
|
|
|
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="comlumn-name">name : </td>
|
|
|
|
<td><input type="text" name="name" value="" id="name"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="comlumn-name">address : </td>
|
|
|
|
<td><input type="text" name="address" value="" id="address"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="comlumn-name">port : </td>
|
|
|
|
<td><input type="text" name="port" value="" id="port"></td>
|
|
|
|
</tr>
|
2023-06-18 17:40:59 +02:00
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td class="comlumn-name"></td>
|
2023-07-01 16:24:39 +02:00
|
|
|
<td style="width:60%;"><input type="submit" name="PROXY" id="submit" value="Create !" class="confirm" style="width:86%;"/></td>
|
|
|
|
<td style="padding-right: 20px;"><input type="submit" name="PROXY" id="submit" value="delete" class="ban" style="width:60%;"/></td>
|
2023-06-18 17:40:59 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
2023-06-17 16:52:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|