From b9d378b17d65dd59345c30925459db1dde8ec567 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 Aug 2019 12:48:50 +0200 Subject: luci-app-fireall: remove unused templates Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/firewall/cbi_addforward.htm | 90 ---------------------- .../luasrc/view/firewall/cbi_addrule.htm | 89 --------------------- .../luasrc/view/firewall/cbi_addsnat.htm | 59 -------------- 3 files changed, 238 deletions(-) delete mode 100644 applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm delete mode 100644 applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm delete mode 100644 applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm (limited to 'applications/luci-app-firewall/luasrc/view/firewall') diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm deleted file mode 100644 index 38f36b49c8..0000000000 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm +++ /dev/null @@ -1,90 +0,0 @@ -<%- - local fw = require "luci.model.firewall".init() - local izl = { } - local ezl = { } - local _, z - for _, z in ipairs(fw:get_zones()) do - if z:name() ~= "wan" then - izl[#izl+1] = z - end - if z:name() ~= "lan" then - ezl[#ezl+1] = z - end - end - - local keys, vals = { }, { } - luci.sys.net.ipv4_hints(function(ip, name) - keys[#keys+1] = ip - vals[#vals+1] = '%s (%s)' %{ ip, name } - end) --%> - -

<%:New port forward%>

-
-
-
<%:Name%>
-
<%:Protocol%>
-
<%:External zone%>
-
<%:External port%>
-
<%:Internal zone%>
-
<%:Internal IP address%>
-
<%:Internal port%>
-
-
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- 0, "data-choices", {keys, vals}) - %>/> -
-
- -
-
- -
-
-
- - diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm deleted file mode 100644 index e0092a7a56..0000000000 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm +++ /dev/null @@ -1,89 +0,0 @@ -<% - local fw = require "luci.model.firewall".init() - local zones = fw:get_zones() -%> - -<% if #zones > 0 then %> -

<%:Open ports on router%>

-
-
-
<%:Name%>
-
<%:Protocol%>
-
<%:External port%>
-
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-<% end %> -<% if #zones > 1 then %> -

<%:New forward rule%>

-
-
-
<%:Name%>
-
<%:Source zone%>
-
<%:Destination zone%>
-
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-<% else %> - -<% end %> - -<% if #zones > 0 then %> - -<% end %> diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm deleted file mode 100644 index 0b4774ccc0..0000000000 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm +++ /dev/null @@ -1,59 +0,0 @@ -<% - local fw = require "luci.model.firewall".init() - local nw = require "luci.model.network".init() - local zones = fw:get_zones() - - local keys, vals, a, k, v = {}, {} - for k, v in ipairs(nw:get_interfaces()) do - for k, a in ipairs(v:ipaddrs()) do - keys[#keys+1] = a:host():string() - vals[#vals+1] = '%s (%s)' %{ a:host(), v:shortname() } - end - end -%> - -<% if #zones > 1 then %> -

<%:New source NAT%>

-
-
-
<%:Name%>
-
<%:Source zone%>
-
<%:Destination zone%>
-
<%:To source IP%>
-
<%:To source port%>
-
-
-
-
- -
-
- -
-
- -
-
- 0, "data-choices", { keys, vals }) - %> /> -
-
- -
-
- -
-
-
-<% else %> - -<% end %> -- cgit v1.2.3