summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-fw/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-16 10:08:28 +0000
committerSteven Barth <steven@midlink.org>2008-07-16 10:08:28 +0000
commit429473aed896a8f038d8934c8711a29366a894c5 (patch)
tree958d0b7459f644ee5ffd996acc7f14528292749f /applications/luci-fw/luasrc/controller
parent9b1ef9e2b1a9e318a2840ee4b846f7ca8d82d3bb (diff)
applications/luci-fw: Added support for luci-mini
modules/admin-mini: Added portforwarding page, and UCI changes, apply and revert pages
Diffstat (limited to 'applications/luci-fw/luasrc/controller')
-rw-r--r--applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua b/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua
index 4efddb6e77..b8c104601c 100644
--- a/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua
+++ b/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua
@@ -4,7 +4,13 @@ function index()
require("luci.i18n").loadc("luci-fw")
local i18n = luci.i18n.translate
- entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw"
- entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), i18n("fw_routing", "Routing"), 73).i18n = "luci-fw"
- entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), i18n("fw_fw", "Firewall"), 76).i18n = "luci-fw"
+ if registered("admin") then
+ entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw"
+ entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), i18n("fw_routing", "Routing"), 73).i18n = "luci-fw"
+ entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), i18n("fw_fw", "Firewall"), 76).i18n = "luci-fw"
+ end
+
+ if registered("mini") then
+ entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw"
+ end
end \ No newline at end of file