b8c104601c2c25ac3aa2159db3e01d8e71f80d6d
[project/luci.git] / applications / luci-fw / luasrc / controller / luci_fw / luci_fw.lua
1 module("luci.controller.luci_fw.luci_fw", package.seeall)
2
3 function index()
4         require("luci.i18n").loadc("luci-fw")
5         local i18n = luci.i18n.translate
6
7         if registered("admin") then
8                 entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw"       
9                 entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), i18n("fw_routing", "Routing"), 73).i18n = "luci-fw"
10                 entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), i18n("fw_fw", "Firewall"), 76).i18n = "luci-fw"
11         end
12         
13         if registered("mini") then
14                 entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw"    
15         end
16 end