summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
l---------bgp-expert-html.lsp2
l---------bgp-startstop-html.lsp2
l---------bgp-status-html.lsp2
l---------[-rwxr-xr-x]ospf-expert-html.lsp13
l---------[-rwxr-xr-x]ospf-startstop-html.lsp23
l---------[-rwxr-xr-x]ospf-status-html.lsp34
l---------zebra-expert-html.lsp2
l---------zebra-startstop-html.lsp2
8 files changed, 8 insertions, 72 deletions
diff --git a/bgp-expert-html.lsp b/bgp-expert-html.lsp
index 945bc0b..207f324 120000
--- a/bgp-expert-html.lsp
+++ b/bgp-expert-html.lsp
@@ -1 +1 @@
-/usr/share/acf/app/expert-html.lsp \ No newline at end of file
+../expert-html.lsp \ No newline at end of file
diff --git a/bgp-startstop-html.lsp b/bgp-startstop-html.lsp
index ce3188f..0ea2627 120000
--- a/bgp-startstop-html.lsp
+++ b/bgp-startstop-html.lsp
@@ -1 +1 @@
-/usr/share/acf/app/startstop-html.lsp \ No newline at end of file
+../startstop-html.lsp \ No newline at end of file
diff --git a/bgp-status-html.lsp b/bgp-status-html.lsp
index f61ec19..b2f8480 120000
--- a/bgp-status-html.lsp
+++ b/bgp-status-html.lsp
@@ -1 +1 @@
-/usr/share/acf/app/status-html.lsp \ No newline at end of file
+../status-html.lsp \ No newline at end of file
diff --git a/ospf-expert-html.lsp b/ospf-expert-html.lsp
index 5db9173..207f324 100755..120000
--- a/ospf-expert-html.lsp
+++ b/ospf-expert-html.lsp
@@ -1,12 +1 @@
-<% local form, viewlibrary, page_info, session = ... %>
-<% require("viewfunctions") %>
-
-<% if viewlibrary and viewlibrary.dispatch_component then
- viewlibrary.dispatch_component("status")
-end %>
-
-<%
-local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1")
-local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp")
-func(form, viewlibrary, page_info, session)
-%>
+../expert-html.lsp \ No newline at end of file
diff --git a/ospf-startstop-html.lsp b/ospf-startstop-html.lsp
index c98208b..0ea2627 100755..120000
--- a/ospf-startstop-html.lsp
+++ b/ospf-startstop-html.lsp
@@ -1,22 +1 @@
-<% local data, viewlibrary, page_info = ... %>
-
-<H1>Management</H1>
-
-<% if data.value.result then %>
-<H2>Previous action result</H2>
-<% if data.value.result.value ~= "" then %>
-<P CLASS='descr'><%= string.gsub(html.html_escape(data.value.result.value), "\n", "<BR>") %></P>
-<% end if data.value.result.errtxt then %>
-<P CLASS='error'><%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "<BR>") %></P>
-<% end end %>
-
-<DL>
-<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action) %>" method="POST">
-<DT>Program control-panel</DT>
-<DD>
-<% for i,act in ipairs(data.value.actions.value) do %>
- <input class="submit" type="submit" name="action" value="<%= act %>">
-<% end %>
-</DD>
-</form>
-</DL>
+../startstop-html.lsp \ No newline at end of file
diff --git a/ospf-status-html.lsp b/ospf-status-html.lsp
index 1f5e1f8..b2f8480 100755..120000
--- a/ospf-status-html.lsp
+++ b/ospf-status-html.lsp
@@ -1,33 +1 @@
-<% local data, viewlibrary, page_info, session = ...
-require("viewfunctions")
-%>
-
-<% displaycommandresults({"install","edit"}, session) %>
-<% displaycommandresults({"startstop"}, session) %>
-
-<H1>System Info</H1>
-<DL>
-<%
-displayitem(data.value.status)
-
-displayitem(data.value.version)
-if data.value.version and data.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then
-%>
- <DT>Install package</DT>
- <DD><form action="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install?package="..data.value.version.name) %>" method="POST">
- <input class='submit' type='submit' value='Install'></form></DD>
-<%
-end
-
-displayitem(data.value.autostart)
-if not (data.value.version and data.value.version.errtxt) and data.value.autostart and data.value.autostart.errtxt and viewlibrary.check_permission("alpine-baselayout/rc/edit") then
-%>
- <DT>Enable autostart</DT>
- <DD><form action="<%= html.html_escape(page_info.script .. "/alpine-baselayout/rc/edit?servicename="..data.value.autostart.name.."&redir=".. page_info.orig_action) %>" method="POST">
- <input class='submit' type='submit' value='Enable'></form></DD>
-<% end %>
-</DL>
-
-<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then
- viewlibrary.dispatch_component("startstop")
-end %>
+../status-html.lsp \ No newline at end of file
diff --git a/zebra-expert-html.lsp b/zebra-expert-html.lsp
index 945bc0b..207f324 120000
--- a/zebra-expert-html.lsp
+++ b/zebra-expert-html.lsp
@@ -1 +1 @@
-/usr/share/acf/app/expert-html.lsp \ No newline at end of file
+../expert-html.lsp \ No newline at end of file
diff --git a/zebra-startstop-html.lsp b/zebra-startstop-html.lsp
index ce3188f..0ea2627 120000
--- a/zebra-startstop-html.lsp
+++ b/zebra-startstop-html.lsp
@@ -1 +1 @@
-/usr/share/acf/app/startstop-html.lsp \ No newline at end of file
+../startstop-html.lsp \ No newline at end of file