From 4ad99af940a90592b51729aa44a155f8053fd85b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 16 Oct 2010 15:24:07 +0000 Subject: applications: rename luci-fw to luci-firewall --- .../luci-firewall/luasrc/controller/luci_fw/luci_fw.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 applications/luci-firewall/luasrc/controller/luci_fw/luci_fw.lua (limited to 'applications/luci-firewall/luasrc/controller') diff --git a/applications/luci-firewall/luasrc/controller/luci_fw/luci_fw.lua b/applications/luci-firewall/luasrc/controller/luci_fw/luci_fw.lua new file mode 100644 index 0000000000..766821af0d --- /dev/null +++ b/applications/luci-firewall/luasrc/controller/luci_fw/luci_fw.lua @@ -0,0 +1,13 @@ +module("luci.controller.luci_fw.luci_fw", package.seeall) + +function index() + require("luci.i18n").loadc("luci-fw") + local i18n = luci.i18n.translate + + entry({"admin", "network", "firewall"}, alias("admin", "network", "firewall", "zones"), i18n("Firewall"), 60).i18n = "luci-fw" + entry({"admin", "network", "firewall", "zones"}, cbi("luci_fw/zones"), i18n("Zones"), 10) + entry({"admin", "network", "firewall", "redirect"}, arcombine(cbi("luci_fw/redirect"), cbi("luci_fw/rrule")), i18n("Traffic Redirection"), 30).leaf = true + entry({"admin", "network", "firewall", "rule"}, arcombine(cbi("luci_fw/traffic"), cbi("luci_fw/trule")), i18n("Traffic Control"), 20).leaf = true + + entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw", {autoapply=true}), i18n("Port forwarding"), 70).i18n = "luci-fw" +end \ No newline at end of file -- cgit v1.2.3