wok rev 10899

busybox/httpd: add slitaz style in directory index
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 15 11:50:30 2011 +0200 (2011-07-15)
parents 46c3a889a648
children 8e0af5f8e73f
files busybox/stuff/www/cgi-bin/index.cgi
line diff
     1.1 --- a/busybox/stuff/www/cgi-bin/index.cgi	Fri Jul 15 11:34:28 2011 +0200
     1.2 +++ b/busybox/stuff/www/cgi-bin/index.cgi	Fri Jul 15 11:50:30 2011 +0200
     1.3 @@ -5,13 +5,31 @@
     1.4  
     1.5  <!DOCTYPE html>
     1.6  <html xmlns="http://www.w3.org/1999/xhtml">
     1.7 -<head> <title>Index of $QUERY_STRING</title> </head>
     1.8 +<head>
     1.9 +	<title>Index of $QUERY_STRING</title>
    1.10 +	<meta charset="utf-8" />
    1.11 +	<link rel="stylesheet" type="text/css" href="../style.css" />
    1.12 +</head>
    1.13 +
    1.14 +<!-- Header -->
    1.15 +<div id="header">
    1.16 +	<h1>Index of $QUERY_STRING</h1>
    1.17 +</div>
    1.18 +
    1.19 +<!-- Content -->
    1.20 +<div id="content">
    1.21  <body>
    1.22 -	<h1>Index of $QUERY_STRING</h1>
    1.23  	<ul>
    1.24  $({ [ "$QUERY_STRING" != "/" ] && echo "../"; ls -p ..$QUERY_STRING; } | \
    1.25    sed 's|.*|		<li><a href="&">&</a></li>|')
    1.26  	</ul>
    1.27 +</div>
    1.28 +
    1.29 +<!-- Footer -->
    1.30 +<div id="footer">
    1.31 +    Copyright &copy; $(date +%Y) <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
    1.32 +</div>
    1.33 +
    1.34  </body>
    1.35  </html>
    1.36  EOT