]> git.sesse.net Git - vlc/commitdiff
* index: little fix for refresh url.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 11 Jul 2003 18:21:30 +0000 (18:21 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 11 Jul 2003 18:21:30 +0000 (18:21 +0000)
 * browse: example.

share/http/admin/browse.html [new file with mode: 0644]
share/http/admin/index.html

diff --git a/share/http/admin/browse.html b/share/http/admin/browse.html
new file mode 100644 (file)
index 0000000..7111b24
--- /dev/null
@@ -0,0 +1,48 @@
+<html>
+<head>
+    <title>VLC Media Player - Browser</title>
+
+    <vlc id="if" param1="'control' url_extract strlen"/>
+        <meta http-equiv="refresh" content="0;URL=/admin/browse.html?dir=<vlc id="value" param1="'dir' url_extract" />" />
+    <vlc id="end" />
+
+    <vlc id="control" param1="add"/>
+</head>
+<body>
+    <h2><center><a href="/">VLC Media Player <vlc id="value" param1="version" /></a></center></h2>
+    <hr/>
+    <table  width="100%" border=0 cellspacing=1 cellpadding=2>
+    <tr>
+        <th align="left" bgcolor="#88ff88" colspan="2">File (<vlc id="value" param1="'dir' url_extract" />)</th>
+        <th align="left" bgcolor="#cccccc">Size</th>
+        <th align="left" bgcolor="#cccccc">Date</th>
+    </tr>
+    <vlc id="rpn" param1="'dir' url_extract" />
+    <vlc id="foreach" param1="file" param2="directory" />
+        <tr>
+            <td>
+                <vlc id="if" param1="file.type value 'directory' strcmp 0 =" />
+                    <img src="/icons/dir.gif" alt=[DIR]" border="0" width="20" height="22">
+                    <a href="?dir=<vlc id="value" param1="file.name" />"><vlc id="value" param1="file.name" /></a>
+                <vlc id="else" /> 
+                    <img src="/icons/text.gif" alt=[FILE]" border="0" width="20" height="22">
+                    <vlc id="value" param1="file.name" />
+                <vlc id="end" />
+            </td>
+            <td align="right">
+                <form method="get" action="">
+                    <input type="hidden" name="dir" value="<vlc id="value" param1="'dir' url_extract" />"/>
+                    <input type="hidden" name="mrl" value="<vlc id="value" param1="file.name" />"/>
+                    <input type="submit" name="control" value="add" />
+                </form>
+            </td>
+            <td align="right"><vlc id="value" param1="file.size" /></td>
+            <td align="center"><vlc id="value" param1="file.date" /></td>
+        </tr>
+    <vlc id="end" />
+    </table>
+    <hr/>
+    <p><vlc id="value" param1="copyright" /> </p>
+</body>
+</html>
+
index bd6ad6845c982f01722649084b820b1a19b54477..5b418c8a73cfcf74993f974c6dcf911bf9324b1c 100644 (file)
@@ -2,7 +2,7 @@
 <head>
     <title>VLC Media Player - Admin</title>
     <vlc id="if" param1="url_param"/>
-        <meta http-equiv="refresh" content="0;URL=/adm.html" />
+        <meta http-equiv="refresh" content="0;URL=/admin/" />
     <vlc id="end" />
 
     <vlc id="control" />
@@ -11,7 +11,7 @@
 <body>
     <h2>
         <center>
-        <a href="http://www.videolan.org">VLC Media Player - Admin <vlc id="value" param1="version" /></a> <form method="get" action=""> <input type="submit" name="control" value="shutdown" /> </form>
+        <a href="/">VLC Media Player - Admin <vlc id="value" param1="version" /></a> <form method="get" action=""> <input type="submit" name="control" value="shutdown" /> </form>
         </center>
     </h2>
     <hr/>