19 include_once (
"VAULT/Class.VaultDiskStorage.php");
20 include_once (
"VAULT/Class.VaultDiskFsStorage.php");
21 include_once (
"FDL/Class.DocVaultIndex.php");
51 if ($fs->isAffected()) {
54 $action->AddWarningMsg(sprintf(_(
"the new size must be upper than %s") ,
humanreadsize($fs->max_size - $fs->free_size)));
58 $fs->free_size+= $diff;
61 else $action->AddWarningMsg(sprintf(_(
"Cannot adding : [%s]") ,
$err));
64 redirect(
$action,
"VAULT",
"VAULT_VIEW",
$action->GetParam(
"CORE_STANDURL"));
69 if (abs($bytes) < 1024)
return sprintf(_(
"%d bytes") , $bytes);
70 if (abs($bytes) < 1048576)
return sprintf(_(
"%d Kb") , $bytes / 1024);
71 if (abs($bytes) < 1048576 * 1024)
return sprintf(_(
"%d Mb") , $bytes / 1048576);
72 return sprintf(_(
"%d Gb") , $bytes / 1048576 / 1024);