master #2

Merged
rohammer merged 9 commits from freifunk-franken/firmware:master into master 2020-12-18 17:03:03 +01:00
10 changed files with 18 additions and 16 deletions
Showing only changes of commit da50954db7 - Show all commits

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-web
PKG_RELEASE:=12
PKG_RELEASE:=13
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -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&uuml;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>

View File

@ -0,0 +1 @@
home,Home

View File

@ -0,0 +1 @@
settings,Einstellungen

View File

@ -0,0 +1 @@
ports,Anschl&uuml;sse

View File

@ -0,0 +1 @@
wifiscan,Wifi Scan

View File

@ -0,0 +1 @@
upgrade,Upgrade

View File

@ -0,0 +1 @@
password,Passwort

View File

@ -0,0 +1 @@
reboot,Neustart

View File

@ -0,0 +1 @@
logout,Logout