X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/bfbbf72959faa385b97d250484be1d25e4fd22aa..41f33f9c1dac5381412bcab57c971fd08d1d8613:/index.php?ds=inline diff --git a/index.php b/index.php index f7aeb04..b6dac09 100644 --- a/index.php +++ b/index.php @@ -41,7 +41,8 @@ if (isset($_POST['action']) && (strcmp($_POST['action'], 'logout') == 0)) { /* Check if user is allowed to upload. */ // First check: Is user already logged -if (jirafeau_user_session_logged()) {} +if (jirafeau_user_session_logged()) { +} // Second check: Challenge by IP NO PASSWORD elseif (true === jirafeau_challenge_upload_ip_without_password($cfg, get_ip_address($cfg))) { jirafeau_user_session_start(); @@ -108,7 +109,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { + ?>
+ } ?>@@ -164,22 +165,22 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
0) { - echo t('2_BIG') . ', ' . t('FILE_LIM') . " " . $cfg['maximal_upload_size'] . " MB."; - } - ?>')"/> + if ($cfg['maximal_upload_size'] >= 1024) { + 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."; + } +?>')"/>
' . t('ONE_TIME_DL') . ': | '; - echo ''; - } - ?> + if ($cfg['one_time_download']) { + echo ' | ||
' . t('ONE_TIME_DL') . ': | '; + echo '|||
@@ -188,66 +189,66 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { |