ENTRY ) return 0;
var_dump( $b );
if ( $a == $b ) {
return 0;
}
return ($a < $b) ? -1 : 1;
}
function drawTable( $id ){
global $response, $total_upload, $total_download;
echo "
\n";
}
function format_filesize($size) {
$size = trim( $size );
$kb = 1024; // Kilobyte
$mb = 1024 * $kb; // Megabyte
$gb = 1024 * $mb; // Gigabyte
$tb = 1024 * $gb; // Terabyte
/* If it's less than a kb we just return the size, otherwise we keep going until
the size is in the appropriate measurement range. */
$precision = 2;
if($size < $kb) {
return $size." B";
}
else if($size < $mb) {
return number_format( round($size/$kb,$precision), $precision )." KB";
}
else if($size < $gb) {
return number_format( round($size/$mb,$precision), $precision )." MB";
}
else if($size < $tb) {
return number_format( round($size/$gb,$precision), $precision )." GB";
}
else {
return number_format( round($size/$tb,$precision), $precision )." TB";
}
}
if( sizeof( $aServers ) > 1 ){
echo "\n
\n";
}
?>