Um die Zeitanzeige der Statistikseite zu ändern muß die Funktion function sec2log in der Datei bf2stats.php geändert werden.
Die Anzeige ist dann Stunde Minute (10h 10m)
function sec2log (Vorher)
function sec2log($seconds) { $secPerYear = 31556926; $secPerWeek = 604800; $secPerDay = 86400; $secPerHour = 3600; $secPerMinute = 60; $y = floor( $seconds / $secPerYear ); $w = floor( ($seconds % $secPerYear) / $secPerWeek ); $d = floor( (($seconds % $secPerYear) % $secPerWeek) / $secPerDay ); $h = floor( ((($seconds % $secPerYear) % $secPerWeek) % $secPerDay) / $secPerHour ); $m = floor( (((($seconds % $secPerYear) % $secPerWeek) % $secPerDay) % $secPerHour) / $secPerMinute ); $s = floor( (((($seconds % $secPerYear) % $secPerWeek) % $secPerDay) % $secPerHour) % $secPerMinute ); // $y=sprintf("%02d",$y); // $w=sprintf("%02d",$w); // $d=sprintf("%02d",$d); // $h=sprintf("%02d",$h); $m=sprintf("%02d",$m); $s=sprintf("%02d",$s); if( $y != 0 ) return "{$y}y {$w}w {$d}d {$h}h {$m}m {$s}s"; if( $w != 0 ) return "{$w}w {$d}d {$h}h {$m}m {$s}s"; if( $d != 0 ) return "{$d}d {$h}h {$m}m {$s}s"; return "{$h}h {$m}m {$s}s"; }
function sec2log (Neu)
function sec2log($seconds) { $secPerHour = 3600; $secPerMinute = 60; $h = floor( $seconds / $secPerHour ); $m = floor( ($seconds % $secPerHour) / $secPerMinute ); $s = floor( ($seconds % $secPerHour) % $secPerMinute ); $m=sprintf("%02d",$m); $s=sprintf("%02d",$s); return "{$h}h {$m}m"; }