[ Index ] |
|
Code source de phpMyVisites 2.3 |
1 <?php 2 function smarty_modifier_time_visit($ts) 3 { 4 5 $h = floor( $ts / 3600 ); 6 $m = floor( ($ts - $h*3600) / 60 ); 7 $s = floor( ($ts - $h*3600 - $m * 60) ); 8 9 if($h != 0) 10 { 11 $return[] = $h; 12 $return[] = $m; 13 } 14 elseif($m != 0) 15 { 16 $return[] = $m; 17 } 18 $return[] = $s; 19 20 // h + min + sec 21 if(sizeof($return)===3) 22 { 23 return setToLength($h, 2) . ":" . setToLength($m,2) . ":" . setToLength($s,2); 24 } 25 // min + sec 26 if(sizeof($return) == 2) 27 { 28 return vsprintf($GLOBALS['lang']['generique_tempsvisite'], $return); 29 } 30 // only sec 31 else 32 { 33 return vsprintf($GLOBALS['lang']['visites_sec'], $return); 34 } 35 } 36 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |