diff options
-rw-r--r-- | openssh-connectedpeers-html.lsp | 4 | ||||
-rw-r--r-- | openssh-listusers-html.lsp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/openssh-connectedpeers-html.lsp b/openssh-connectedpeers-html.lsp index 5313638..50b535a 100644 --- a/openssh-connectedpeers-html.lsp +++ b/openssh-connectedpeers-html.lsp @@ -16,7 +16,7 @@ for k,v in pairs(data) do 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 WIDTH='20px' STYLE='padding-left:20px;vertical-align:top;'><IMG SRC='<%= html.html_escape(page_info.staticdir) %>/tango/16x16/apps/utilities-terminal.png' HEIGHT='16' WIDTH='16'></TD>") io.write("<TD STYLE='padding-bottom:10px'>\n") io.write("<TABLE>") io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session user:</TD><TD>".. html.html_escape(v.tty[i].user) .. "</TD></TR>\n") @@ -28,7 +28,7 @@ for k,v in pairs(data) do 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 WIDTH='20px' STYLE='padding-left:20px;vertical-align:top;'><IMG SRC='<%= html.html_escape(page_info.staticdir) %>/tango/16x16/emblems/emblem-unreadable.png' HEIGHT='16' WIDTH='16'></TD>") io.write("<TD STYLE='padding-bottom:10px'>\n") io.write("<TABLE>") io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session user:</TD><TD>No records</TD></TR>\n") diff --git a/openssh-listusers-html.lsp b/openssh-listusers-html.lsp index df941b6..a1f740d 100644 --- a/openssh-listusers-html.lsp +++ b/openssh-listusers-html.lsp @@ -4,7 +4,7 @@ <H1>System User Accounts</H1> <DL> <% for i,user in ipairs(view.value) do %> - <DT><IMG SRC='/skins/static/tango/16x16/apps/system-users.png' HEIGHT='16' WIDTH='16'> <%= html.html_escape(user) %></DT> + <DT><IMG SRC='<%= html.html_escape(page_info.staticdir) %>/tango/16x16/apps/system-users.png' HEIGHT='16' WIDTH='16'> <%= html.html_escape(user) %></DT> <DD><A HREF='listauth?user=<%= html.html_escape(user) %>'>Edit this account</A></DD> <% end %> </DL> |