summaryrefslogtreecommitdiffstats
path: root/ospf-status-html.lsp
diff options
context:
space:
mode:
authorskel <skeliotis@yahoo.ca>2011-06-30 15:13:54 -0400
committerTed Trask <ttrask01@yahoo.com>2011-07-05 18:55:33 -0400
commit2acea3b4c25f843f4292da4fe9eea78cf97ca736 (patch)
treec17ea21cd41f98ba21f73897f3f3078c2dcf0113 /ospf-status-html.lsp
parent4fa086725d176658d6991d8f88d7b7b283861767 (diff)
downloadacf-quagga-2acea3b4c25f843f4292da4fe9eea78cf97ca736.tar.bz2
acf-quagga-2acea3b4c25f843f4292da4fe9eea78cf97ca736.tar.xz
Interface for OSPF
Diffstat (limited to 'ospf-status-html.lsp')
-rwxr-xr-xospf-status-html.lsp33
1 files changed, 33 insertions, 0 deletions
diff --git a/ospf-status-html.lsp b/ospf-status-html.lsp
new file mode 100755
index 0000000..1f5e1f8
--- /dev/null
+++ b/ospf-status-html.lsp
@@ -0,0 +1,33 @@
+<% 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 %>