X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/af7e43a4a3bbcb62912eabd75537480bf696b265..03240df47e1ebcfd0619e9ab845e680a2be59447:/index.php
diff --git a/index.php b/index.php
index 2002ad7..6d1dc10 100644
--- a/index.php
+++ b/index.php
@@ -18,86 +18,76 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
' . t('Access denied') . '
' . t('Wrong password.') . '
' . t('Wrong password.') . '
:
@@ -137,7 +129,7 @@ if (jirafeau_has_upload_password ($cfg))- +
@@ -154,7 +146,7 @@ if (jirafeau_has_upload_password ($cfg))')"/> + onchange="control_selected_file_size(, '')"/>
' . t ('File size is limited to'); - echo " " . $cfg['maximal_upload_size'] . " MB
"; + if ($cfg['maximal_upload_size'] > 0) { + echo '' . t('File size is limited to'); + echo " " . $cfg['maximal_upload_size'] . " MB
"; } ?>+ if (jirafeau_has_upload_password($cfg) && $_SESSION['upload_auth']) { + ?> + + } else { + ?>