# HG changeset patch # User Pascal Bellard # Date 1283011548 -7200 # Node ID fc589526bc5c0f67ca1371a225ec63588e1f2e03 # Parent 1400c81c35e4e02c7130f6af7102e26e886b4387 mirror-tools: add mirror-info web page diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/favicon.ico Binary file mirror-tools/stuff/var/www/mirror-info/favicon.ico has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/graphs.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/graphs.php Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,132 @@ + + + + Mirror RRD stats + + + + + + + + + + + + + + + +
+
+
+
+ + +
+ +

Mirror RRD stats

+

/usr/bin/rrdtool

+ +'."\n"; +} + +function graphic($res, $img='') +{ + global $myurl; + if (!$img) $img=$res; + echo ""; + echo "\n"; + one_graphic($img."-day.png",$res." daily"); + echo ""; + if (isset($_GET['stats']) && $_GET['stats'] == $res) { + one_graphic($img."-week.png",$res." weekly"); + one_graphic($img."-month.png",$res." monthly"); + one_graphic($img."-year.png",$res." yearly"); + } +} + +echo "

CPU

\n"; +graphic("cpu"); +echo "

Memory

\n"; +graphic("memory"); +echo "

Disk

\n"; +graphic("disk"); +echo "

Network

\n"; +graphic("net","eth0"); + +?> + + +
+
+
+
+
+ + +
+

+Last update : +

+

+Copyright © SliTaz - +GNU General Public License +

+ +
+ + +
+

+Valid XHTML 1.0 +

+
+ + + diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/index.php Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,261 @@ + + + + SliTaz Mirror + + + + + + + + + + + + + + + + +
+
+
+
+ + +
+ +

Server

+

Codename: mirror

+ +

+Mirror CPU is a - += 1024) { x /= 1024; ". +"n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ". +"printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> - +Located in France next to Roubaix. This page has real time statistics +provided by PHP system(). Mirror is also monitored by RRDtool +which provides graphical stats. +

+ +

+ graphs + System stats

+ +

Uptime

+ +
+
+
+ +

Disk usage

+
+
+
+ +

Network

+
+
+
+ + +

Logins

+
+
+
+ +

Processes

+
+
+
+ + + +

+ vhostsVirtual hosts

+ + + + +

+ replicasTank replicas

+ + + + +

+ mirrorsMirrors

+ These mirrors are updated using the url: rsync://mirror.slitaz.org/slitaz/ + (stats) + + + +

builds + Daily builds

+ +'; +system("stat -c '

%y %n

' ".$file." | sed -e 's/.000000000//' -e 's|/var/log/\(.*\).log|\\1.iso|'"); +echo "
";
+system("cat ".$file." | sed -e 's/.\[[0-9][^mG]*.//g' | awk '".
+'{ if (/\[/) { n=index($0,"["); printf("%s%s%s\n",substr($0,1,n-1),'.
+'substr("\t\t\t\t\t\t\t",1,9-(n/8)),substr($0,n)); } else print }'."'");
+echo "
"; +} + +display_log("/var/log/packages-stable.log", "buildstable" ); +display_log("/var/log/packages-cooking.log","buildcooking"); +display_log("/var/log/sources-cooking.log", "buildsources"); +?> + +
+
+
+
+
+ + +
+

+Last update : +

+

+Copyright © SliTaz - +GNU General Public License +

+ +
+ + +
+

+Valid XHTML 1.0 +

+
+ + + diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/desktop.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/desktop.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-day.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-day.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/cpu-day.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-month.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-month.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/cpu-month.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-week.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-week.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/cpu-week.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-year.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/cpu-year.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/cpu-year.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-day.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-day.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/disk-day.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-month.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-month.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/disk-month.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-week.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-week.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/disk-week.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-year.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/disk-year.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/disk-year.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-day.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-day.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/eth0-day.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-month.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-month.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/eth0-month.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-week.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-week.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/eth0-week.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-year.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/eth0-year.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/eth0-year.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-day.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-day.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/memory-day.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-month.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-month.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/memory-month.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-week.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-week.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/memory-week.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-year.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/pics/rrd/memory-year.png Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,1 @@ +/home/bellard/Public/pics/rrd/memory-year.png \ No newline at end of file diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/slitaz-awstats.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/slitaz-awstats.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/slitaz.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/slitaz.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/br.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/br.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/ch.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/ch.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/cn.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/cn.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/fr.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/fr.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/header.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/header.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/it.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/it.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/logo.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/logo.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/logo.xcf Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/logo.xcf has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/monitor.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/monitor.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/nl.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/nl.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/si.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/si.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/us.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/us.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/vhosts.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/vhosts.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/pics/website/xhtml10.png Binary file mirror-tools/stuff/var/www/mirror-info/pics/website/xhtml10.png has changed diff -r 1400c81c35e4 -r fc589526bc5c mirror-tools/stuff/var/www/mirror-info/slitaz.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/mirror-info/slitaz.css Sat Aug 28 18:05:48 2010 +0200 @@ -0,0 +1,382 @@ +/* + CSS style for SliTaz GNU/Linux website + www.slitaz.org - (c) 2007 Pankso +*/ + +html { + height: 102%; +} + +body { + background: #ffffff; + color: black; + font: 13px sans-serif, vernada, arial; + margin: 0; +} + +/* Accessibility */ + +#access { + position: absolute; + top: 4px; + right: 4px; + text-align: right; + width: 100%; + margin: 0; + font-size: 11px; + font-weight: bold; +} + +#access a { + background: inherit; + color: white; + text-decoration: none; +} + +#access a:hover { + background: inherit; + color: #222222; +} + +/* Header and title */ + +#header{ + background: #f0ba08 url(pics/website/header.png) repeat-x top; + color: black; + width: 100%; + height: 50px; + border-top: 1px solid black; + border-bottom: 1px solid black; + margin-bottom: 30px; +} + +#titre { + position: absolute; + font-size: 16px; + font-weight: bolder ; + margin-left: 200px; + margin-top: 28px; +} + +#logo { + position: absolute; + float: left; + margin-left: 16px; + margin-top: 0px; +} + +/* Navigation */ + +#nav { + position: absolute; + top: 76px; + right: 40px; + color: #555555; + float: right; + width: 250px; + line-height: 1.5em; + text-align: left; + font-size: 12px; +} + +#nav ul { + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + list-style-type: none; + margin: 10px 0; + padding: 10px 24px 10px 24px; + background-color: #eaeaea; +} + +#nav .nav_box ul { + list-style-type: none; + margin: 0; + padding: 10px 24px 10px 0px; +} + +#nav li { + display: inline; +} + +#nav h4 { + font-size: 110%; + color: #666666; + font-weight: bold; + margin: 0; + padding: 0 0 1px 0; + border-bottom: 1px solid #cecece; +} + +#nav a { + color: #0F314E; + background: inherit; + display: block; + text-decoration: none; + font-weight: bold; +} + +#nav a:hover { + color: #DF8F06; + text-decoration: none; + display: block; +} + +#nav hr { + margin: 2px 0px 1px 0px; + border: 0px; + border-top: 1px solid #BDBDBD; + +} + +.nav_box { + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + margin: 10px 0; + padding: 10px 24px 10px 24px; + background-color: #eaeaea; + text-align: justify; +} + +#nav .nav_box p { + line-height: 1.3em; +} + +#nav .nav_box p a { + display: inline; + font-weight: normal; + text-decoration: none; +} + +#nav .nav_box p a:hover { + text-decoration: none; + color: #DF8F06; + background: inherit; +} + +#nav hr { + height: 0px; + border: 0px solid #eaeaea; +} + +/* Page content */ + +#content, #content_bottom, #content_top { + background: white; + color: black; + text-align: justify; +} + +#content { + height: auto; + margin: 6px 280px 0px 0px; + padding: 0px 40px 60px 40px; +} + +#content li { + line-height: 1.5em; + text-align: left; +} + +/* Legal informations */ + +#copy { + font-size: 11px ; + text-align: center ; + background: transparent; + color: #a8a8a8; + padding-top: 10px; +} + +#copy a { + background: inherit; + color: #a8a8a8; +} + +#copy a:hover { + background: inherit; + color: #666666; +} + +/* Footer */ + +#bottom { + float: none; + background: inherit; + color: black; + width: auto; + clear: both; + padding: 0; + margin: 0; + text-align: center; + vertical-align: middle; +} + +#news li { + list-style-type: square; + border-bottom: 1px dotted #BEBEBE; + margin-left: -25px; + padding: 4px 0px 4px 0px; +} + +#gallery { + text-align: center; +} + +#gallery table { + margin: 30px 0px 30px 0px; +} + +/* Clouds */ + +#cloud { + padding: 20px 0px 20px 0px; + line-height: 3em; + text-align: center; +} +#cloud a { padding: 4px; color: #956411; } +#cloud a.tag1 { font-size: 0.7em; font-weight: 100; } +#cloud a.tag2 { font-size: 0.8em; font-weight: 200; } +#cloud a.tag3 { font-size: 0.9em; font-weight: 300; } +#cloud a.tag4 { font-size: 1.0em; font-weight: 400; } +#cloud a.tag5 { font-size: 1.2em; font-weight: 500; } +#cloud a.tag6 { font-size: 1.4em; font-weight: 600; } +#cloud a.tag7 { font-size: 1.6em; font-weight: 700; } +#cloud a.tag8 { font-size: 1.8em; font-weight: 800; } +#cloud a.tag9 { font-size: 2.2em; font-weight: 900; } +#cloud a.tag10 { font-size: 2.5em; font-weight: 900; } + +/* CSS class. */ + +.infobox { + margin: 10px; + padding: 12px; + background: #f2f2f2; + border: 1px solid #eaeaea; + -moz-border-radius: 8px; + -webkit-border-radius: 8px; +} + +/* HTML styles */ + +h1 { + color: blue; + background: inherit; + text-align: left; + margin: 0px 0px 10px 0px; + font-size: 140%; + font-weight: bold; +} + +h2 { + color: #DF8F06; + /* border-top: 1px solid #f3f3f3; */ + border-left: 8px solid #f3f3f3; + padding: 4px 0px 4px 4px; + margin: 0; + font-size: 140%; + font-weight: bold; +} + +h3 { + font-weight: bold; + color: #6c0023; + background: inherit; +} + +h3 img { + vertical-align: middle; + padding-right: 4px; +} + +a { + text-decoration: underline; + color: #0F314E; + background: inherit; +} + +a:hover { + text-decoration: none; + color: blue; + background: inherit; +} + +code { + font-size: 12px; + color: #669900; + background: inherit; +} + +tt { + color: #15EE15; + background: inherit; +} + +img { + border: 0pt none; +} + +fieldset { + background: #E2ECf6; + color: black; + margin-top: 25px; + border: 1px solid black; +} + +legend { + border: 1px solid black; + color: #6c0023; + background: #eaeaea; + font-weight: bold; +} + +pre { + padding: 5px; + color: black; + background: #E1E0B0; +} + +pre.script { + padding: 10px; + color: black; + background: #E8E8E8; + border: 1px inset #606060; +} + +textarea { + background: #E5E5E5; + margin-top: 12px; +} + +input[type=submit] { + background: #E5E5E5; + color: black; + border: 1px outset #111111; + font-weight: bold; +} + +input[type=submit]:hover { + background: #F3F3F3; + color: black; +} + +/* Packages pages */ + +.pkg_nav { + border-top: 1px solid black; + margin-top: 10px; + padding-top: 10px; +} + +pre.package { + padding: 0px; + color: black; + background: white; +} + +p.get { + text-align: center; + padding: 10px; + color: black; + background: #F3F3F3; + border: 1px solid #DEDEDE; +}