Commit 5594cdbc authored by Laurent Aimar's avatar Laurent Aimar

* index: little fix for refresh url.

 * browse: example.
parent 64ce2efa
<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>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<head> <head>
<title>VLC Media Player - Admin</title> <title>VLC Media Player - Admin</title>
<vlc id="if" param1="url_param"/> <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="end" />
<vlc id="control" /> <vlc id="control" />
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<body> <body>
<h2> <h2>
<center> <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> </center>
</h2> </h2>
<hr/> <hr/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment