diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-08-20 19:02:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-08-20 19:02:16 +0000 |
commit | 8730ef0997957b46d392b981913d8934373e980a (patch) | |
tree | b9cd2e28088756e1441e76790242a5890c14b945 /tcpproxy-listsmtpentries-html.lsp | |
parent | 4f7c42c67f5e22295d178b924861f150c35132c0 (diff) | |
download | acf-tcpproxy-8730ef0997957b46d392b981913d8934373e980a.tar.bz2 acf-tcpproxy-8730ef0997957b46d392b981913d8934373e980a.tar.xz |
Modified tcpproxy to add in SMTP proxy support. Entries are directly edited, this still has to be improved.
git-svn-id: svn://svn.alpinelinux.org/acf/tcpproxy/trunk@1388 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tcpproxy-listsmtpentries-html.lsp')
-rw-r--r-- | tcpproxy-listsmtpentries-html.lsp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp new file mode 100644 index 0000000..7cfa651 --- /dev/null +++ b/tcpproxy-listsmtpentries-html.lsp @@ -0,0 +1,29 @@ +<% local view, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + +<% displaycommandresults({"delsmtpentry"}, session) %> + +<H1>Interface Entries</H1> +<DL> +<TABLE> + <TR style="background:#eee;font-weight:bold;"> + <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Action</TD> + <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Interface</TD> + <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">IP Address</TD> + <TD style="white-space:nowrap;text-align:left;" class="header">Command Entry</TD> + </TR> +<% for i,interface in ipairs(view.value) do %> + <TR> + <TD style="padding-right:20px;white-space:nowrap;"> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsmtpentry?ipaddr="..(interface.ipaddr or interface.interface), label="Edit "} %> + <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpentry?ipaddr="..(interface.ipaddr or interface.interface), label="Delete "} %> + </TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= interface.interface or "" %></TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= interface.ipaddr or "" %></TD> + <TD style="white-space:nowrap;"><%= interface.cmd or "" %></TD> + </TR> +<% end %> +</TABLE> + +</DL> |