X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/78a1c41c40bb216e3879220fc544f8ae816d3c1b..b6f423726c6f71c769fc7d7f3b842f623595a808:/index.php?ds=sidebyside diff --git a/index.php b/index.php index 63906c1..cf54193 100644 --- a/index.php +++ b/index.php @@ -92,8 +92,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { exit; } } -} -else { +} else { jirafeau_fatal_error(t('ACCESS_KO'), $cfg); } @@ -169,9 +168,9 @@ else { 0) { - echo t('2_BIG') . ', ' . t('FILE_LIM') . " " . $cfg['maximal_upload_size'] . " MB."; + echo t('2_BIG') . ', ' . t('FILE_LIM') . " " . number_format($cfg['maximal_upload_size']/1024, 2) . " GB."; + } elseif ($cfg['maximal_upload_size'] > 0) { + echo t('2_BIG') . ', ' . t('FILE_LIM') . " " . $cfg['maximal_upload_size'] . " MB."; } ?>')"/>

@@ -241,11 +240,11 @@ else { if ($cfg['maximal_upload_size'] >= 1024) { echo '

' . t('FILE_LIM'); echo " " . number_format($cfg['maximal_upload_size'] / 1024, 2) . " GB.

"; - } else if ($cfg['maximal_upload_size'] > 0) { + } elseif ($cfg['maximal_upload_size'] > 0) { echo '

' . t('FILE_LIM'); echo " " . $cfg['maximal_upload_size'] . " MB.

"; } else { - echo '

'; + echo '

'; } ?> @@ -256,12 +255,10 @@ else { ?>