</td>
</tr>
</form>
+ <form method="post">
+ <tr>
+ <input type = "hidden" name = "action" value = "size"/>
+ <?php echo jirafeau_admin_csrf_field() ?>
+ <td class = "info">
+ <?php echo t('SIZE_DATA'); ?>
+ </td>
+ <td></td>
+ <td>
+ <input type = "submit" value = "<?php echo t('SIZE'); ?>" />
+ </td>
+ </tr>
+ </form>
<form method="post">
<tr>
<input type = "hidden" name = "action" value = "search_by_name"/>
echo '<p>';
echo t('CLEANED_FILES_CNT') . ' : ' . $total;
echo '</p></div>';
+ } elseif (strcmp($_POST['action'], 'size') == 0) {
+ $size = jirafeau_dir_size($cfg['var_root']);
+ $human_size = jirafeau_human_size($size);
+ echo '<div class="message">' . NL;
+ echo '<p>' . t('SIZE_DATA') . ': ' . $human_size .'</p>';
+ echo '</div>';
} elseif (strcmp($_POST['action'], 'list') == 0) {
jirafeau_admin_list("", "", "");
} elseif (strcmp($_POST['action'], 'search_by_name') == 0) {
{
return "<input type='hidden' name='admin_csrf' value='". $_SESSION['admin_csrf'] . "'/>";
}
+
+function jirafeau_dir_size($dir)
+{
+ $size = 0;
+ foreach (glob(rtrim($dir, '/').'/*', GLOB_NOSORT) as $entry) {
+ $size += is_file($entry) ? filesize($entry) : jirafeau_dir_size($entry);
+ }
+ return $size;
+}
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "قد لا يدعم متصفحك HTML5، لذا فإن الحد الأقصى لحجم الملف هو ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Ваш браўзер не падтрымлівае HTML5, таму максімальны памер файла ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "আপনার ব্রাউজার HTML5 সমর্থন নাও করতে পারে, তাই সর্বোচ্চ ফাইলের আকার ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "El teu navegador no és compatible amb HTML5, per tant, la mida màxima del fitxers és ",
"PLURAL_ENDING": "s",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Váš prohlížeč nepodporuje HTML5, proto je maximílní velikost souboru ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Ihr Browser unterstützt möglicherweise kein HTML5, demnach beträgt die maximale Dateigröße ",
"PLURAL_ENDING": "n",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "Data size",
"INCOMPATIBLE_OPTIONS_W": "The following configuration options are incompatible:",
"NO_BROWSER_SUPPORT": "Your browser may not support HTML5, so the maximum file size is ",
"PLURAL_ENDING": "s",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Tu navegador puede no soportar HTML5, debido a esto el tamaño máximo de archivo es ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "Volume de données",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Votre navigateur ne supporte apparemment pas HTML5, la taille maximale de fichier téléchargable est de ",
"PLURAL_ENDING": "s",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Il tuo browser potrebbe non supportare HTML5, quindi la dimensione massima del file è ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Det kan hende at nettleseren din ikke støtter HTML5, så største tillatte filstørrelse er ",
"PLURAL_ENDING": "er",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"NO_BROWSER_SUPPORT": "O seu navegador pode não suportar HTML5, então o tamanho máximo do ficheiro é ",
"INCOMPATIBLE_OPTIONS_W": "",
"PLURAL_ENDING": "s",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Seu navegador pode não suportar HTML5, portanto, o tamanho máximo do arquivo é ",
"PLURAL_ENDING": "s",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Zdá sa, že Váš prehliadač nepodporuje HTML5. Maximálna veľkosť súboru je preto obmedzená na ",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "Följande inställningar är inkompatibla:",
"NO_BROWSER_SUPPORT": "Din webbläsare verkar inte stödja HTML5, så max filstorlek är ",
"PLURAL_ENDING": "er",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "Tarayıcınız HTML5'i desteklemeyebilir, bu nedenle en fazla dosya boyutu ",
"PLURAL_ENDING": "sn",
{
+ "SIZE_DATA": "",
"NO_BROWSER_SUPPORT": "Ваш веб-переглядач може не підтримує HTML5, тому найбільший розмір файлу - це ",
"PLURAL_ENDING": "(-ів)",
"JI_WEB_RE": "Jirafeau — ваше мережеве сховище файлів",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "",
"PLURAL_ENDING": "",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "您的浏览器可能不支持 HTML5,因此文件最大为 ",
"PLURAL_ENDING": "s",
{
+ "SIZE_DATA": "",
"INCOMPATIBLE_OPTIONS_W": "",
"NO_BROWSER_SUPPORT": "您的瀏覽器可能不支持 HTML5,因此文件最大為 ",
"PLURAL_ENDING": "s",