Allgemein
Startseite
Gruppen
Rangliste
Stats
Team
Forum
Download
FAQ
Impressum / Kontakt
User
einloggen
registrieren
User suche
Statistik
Benutzer: 5769
Geräte: 3081
Aktive Geräte: 15
Beste Uptime
Drecksackblase mit 2437d 14:36
Bester Uptimerekord
Drecksackblase mit 2437d 14:36
|
Warning: Use of undefined constant order - assumed 'order' (this will throw an Error in a future version of PHP) in /var/www/vhosts/embedded-uptime-project.com/httpdocs/module/top_list.php on line 6
Warning: Use of undefined constant ordby - assumed 'ordby' (this will throw an Error in a future version of PHP) in /var/www/vhosts/embedded-uptime-project.com/httpdocs/module/top_list.php on line 8
Warning: Use of undefined constant limit - assumed 'limit' (this will throw an Error in a future version of PHP) in /var/www/vhosts/embedded-uptime-project.com/httpdocs/module/top_list.php on line 11
Warning: Use of undefined constant limit2 - assumed 'limit2' (this will throw an Error in a future version of PHP) in /var/www/vhosts/embedded-uptime-project.com/httpdocs/module/top_list.php on line 12
Warning: Use of undefined constant group - assumed 'group' (this will throw an Error in a future version of PHP) in /var/www/vhosts/embedded-uptime-project.com/httpdocs/module/top_list.php on line 13
Warning: Use of undefined constant group - assumed 'group' (this will throw an Error in a future version of PHP) in /var/www/vhosts/embedded-uptime-project.com/httpdocs/module/top_list.php on line 14
TOP Liste
'>Top |
'>Name |
'>Beschreibung |
'>Gruppe |
'>">Uptime |
'>">Uptime Record |
'>Aktiv |
$i=0+$limit;
$zeit=time();
while ($row = $dbx->fetch_array()) {
if ($i % 2) {
$farbe = $config['tabellenfarbe2'];
}
else
{
$farbe = $config['tabellenfarbe3'];
}
#######################
$zeitspanne=$zeit-$row['lastupdate'];
if ($zeitspanne < 86400) {#unter einem tag
$ampel="ampel_gruen.gif";
}
elseif ($zeitspanne < (86400 * 2)) {#unter einer woche
$ampel="ampel_gruen_gelb.gif";
}
elseif ($zeitspanne < 604800) {#unter einer woche
$ampel="ampel_gelb.gif";
}
elseif ($zeitspanne < 2419200) {#4wochen
$ampel="ampel_gelbrot.gif";
}
else {#4wochen
$ampel="ampel_rot.gif";
}
#######################
?>
echo $i+1; ?> |
echo $row['username']; ?> |
echo $row['description']; ?> |
echo $row['groupname']; ?> |
echo uptime($row['uptime']); ?> |
echo uptime($row['uptimerecord']); ?> |
|
$i++;
}
?>
Letztes Update der Uptime:
kleiner 1 Tag
kleiner 2 Tage
kleiner 7 Tage
kleiner 4 Wochen
größer 4 Wochen
####################
#####################
####################
function uptime($time){
$days = intval($time / (60*60*24));
$hours = intval(($time/ 60 / 60) % 24);
$min = intval(($time/ 60) % 60);
$days = sprintf("%02dd", $days);
$hours = sprintf("%02d", $hours);
$min = sprintf("%02d", $min);
$out ="$days $hours:$min";
return $out;
}
?> |
|