wok-tiny view manager/stuff/var/www/adm/index.sh @ rev 11

Add manager
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 13:43:52 2011 +0100 (2011-02-02)
parents
children
line source
1 #!/bin/sh
3 . /usr/bin/httpd_helper.sh
5 command="$GET__NAMES"
6 case "$command" in
7 start|restart|stop) command="/etc/init.d/$(GET $command) $command";;
8 esac
9 cat <<EOT
10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
11 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
13 <head>
14 <title>status tiny server $(hostname) - $HTTP_HOST
15 </title>
16 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
17 <meta HTTP-EQUIV="Refresh" CONTENT="5;URL=/index.sh">
18 <meta name="description" content="Tiny server manager" />
19 <meta name="expires" content="never" />
20 <meta name="modified" content="2008-03-05 16:33:00" />
21 <link rel="shortcut icon" href="/css/favicon.ico" />
22 <link rel="stylesheet" type="text/css" href="/css/slitaz.css" />
23 </head>
24 <body bgcolor="#ffffff">
25 <div id="header">
26 <a href="http://www.slitaz.org/"><img id="logo"
27 src="/css/pics/website/logo.png" title="www.slitaz.org"
28 alt="www.slitaz.org"
29 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
30 <p id="titre">#!/tinyserver/command</p>
31 </div>
32 <div id="content">
33 <h4>$(date)</h4>
34 <h2>$command</h2>
35 <pre>
36 $($command)
37 </pre>
38 <h4>Command complete</h4>
39 </div>
40 <!-- Start of footer and copy notice -->
41 <div id="copy">
42 <p>
43 Copyright © $(date +%Y) <a href="http://www.slitaz.org/">SliTaz</a> -
45 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
46 </p>
47 <!-- End of copy -->
48 </div>
50 </body>
51 </html>
52 EOT