require_once BW_OBJ . "cfg/config.class.php";
require_once BW_OBJ . "graph/bgraph.class.php";
require_once BW_OBJ . "bweb.inc.php";
- require_once BW_OBJ . "utils/utils.class.php";
+ require_once BW_OBJ . "utils/cutils.class.php";
require_once BW_OBJ . "utils/timeutils.class.php";
// Global constants
}else
die( "Unable to get database size<br />" . $result->getMessage() );
- return Utils::Get_Human_Size( $database_size );
+ return CUtils::Get_Human_Size( $database_size );
} // end function GetDbSize()
public function Get_Nb_Clients()
$media['expire'] = 'N/A';
}
// Media used bytes in a human format
- $media['volbytes'] = Utils::Get_Human_Size( $media['volbytes'] );
+ $media['volbytes'] = CUtils::Get_Human_Size( $media['volbytes'] );
} else {
$media['lastwritten'] = "N/A";
$media['expire'] = "N/A";
$day = date( "D d", strtotime($end_date) );
if( isset( $tmp['stored_bytes'] ) ) {
- $hbytes = Utils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
+ $hbytes = CUtils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
$hbytes = explode( " ", $hbytes );
$stored_bytes = $hbytes[0];
}
$day = date( "D d", strtotime($end_date) );
if( isset( $tmp['stored_bytes'] ) ) {
- $hbytes = Utils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
+ $hbytes = CUtils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
$hbytes = explode( " ", $hbytes );
$stored_bytes = $hbytes[0];
}
// Overall stored bytes
$result = $dbSql->GetStoredBytes( ALL );
-$dbSql->tpl->assign('stored_bytes', Utils::Get_Human_Size( $result['stored_bytes'] ) );
+$dbSql->tpl->assign('stored_bytes', CUtils::Get_Human_Size( $result['stored_bytes'] ) );
// Total stored bytes since last 24 hours
$result = $dbSql->GetStoredBytes( LAST_DAY );
-$dbSql->tpl->assign('bytes_last', Utils::Get_Human_Size( $result['stored_bytes'] ) );
+$dbSql->tpl->assign('bytes_last', CUtils::Get_Human_Size( $result['stored_bytes'] ) );
// Total stored files since last 24 hours
$files_last = $dbSql->GetStoredFiles( LAST_DAY );