X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/5d7c0d3ce08074fff55e7731490fe786cd6101e6..c3c7c86917d4c01c0cb2188dba77e4119788e81f:/admin.php diff --git a/admin.php b/admin.php index 44a0134..e5ba8bd 100644 --- a/admin.php +++ b/admin.php @@ -1,7 +1,7 @@ + * Copyright (C) 2015 Jerome Jutteau * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -160,6 +160,19 @@ if (php_sapi_name() == "cli") { +
+ + + + + + + + + + + +
@@ -228,6 +241,12 @@ if (php_sapi_name() == "cli") { echo '

'; echo t('CLEANED_FILES_CNT') . ' : ' . $total; echo '

'; + } elseif (strcmp($_POST['action'], 'size') == 0) { + $size = jirafeau_dir_size($cfg['var_root']); + $human_size = jirafeau_human_size($size); + echo '
' . NL; + echo '

' . t('SIZE_DATA') . ': ' . $human_size .'

'; + echo '
'; } elseif (strcmp($_POST['action'], 'list') == 0) { jirafeau_admin_list("", "", ""); } elseif (strcmp($_POST['action'], 'search_by_name') == 0) { @@ -258,7 +277,6 @@ if (php_sapi_name() == "cli") { $r = fopen(VAR_FILES . $p . $l['hash'], 'r'); while (!feof($r)) { print fread($r, 1024); - ob_flush(); } fclose($r); }