n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/pages/apropos.en.php

137 lines
7.3 KiB
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?php
//$espace_web = exec("du -c -h /var/www/website/ | tail -1 | cut -f 1");
//$occupation_ftp = exec("df | grep ftp | cut -d ' ' -f 26");
// nb de clients par service
// $http = exec("netstat -t | cut -d ' ' -f 16 | grep localhost.localdom:http | wc -l");
// $ftp = exec("netstat -t | cut -d ' ' -f 16 | grep ftp | wc -l");
// $ssh = exec("netstat -t | cut -d ' ' -f 16 | grep ssh | wc -l");
// $icecast = 0;
/* $stamp = exec("cat /proc/uptime |cut -f 1 -d ' '");
echo $stamp; */
$s = explode( " ", exec("/sbin/sysctl -n kern.boottime") );
$a = str_replace( ",", "", $s[3]);
$stamp = time() - $a;
$uptime_annees = date("y",$stamp)-70;
$uptime_mois = date("m",$stamp)-1;
$uptime_jours = date ("j",$stamp)-1;
$uptime_heures =date ("H",$stamp)-1;
$uptime_minutes = date ("i",$stamp);
$uptime_secondes = date ("s",$stamp);
?>
<table border='0'><tr><td><img src='images/transparent.gif' alt='' class='icon_1' /></td><td><h1><a id='tourmentine'>About the tourmentine</a></h1></td></tr></table>
<table border='0'>
<tr>
<td><img src='/images/tourmentine.gif' border="0" alt="" title="" /></td>
<td><i>
&quot;He who tread down the <a href="http://malvoort.free.fr/bibliotheque/savoirs/savoir6.html" target="_blank">Tourmentine</a> is ''ghostified'' and is not any more aware of himself.&quot; He can walk the same way hundred times without anything to recognize. He will go round in circles for the rest of his life unless a fortunate coincidence or sylvains and sidhe's goodwill lead him to the <a href="http://malvoort.free.fr/bibliotheque/savoirs/savoir5.html" target="_blank">Parisette</a> who will break the evil spell.</i>
<br /><br /><div align='right'>(Pierre Dubois in La Grande encyclop<EFBFBD>die des lutins - &quot;Ceux des bois et des for<EFBFBD>ts&quot;)</div><br />
</td>
</tr>
</table>
<br /><hr /><br />
<table border='0'><tr><td><img src='/images/transparent.gif' alt='' class='icon_1' /></td><td><h1><a id='serveur'>About this server</a></h1></td></tr></table>
<p>A brave <a href='/images/omnibook.jpg'>HP Omnibook 900</a> (yes, it's a notebook) leads this website at the amazing speed of...300Mhz (don't laugh, please, the old boy is <?php echo date("Y")-1999 ?> years old). Mr. Omnibook - Howard Phillips are its first names, if you know who I am referencing to - is also used as a gateway, firewall, WiFi access point and, last but not least, mail server (fully secure, of course).</p>
<p>The tourmentine is a <a href="http://www.tourmentine.com">website</a> and a 1 Gb <a href="ftp://ftp.tourmentine.com/" target="ftp">ftp</a> server <del>which just need to be filled up, go <a href="ftp://ftp.tourmentine.com/uploads/" target="ftp">upload</a></del>!</p>
<p>The tourmentine also provides some random services, wich works only from time to time, like a <a href="http://tourmentine.com/cam.en.html">webcam</a> (to see how sweet is my home)<del>, and an <a href="http://tourmentine.com:8000" target="_blank">IceCast</a> server</del>.</p>
<p>To bore you to death, here's the remaining software running on this machine (a big thanks to their developpers):</p>
<ul>
<li><a href='http://www.freebsd.org'>FreeBSD</a>, the OS with basket ball shoes</li>
<li><a href='http://www.openbsd.org/faq/pf/'>PF</a>, the firewall that rox</li>
<li><a href='http://www.lighttpd.net/'>lighttpd</a>, light, simple...what else? </li>
<li><a href='http://www.php.net'>PHP 5</a>, because sometimes, it is needed.</li>
<li><a href='http://www.mysql.com'>MySQL 5</a> (who's building a website without MySQL, nowadays?)</li>
<li><a href='http://munin.projects.linpro.no/'><del>Munin</del></a>, <a href='http://www.phpmyvisites.net'>phpMyVisites</a> and <a href='http://www.squirrelmail.org'>SquirrelMail</a> for webmail</li>
<li><a href='http://vsftpd.beasts.org/'>vsftpd</a> (everyone has a favorite, and this one has a trusty name, after all)</li>
<li><a href='http://cr.yp.to/qmail.html'>QMail</a> for assemteepee</li>
<li><a href='http://www.dovecot.org/'>Dovecot</a> for pop(s), imap(s), and mail delivery</li>
<li><del><a href='http://www.clamav.net'>Clam AntiVirus</a>, <a href='http://spamassassin.apache.org'>Spamassassin 3</a></del> <a href='http://www.nuclearelephant.com'>Dspam</a> and <a href='http://www.courier-mta.org/maildrop/'>maildrop</a> for filtering electronic junk</li>
<li><a href='http://www.openssh.org'>OpenSSH</a> and its friend <a href='http://www.openssl.org'>OpenSSL</a> (since they put me in a cold sweat each time a security hole was discovered for the last two years, I have a very special love &amp; hate relationship with both of them)</li>
<li>And the programming language needed to execute many of the above programs: <a href='http://www.perl.org'>Perl</a>.</li>
</ul>
<!--<p>Pour finir une ch'tite <a href="ftp://tourmentine.com/images/cybertourmentine.jpg" target='_blank'>foto</a> de la b<EFBFBD>te qui abrite tout <EFBFBD>a...</p>-->
<br /><hr /><br />
<table border='0'><tr><td><img src='/images/transparent.gif' alt='' class='icon_3' /></td><td><h1><a id='infoserveur'>Server Informations</a></h1></td></tr></table>
<br /><br/>
<div align='left'>
<ul>
<li><a href='http://www.grenouille.com/graph/index.php?zone=235390' target='_blank'>Line state</a></li>
<li><a href='http://stats.tourmentine.com/phpSysInfo/'>System informations</a></li>
<li><a href='http://stats.tourmentine.com/mrtg/'>MRTG statistics</a></li>
<?php
echo "<li><a href='http://uptime.netcraft.com/up/graph/?host=www.tourmentine.com' target='_blank'>Uptime</a>: ";
if ($uptime_annees > 0)
{
echo "$uptime_annees year";
if ($uptime_annees > 1)
echo "s";
echo ", ";
}
if ($uptime_mois > 0)
{
echo "$uptime_mois month";
if ($uptime_mois > 1)
echo "s";
echo ", ";
}
if ($uptime_jours > 0)
{
echo "$uptime_jours day";
if ($uptime_jours > 1)
echo "s";
echo ", ";
}
if ($uptime_heures > 0)
{
echo "$uptime_heures hour";
if ($uptime_heures > 1)
echo "s";
echo ", ";
}
if ($uptime_minutes > 0)
{
echo "$uptime_minutes minute";
if ($uptime_minutes > 1)
echo "s";
}
if ($uptime_secondes > 0)
{
echo " &amp; ";
echo "$uptime_secondes second";
if ($uptime_secondes > 1)
echo "s";
}
echo "</li>";
// $ssh=exec("netstat -tp|grep ESTABLISHED|grep sshd");
// echo "<br>Nombre de connections: <b>web</b> : $http / <b>ftp</b> : $ftp / <b>icecast</b> : $icecast<br>";
?>
<li>You can also look at visitors' stats <a href='/visit/'>here</a></li>
</ul>
<div id="ipv6_enabled_www_test_logo"></div>
<script language="JavaScript" type="text/javascript">
var Ipv6_Js_Server = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + Ipv6_Js_Server + "www.ipv6forum.com/ipv6_enabled/sa/SA.php?id=511' type='text/javascript'%3E%3C/script%3E"));
</script>
</div>
<br /><hr /><br />
<table border='0'><tr><td><img src='/images/transparent.gif' alt='' class='icon_1' /></td><td><h1><a id='auteur'>About the author</a></h1></td></tr></table>
<p>Are you sure you want to know more about me? Really sure? Are you sure that it worth it, and that you haven't lost enough time?
Do you really believe my life to be that interesting, to lead you to my awful homepage?</p>
<p>So if you really do, I think nothing can stop you. Click <a href='/moi.en.html'>here</a> if you dare.</p>
<br /><hr /><br />
<?php
echo "<div align=\"right\"><h6>(Updated ".date("M j Y",filemtime(__FILE__)).")</h6></div><br />";
?>