X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/a00401257a73daf0449386e57ee9a811e2a4f408..ac13b92b26d4fa871749fa22be8d8f41f5b9641d:/index.php diff --git a/index.php b/index.php index 832749b..1a8b2bd 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ /* * Jirafeau, your web file repository * Copyright (C) 2013 - * Jerome Jutteau + * Jerome Jutteau * Jimmy Beauvois * * This program is free software: you can redistribute it and/or modify @@ -27,6 +27,7 @@ require(JIRAFEAU_ROOT . 'lib/lang.php'); check_errors($cfg); if (has_error()) { + require(JIRAFEAU_ROOT . 'lib/template/header.php'); show_errors(); require(JIRAFEAU_ROOT . 'lib/template/footer.php'); exit; @@ -75,7 +76,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { + size = "40" autocomplete = "current-password" /> @@ -92,8 +93,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { exit; } } -} -else { +} else { jirafeau_fatal_error(t('ACCESS_KO'), $cfg); } @@ -169,22 +169,24 @@ 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."; } ?>')"/>

- - - - + '; + echo ''; + } + ?> - + @@ -207,6 +209,10 @@ else { 'value' => 'week', 'label' => '1_W' ), + array( + 'value' => 'fortnight', + 'label' => '2_W' + ), array( 'value' => 'month', 'label' => '1_M' @@ -239,11 +245,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 '

'; } ?> @@ -254,19 +260,17 @@ else { ?>

:
' . t('ONE_TIME_DL') . ':
@@ -281,7 +285,6 @@ else {