up, no własnie czyli jednak są dotyczące miejsca na dysku.
Poszperałem po kilku forach i znalazłem pliki tej strony do której link podałem. Strona oparta na bibliotekach smarty a plik od statusu kompa wygląda tak:
Cytat
<?php
#CPU
$cpu = $sys->cpu_info();
if ($cpu['cpuspeed'] > 1024) {
$cpu['cpuspeed'] = round($cpu['cpuspeed']/1024,1);
}
$smarty->assign('cpu',$cpu);
#Memory
$memory = $sys->memory();
$memory['ram']['total'] = round($memory['ram']['total']/1024);
$memory['ram']['free'] = round($memory['ram']['free']/1024);
$memory['ram']['used'] = round($memory['ram']['used']/1024);
$memory['swap']['total'] = round($memory['swap']['total']/1024);
$memory['swap']['free'] = round($memory['swap']['free']/1024);
$memory['swap']['used'] = round($memory['swap']['used']/1024);
$smarty->assign('memory',$memory);
#Network
$network = $sys->network();
$net_temp = array();
function bitesTo($val){
$cal = "Bites";
if ($val > 1024) {
$val = $val/1024;
$cal = 'KB';
}
if ($val > 1024) {
$val = $val/1024;
$cal = 'MB';
}
if ($val > 1024) {
$val = $val/1024;
$cal = 'GB';
}
if ($val > 1024) {
$val = $val/1024;
$cal = 'TB';
}
return round($val,2).' '.$cal;
}
foreach ($network as $key => $value){
$temp = array();
$temp['recieved'] = bitesTo($value['rx_bytes']);
$temp['sent'] = bitesTo($value['tx_bytes']);
$net_temp[$key] = $temp;
}
$smarty->assign('network',$net_temp);
#System Vital
$smarty->assign('distro_name',$sys->distro());
$smarty->assign('kernel_version',$sys->kernel());
$smarty->assign('can_host',$sys->chostname());
?>
no ale jak próbuje odpalić ten skrypt u mnie wywala

Cytat
Fatal error: Call to a member function cpu_info() on a non-object in C:\Program Files\WebServ\httpd\p.php on line 4