* Changed Makefiles to use mainline Lua
[project/luci.git] / applications / luci-fw / src / controller / luci_fw / luci_fw.lua
index 864455ca8fba9b1030326a4844e53d67a4f9c3e3..9a92b9099810d8d6fed713cbc187e1c4cce99f45 100644 (file)
@@ -1,18 +1,7 @@
 module("ffluci.controller.luci_fw.luci_fw", package.seeall)
 
 function index()
-       local page = node("admin", "network", "portfw")
-       page.target = cbi("luci_fw/portfw")
-       page.title = "Portweiterleitung"
-       page.order = 70
-       
-       local page = node("admin", "network", "routing")
-       page.target = cbi("luci_fw/routing")
-       page.title = "Routing"
-       page.order = 72
-       
-       local page = node("admin", "network", "firewall")
-       page.target = cbi("luci_fw/firewall")
-       page.title = "Firewall"
-       page.order = 74
+       entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), "Portweiterleitung", 70)
+       entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), "Routing", 72)
+       entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), "Firewall", 74)
 end
\ No newline at end of file