
02-15-2003, 04:12 PM
|
|
|
Join Date: Dec 2001
Location: Portugal
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
tks
Quote:
Originally posted by nuno
*gee* 
paste this into your phpinclude template
PHP Code:
$result = mysql_query("show status");
while ($row = mysql_fetch_array($result)){
if ($row['Variable_name'] == "Uptime") { $uptime = $row['Value']; }
}
$days = ((($uptime/60)/60)/24);
$wholeday = (int) $days;
$hours = (($days - $wholeday)*24);
$wholehour = (int) $hours;
$minutes = (($hours - $wholehour)*60);
$wholeminute = (int) $minutes;
paste this into your footer template, right after $copyrighttext<br>
Code:
<smallfont>System Uptime: $wholeday Days $wholehour Hours $wholeminute Minutes
</smallfont>
All done
|
|