";
// On enregistre notre autoload.
function chargerClasse($classname)
{
require 'lib/'.$classname.'.class.php';
}
spl_autoload_register('chargerClasse');
$infosServeur = new InfosServer();
$elements = new Elements();
// Calcul uptime
$uptime = $elements->getTime();
// En-tete
$elements->displayEntete($infosServeur, $this->getLang('name'),$this->locale_xhtml('intro'));
//
// UPTIME
//
// Affiche données UPTIME si OS différent de windows
IF (PHP_OS != "WINNT")
{
// Affiche la catégorie
$elements->displayHead($this->getLang('vauptime'));
// Affiche les valeurs
echo "
";
// Noms
echo "
";
echo "
".$this->getLang('server_local_time')."
";
echo "
".$this->getLang('server_itil_uptime')."
";
echo "
";
// Contenus
echo "
";
echo "
".$elements->getLocalTime($uptime)."
";
echo "
".$elements->getUpTime($uptime, $this->getLang('day'), $this->getLang('hour'), $this->getLang('minute'))."
"; // $ITIL
echo "
";
echo "
";
}
// SYSTEM
$elements->displaySystem($infosServeur, $this->getLang('system'), $this->getLang('server_os'),
$this->getLang('distrib'), $this->getLang('vmac'));
// HARDWARE
// Affiche la categorie
$elements->displayHead($this->getLang('hw'));
// Categorie
$elements->displayHwCategories($this->getLang('cpu'), $this->getLang('ram'), $this->getLang('dd'));
// Nom contenus
$elements->displayHwSCategories($this->getLang('cpu_mark'), $this->getLang('cpu_model'), $this->getLang('cpu_freq'),
$this->getLang('total'), $this->getLang('dd_free'), $this->getLang('dd_used'));
// Valeurs contenus
$elements->displayHwSCategoriesValues($infosServeur);
// SERVEUR WEB
// Affiche la categorie
$elements->displayHead($this->getLang('web'));
// Categorie
$elements->displayWebCategories($this->getLang('server_ip'), $this->getLang('server_name'),
$this->getLang('server_web'), $this->getLang('server_port'));
// Valeurs
$elements->displayWebValues();
// SERVEUR PHP
// Affiche la categorie
$elements->displayHead($this->getLang('vaphp'));
// Categorie
$elements->displayPhpCategories($this->getLang('php_version'), $this->getLang('uploadmaxfilesize'),
$this->getLang('postmaxsize'), $this->getLang('memorylimit'));
// Valeurs
$elements->displayPhpValues();
// Chemins php
$elements->displayPhpPath($this->getLang('document_root'), $this->getLang('path_toini'));
IF (PHP_OS == "Linux")
{
// AFFICHE LES SERVICES
// Affiche la categorie
$elements->displayHead($this->getLang('services'));
// Categories
$elements->displayServicesCategories();
// Valeurs
$elements->displayServicesValues();
}
echo "