X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/dfa4d5337602a1de5910a95cf0cda85292049a11..71e621e81a096fce132f70ee3918279cc71dd23f:/index.php?ds=sidebyside
diff --git a/index.php b/index.php
index 4b50ec1..7c24e3b 100644
--- a/index.php
+++ b/index.php
@@ -18,88 +18,82 @@
* 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.') . '
' . t('Access denied') . '
'; + require(JIRAFEAU_ROOT.'lib/template/footer.php'); + exit; } - - /* Show auth page. */ - if (!isset ($_SESSION['upload_auth']) || $_SESSION['upload_auth'] != true) - { - ?> - - - + - +:
@@ -138,7 +134,7 @@ if (jirafeau_has_upload_password ($cfg))- +
@@ -155,7 +151,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 { + ?>