Compare commits
2 Commits
8fe7512ae5
...
da50954db7
Author | SHA1 | Date |
---|---|---|
Christian Dresel | da50954db7 | |
Adrian Schmutzler | d4e6482b60 |
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-web
|
||||
PKG_RELEASE:=11
|
||||
PKG_RELEASE:=13
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
|
|
@ -7,13 +7,6 @@
|
|||
UPGRADE_PATH="$(getUpgradePath)"
|
||||
|
||||
echo -en "Content-Type: text/html\r\n\r\n"
|
||||
nav_entry() {
|
||||
script_file="/cgi-bin/$1"
|
||||
if [ "$script_file" = "$REQUEST_URI" ] ; then
|
||||
local class_active=' class="active"'
|
||||
fi
|
||||
echo -ne "\t<li${class_active}><a href=\"${script_file}\">$2</a></li>\n\t\t"
|
||||
}
|
||||
|
||||
HOSTNAME="$(uci -q get "fff.system.hostname")"
|
||||
hood="$(uci -q get "system.@system[0].hood")"
|
||||
|
@ -52,14 +45,15 @@ fi
|
|||
<div id="menu">
|
||||
<ul>
|
||||
<%
|
||||
nav_entry home.html "Home"
|
||||
nav_entry settings.html "Einstellungen"
|
||||
nav_entry ports.html "Anschlüsse"
|
||||
nav_entry wifiscan.html "Wifi Scan"
|
||||
nav_entry upgrade.html "Upgrade"
|
||||
nav_entry password.html "Password"
|
||||
nav_entry reboot.html "Neustart"
|
||||
nav_entry logout.html "Logout"
|
||||
for f in /www/menu/ssl/*; do
|
||||
var=$(cat $f);
|
||||
menu_file=$(echo $var | cut -d "," -f 1)
|
||||
menu_name=$(echo $var | cut -d "," -f 2)
|
||||
menu_link="/cgi-bin/${menu_file}.html";
|
||||
class_active=""
|
||||
[ "$menu_link" = "$REQUEST_URI" ] && class_active=' class="active"'
|
||||
echo -ne "\t<li$class_active><a href=\"${menu_link}\">$menu_name</a></li>\n\t\t";
|
||||
done
|
||||
%>
|
||||
</ul>
|
||||
<div></div>
|
|
@ -0,0 +1 @@
|
|||
home,Home
|
|
@ -0,0 +1 @@
|
|||
settings,Einstellungen
|
|
@ -0,0 +1 @@
|
|||
ports,Anschlüsse
|
|
@ -0,0 +1 @@
|
|||
wifiscan,Wifi Scan
|
|
@ -0,0 +1 @@
|
|||
upgrade,Upgrade
|
|
@ -0,0 +1 @@
|
|||
password,Passwort
|
|
@ -0,0 +1 @@
|
|||
reboot,Neustart
|
|
@ -0,0 +1 @@
|
|||
logout,Logout
|
|
@ -13,8 +13,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
fi
|
||||
fi
|
||||
%>
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/ssl/cgi-bin/helpers %>
|
||||
<%in /www/include/header %>
|
||||
<%in /www/include/helpers %>
|
||||
<% show_msg %>
|
||||
<%
|
||||
if pidof fastd >/dev/null ; then
|
||||
|
@ -116,4 +116,4 @@ fi
|
|||
</td></tr>
|
||||
</table>
|
||||
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
|
|
|
@ -20,8 +20,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
fi
|
||||
fi
|
||||
%>
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/ssl/cgi-bin/helpers %>
|
||||
<%in /www/include/header %>
|
||||
<%in /www/include/helpers %>
|
||||
<% show_msg %>
|
||||
<form method="POST">
|
||||
<input type="text" name="username" value="root" style="display: none;" />
|
||||
|
@ -43,7 +43,7 @@ fi
|
|||
</table>
|
||||
<input type="submit" style="margin-top: 5px; margin-left: 3px;" />
|
||||
</form>
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
<%
|
||||
#force instant password change
|
||||
if [ "$restart_uhttpd" = "1" ] ; then
|
||||
|
|
|
@ -71,8 +71,8 @@ format_port() {
|
|||
|
||||
|
||||
%>
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/ssl/cgi-bin/helpers %>
|
||||
<%in /www/include/header %>
|
||||
<%in /www/include/helpers %>
|
||||
<% show_msg %>
|
||||
<form method="post">
|
||||
<table style="width: 100%;">
|
||||
|
@ -237,7 +237,7 @@ format_port() {
|
|||
<% fi %>
|
||||
</table>
|
||||
</form>
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
<%
|
||||
# write
|
||||
if [ "$do_reboot" = "1" ] ; then
|
||||
|
|
|
@ -9,8 +9,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
fi
|
||||
fi
|
||||
%>
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/ssl/cgi-bin/helpers %>
|
||||
<%in /www/include/header %>
|
||||
<%in /www/include/helpers %>
|
||||
<% show_msg %>
|
||||
<form method="POST">
|
||||
<table style="width: 100%;">
|
||||
|
@ -26,7 +26,7 @@ fi
|
|||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
<%
|
||||
# write
|
||||
if [ "$do_reboot" = "1" ] ; then
|
||||
|
|
|
@ -65,8 +65,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
fi
|
||||
fi
|
||||
%>
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/ssl/cgi-bin/helpers %>
|
||||
<%in /www/include/header %>
|
||||
<%in /www/include/helpers %>
|
||||
<%
|
||||
# read
|
||||
chkd='checked="checked" '
|
||||
|
@ -154,4 +154,4 @@ fi
|
|||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
|
|
|
@ -29,8 +29,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
fi
|
||||
fi
|
||||
%>
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/ssl/cgi-bin/helpers %>
|
||||
<%in /www/include/header %>
|
||||
<%in /www/include/helpers %>
|
||||
<% show_msg %>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<table style="width: 100%;">
|
||||
|
@ -60,7 +60,7 @@ fi
|
|||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
<%
|
||||
# write
|
||||
if [ "$do_reset" = "1" ] ; then
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/haserl
|
||||
|
||||
<%in /www/ssl/cgi-bin/header %>
|
||||
<%in /www/include/header %>
|
||||
<table style="width: 100%">
|
||||
<tr><td>
|
||||
<fieldset>
|
||||
|
@ -23,4 +23,4 @@ iw dev w2mesh scan | sed 's/^BSS/\nBSS/g' |\
|
|||
</td></tr>
|
||||
</table>
|
||||
|
||||
<%in /www/ssl/cgi-bin/footer %>
|
||||
<%in /www/include/footer %>
|
||||
|
|
Loading…
Reference in New Issue