summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua
blob: b8c104601c2c25ac3aa2159db3e01d8e71f80d6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module("luci.controller.luci_fw.luci_fw", package.seeall)

function index()
	require("luci.i18n").loadc("luci-fw")
	local i18n = luci.i18n.translate

	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