$filename){ if($filename!=".." && $filename!="."){ if(is_dir($dir."/".$filename)){ $new_foldersize = foldersize($dir."/".$filename); $count_size = $count_size+ $new_foldersize; } else if(is_file($dir."/".$filename)) { $count_size = $count_size + filesize($dir."/".$filename); $count++; } } } return $count_size; } // Function used to format the disk space taken by recordings later on. function sizeFormat($bytes) { $kb = 1024; $mb = $kb * 1024; $gb = $mb * 1024; $tb = $gb * 1024; if (($bytes >= 0) && ($bytes < $kb)) { return $bytes . ' B'; } elseif (($bytes >= $kb) && ($bytes < $mb)) { return ceil($bytes / $kb) . ' KiB'; } elseif (($bytes >= $mb) && ($bytes < $gb)) { return ceil($bytes / $mb) . ' MiB'; } elseif (($bytes >= $gb) && ($bytes < $tb)) { return ceil($bytes / $gb) . ' GiB'; } elseif ($bytes >= $tb) { return ceil($bytes / $tb) . ' TiB'; } else { return $bytes . ' B'; } } ?>
Caméra: |
"); echo("<<<< 25"); echo("<<< 10"); echo("<< 5"); echo("< 1"); echo("1 >"); echo("5 >>"); echo("10 >>>"); echo("25 >>>>"); echo("
"); echo("File: Non définis (0/0)
"); echo("