]> git.sesse.net Git - vlc/blob - share/lua/http/old/admin/browse.html
Fix lua http interface loading.
[vlc] / share / lua / http / old / admin / browse.html
1 <html>
2 <head>
3     <title>VLC media player - Browser</title>
4     <link href="../style.css" title="Default" rel="stylesheet" type="text/css" />
5
6     <vlc id="if" param1="'control' url_extract strlen"/>
7         <meta http-equiv="refresh" content="0;URL=/old/admin/browse.html?dir=<vlc id="value" param1="'dir' url_extract" />" />
8     <vlc id="end" />
9
10     <vlc id="control" param1="add"/>
11 </head>
12 <body>
13     <h2><center><a href="/old/">VLC media player <vlc id="value" param1="version" /></a></center></h2>
14     <hr/>
15     <table  width="100%" border=0 cellspacing=1 cellpadding=2>
16     <tr>
17         <th align="left" bgcolor="#88ff88" colspan="2">File (<vlc id="value" param1="'dir' url_extract" />)</th>
18         <th align="left" bgcolor="#cccccc">Size</th>
19         <th align="left" bgcolor="#cccccc">Date</th>
20     </tr>
21     <p>This page is default disabled for security reasons (change _directory_ into directory to enable it).</p>
22     <vlc id="rpn" param1="counter 0 store" />
23     <vlc id="rpn" param1="'dir' url_extract" />
24     <vlc id="foreach" param1="file" param2="_directory_" />
25         <vlc id="rpn" param1="counter counter value 1 + store" />
26         <tr class="<vlc id="if" param1="counter value 2 % 0 =" />line1<vlc id="else" />line2<vlc id="end" />">
27             <td>
28                 <vlc id="if" param1="file.type value 'directory' strcmp 0 =" />
29                     <img src="/icons/dir.gif" alt=[DIR]" border="0" width="20" height="22">
30                     <a href="?dir=<vlc id="value" param1="file.name" />"><vlc id="value" param1="file.name" /></a>
31                 <vlc id="else" /> 
32                     <img src="/icons/text.gif" alt=[FILE]" border="0" width="20" height="22">
33                     <vlc id="value" param1="file.name" />
34                 <vlc id="end" />
35             </td>
36             <td align="right">
37                 <form method="get" action="">
38                     <input type="hidden" name="dir" value="<vlc id="value" param1="'dir' url_extract" />"/>
39                     <input type="hidden" name="mrl" value="<vlc id="value" param1="file.name" />"/>
40                     <input type="submit" name="control" value="add" />
41                 </form>
42             </td>
43             <td align="right"><vlc id="value" param1="file.size" /></td>
44             <td align="center"><vlc id="value" param1="file.date" /></td>
45         </tr>
46     <vlc id="end" />
47     </table>
48     <hr/>
49     <p><vlc id="value" param1="copyright" /> </p>
50 </body>
51 </html>