slitaz-forge view chub/web/index.php @ rev 129

chub: Use new home image
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 15 04:42:22 2012 +0100 (2012-03-15)
parents 4b79298cf080
children 5cf69cd1cbac
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>SliTaz Chub</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz chub server at COSI" />
8 <meta name="robots" content="index, nofollow" />
9 <meta name="author" content="SliTaz Contributors" />
10 <link rel="shortcut icon" href="favicon.ico" />
11 <link rel="stylesheet" type="text/css" href="slitaz.css" />
12 </head>
13 <body>
15 <!-- Header -->
16 <div id="header">
17 <div id="logo"></div>
18 <div id="network">
19 <a href="http://www.slitaz.org/">
20 <img src="images/home.png" alt="[ Home ]" /></a>
21 <a href="http://scn.slitaz.org/">Community</a>
22 <a href="http://doc.slitaz.org/">Doc</a>
23 <a href="http://forum.slitaz.org/">Forum</a>
24 <a href="http://pro.slitaz.org/">Pro</a>
25 <a href="http://slitaz.spreadshirt.net/">Shop</a>
26 <a href="http://bugs.slitaz.org">Bugs</a>
27 <a href="http://hg.slitaz.org/">Hg</a>
28 </div>
29 <h1><a href="http://www.slitaz.org/">SliTaz Chub</a></h1>
30 </div>
32 <!-- Block -->
33 <div id="block">
34 <!-- Navigation -->
35 <div id="block_nav">
36 <h4>Project servers</h4>
37 <ul>
38 <li><a href="http://tank.slitaz.org/">Tank</a></li>
39 <li><a href="http://mirror.slitaz.org/">Mirror</a></li>
40 </ul>
41 </div>
42 <!-- Information/image -->
43 <div id="block_info">
44 <h4>Codename: chub</h4>
45 <p>
46 This is the SliTaz GNU/Linux Community HUB server. This
47 virtual machine is gracefully hosted by COSI at Clarkson
48 University <a href="http://cosi.clarkson.edu/">cosi.clarkson.edu</a>
49 </p>
50 <p>
51 Chub CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
52 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
53 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
54 "if (n == 4) printf \"quad \"; print s }' ")?> -
55 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
56 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
57 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?>
58 </p>
59 </div>
60 </div>
62 <!-- Content -->
63 <div id="content">
65 <h2>System stats</h2>
67 <h4>Uptime</h4>
69 <pre class="package">
70 <?php
71 system("uptime | sed 's/^\s*//'");
72 ?>
73 </pre>
75 <h4>Disk usage</h4>
76 <pre class="package">
77 <?php
78 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
79 ?>
80 </pre>
82 <h4>Network</h4>
83 <pre class="package">
84 <?php
85 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
86 ?>
87 </pre>
90 <!-- End of content -->
91 </div>
93 <!-- Footer -->
94 <div id="footer">
95 Copyright &copy; <span class="year"></span>
96 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
97 <a href="http://scn.slitaz.org/">Community</a>
98 <a href="http://doc.slitaz.org/">Doc</a>
99 <a href="http://forum.slitaz.org/">Forum</a>
100 <a href="http://pkgs.slitaz.org/">Packages</a>
101 <a href="http://bugs.slitaz.org">Bugs</a>
102 <a href="http://hg.slitaz.org/">Hg</a>
103 <p>
104 SliTaz @
105 <a href="http://twitter.com/slitaz">Twitter</a>
106 <a href="http://www.facebook.com/slitaz">Facebook</a>
107 <a href="http://distrowatch.com/slitaz">Distrowatch</a>
108 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
109 <a href="http://flattr.com/profile/slitaz">Flattr</a>
110 </p>
111 </div>
113 </body>
114 </html>