firmware/src/packages/fff/fff-web/files/www/ssl/cgi-bin/reboot.html
Adrian Schmutzler d4e6482b60 fff-web: remove included files from HTTP-accessible folder
Certain files are only included, but are not meant to be accessed
via HTTP directly. Move those to a dedicated directory that is not
served via HTTP.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Christian Dresel <freifunk@dresel.systems>
2020-12-12 21:12:35 +01:00

36 lines
716 B
HTML
Executable File

#!/usr/bin/haserl
<%
# prepare
if [ "$REQUEST_METHOD" = "POST" ] ; then
if [ "$POST_reboot" != "" ] ; then
do_reboot=1
MSG='<span class="green">Router wird neugestartet...</span>'
fi
fi
%>
<%in /www/include/header %>
<%in /www/include/helpers %>
<% show_msg %>
<form method="POST">
<table style="width: 100%;">
<tr><td>
<fieldset>
<legend>Router neustarten</legend>
<table>
<tr><td colspan="2"><input type="submit" name="reboot" value="Router neustarten" /></td></tr>
<tr><td colspan="2"></td></tr>
<tr><td colspan="2">Der Neustart dauert etwa 2 Minuten.</td></tr>
</table>
</fieldset>
</td></tr>
</table>
</form>
<%in /www/include/footer %>
<%
# write
if [ "$do_reboot" = "1" ] ; then
reboot
fi
%>