diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-09-24 15:21:17 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-09-24 15:21:17 +0000 |
commit | 651ba7cce4fd5bc01edf6902e0f08c7c93527d00 (patch) | |
tree | b32701c4a876c5959b6208836fc250fcd34c725e /openssh-connectedpeers-html.lsp | |
parent | 2a8551baa8f0025f836e7501c1cce71251357c78 (diff) | |
download | acf-openssh-651ba7cce4fd5bc01edf6902e0f08c7c93527d00.tar.bz2 acf-openssh-651ba7cce4fd5bc01edf6902e0f08c7c93527d00.tar.xz |
Modified openssh. Changed expert, status, and startstop to links. Modified config to use standard cfes. Modified peers to account for dns names.
git-svn-id: svn://svn.alpinelinux.org/acf/openssh/trunk@1489 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openssh-connectedpeers-html.lsp')
-rw-r--r-- | openssh-connectedpeers-html.lsp | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/openssh-connectedpeers-html.lsp b/openssh-connectedpeers-html.lsp index 9fdbca8..5657e36 100644 --- a/openssh-connectedpeers-html.lsp +++ b/openssh-connectedpeers-html.lsp @@ -10,34 +10,41 @@ io.write("</span>") <H1>Connected peers</H1> <DL> <% +if #data == 0 then + io.write("No peers found\n") +end local col1="180px" for k,v in pairs(data) do - io.write("<H3>" .. (tostring(v.host) or "unkown") .. "</H3>") + io.write("<H3>" .. v.host) + if v.name and v.name ~= "" then io.write(" - "..v.name) end + io.write("</H3>\n") io.write("<TABLE>") for i=1, v.cnt do io.write("<TR>") if (v.tty[i]) then io.write("<TD WIDTH='20px' STYLE='padding-left:20px;vertical-align:top;'><IMG SRC='/skins/static/tango/16x16/apps/utilities-terminal.png' HEIGHT='16' WIDTH='16'></TD>") - io.write("<TD STYLE='padding-bottom:10px'>") + io.write("<TD STYLE='padding-bottom:10px'>\n") io.write("<TABLE>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session TTY:</TD><TD>".. tostring(v.tty[i]['tty']) .. "</TD></TR>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Started:</TD><TD>".. tostring(v.tty[i]['time']) .. "</TD></TR>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Idle:</TD><TD>".. tostring(v.tty[i]['idle']) .. "</TD></TR>") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session user:</TD><TD>".. v.tty[i].user .. "</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session TTY:</TD><TD>".. v.tty[i].tty .. "</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Started:</TD><TD>".. v.tty[i].time .. "</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Idle:</TD><TD>".. v.tty[i].idle .. "</TD></TR>\n") io.write("</TABLE>") - io.write("</TD>") + io.write("</TD>\n") else io.write("<TD WIDTH='20px' STYLE='padding-left:20px;vertical-align:top;'><IMG SRC='/skins/static/tango/16x16/emblems/emblem-unreadable.png' HEIGHT='16' WIDTH='16'></TD>") - io.write("<TD STYLE='padding-bottom:10px'>") + io.write("<TD STYLE='padding-bottom:10px'>\n") io.write("<TABLE>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session TTY:</TD><TD>No records</TD></TR>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Started:</TD><TD>No records</TD></TR>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Idle:</TD><TD>No records</TD></TR>") - io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Other:</TD><TD>This could be a sshfs session</TD></TR>") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session user:</TD><TD>No records</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session TTY:</TD><TD>No records</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Started:</TD><TD>No records</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Idle:</TD><TD>No records</TD></TR>\n") + io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Other:</TD><TD>This could be a sshfs session</TD></TR>\n") io.write("</TABLE>") - io.write("</TD>") + io.write("</TD>\n") end io.write("</TR>") end |