diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua b/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua index 8e91fd6d..fb5000af 100644 --- a/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua +++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua @@ -16,8 +16,13 @@ $Id$ module("luci.controller.admin.index", package.seeall) function index() - local uci_state = luci.model.uci.cursor_state() - local configmode = uci_state:get_first("gluon-config-mode", "wizard", "running", "0") == "1" + local uci_state = luci.model.uci.cursor_state() + local configmode = uci_state:get_first("gluon-config-mode", "wizard", "running", "0") == "1" + + -- Disable gluon-luci-admin when configmode is not enabled + if not configmode then + return + end local root = node() if not root.lock then @@ -25,18 +30,21 @@ function index() root.index = true end - local page = entry({"admin"}, alias("admin", "index"), _("Expertmode"), 10) + local page = entry({"admin"}, alias("admin", "index"), _("Expertmode"), 10) page.sysauth = "root" - if configmode then - -- force root to be logged in when running in configmode - page.sysauth_authenticator = function() return "root" end - else - page.sysauth_authenticator = "htmlauth" - end + if configmode then + -- force root to be logged in when running in configmode + page.sysauth_authenticator = function() return "root" end + else + page.sysauth_authenticator = "htmlauth" + end page.index = true entry({"admin", "index"}, form("admin/index"), _("Overview"), 1).ignoreindex = true - entry({"admin", "logout"}, call("action_logout"), _("Logout")) + + if not configmode then + entry({"admin", "logout"}, call("action_logout"), _("Logout")) + end end function action_logout() diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/backup.htm b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/backup.htm index eb9dc46e..167419da 100644 --- a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/backup.htm +++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/backup.htm @@ -13,8 +13,7 @@ $Id$ -%> <%+header%> -

<%:System%>

-

<%:Backup / Restore%>

+

<%:Backup / Restore%>

<%:Here you can backup and restore your configuration and - if possible - reset this device to the default settings.%>


diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/index.htm b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/index.htm index c14d3b0b..c1656a7e 100644 --- a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/index.htm +++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/index.htm @@ -1,21 +1,5 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%>

<%:Hello!%>

-

<%_This is the administration area of LuCI.%>

-

<%_LuCI is a free, flexible, and user friendly graphical interface for configuring OpenWrt.%>
-<%:On the following pages you can adjust all important settings of this device.%>

-

<%:As we always want to improve this interface we are looking forward to your feedback and suggestions.%>

-

<%:And now have fun with your OpenWrt device!%>

-

<%_The LuCI Team%>

+

Dies ist der Experten-Modus deines Freifunkknotens.

+

Hier kannst du weitere Einstellungen vornehmen, Firmware Upates + einspielen und auch vieles kaputt machen.

+

Sei bitte vorsichtig!

diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/reboot.htm b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/reboot.htm index 9e57d89f..91699e3a 100644 --- a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/reboot.htm +++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/reboot.htm @@ -13,8 +13,7 @@ $Id$ -%> <%+header%> -

<%:System%>

-

<%:Reboot%>

+

<%:Reboot%>

<%:Reboots the operating system of your device%>

<%- local c = require("luci.model.uci").cursor():changes() @@ -28,6 +27,5 @@ if not reboot then

<%:Perform reboot%>

<%- else -%>

<%:Please wait: Device rebooting...%>

- <%- end -%> <%+footer%> \ No newline at end of file diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/upgrade.htm b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/upgrade.htm index 1083a161..3d75b415 100644 --- a/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/upgrade.htm +++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/view/admin/upgrade.htm @@ -15,8 +15,7 @@ $Id$ <%+header%> -

<%:System%>

-

<%:Flash Firmware%>

+

<%:Flash Firmware%>

<% if step == 1 then %> <% if supported then %>