From: TehPeGaSuS <12795426-pegasus84@users.noreply.gitlab.com> Date: Mon, 26 Jan 2026 22:03:25 +0000 (+0100) Subject: Another attempt to fix linting X-Git-Tag: 4.7.2~8^2 X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/commitdiff_plain/56aae3afa9286b92174f113fd39cfd0fb7b93b2e?ds=sidebyside Another attempt to fix linting --- diff --git a/index.php b/index.php index 29562ff..2b84013 100644 --- a/index.php +++ b/index.php @@ -28,10 +28,7 @@ require(JIRAFEAU_ROOT . 'lib/lang.php'); $download_pass = null; if ($cfg['download_password_requirement'] === 'generated') { - $download_pass = jirafeau_gen_download_pass( - $cfg['download_password_gen_len'], - $cfg['download_password_gen_chars'] - ); + $download_pass = jirafeau_gen_download_pass($cfg['download_password_gen_len'], $cfg['download_password_gen_chars']); } check_errors($cfg); @@ -41,18 +38,16 @@ if (has_error()) { require(JIRAFEAU_ROOT . 'lib/template/footer.php'); exit; } - require(JIRAFEAU_ROOT . 'lib/template/header.php'); // Logout action -if (isset($_POST['action']) && strcmp($_POST['action'], 'logout') === 0) { +if (isset($_POST['action']) && (strcmp($_POST['action'], 'logout') == 0)) { jirafeau_session_end(); } /* Check if user is allowed to upload. */ // First check: Is user already logged if (jirafeau_user_session_logged()) { - // nothing to do here } // Second check: Challenge by IP NO PASSWORD elseif (true === jirafeau_challenge_upload_ip_without_password($cfg, get_ip_address($cfg))) { @@ -78,164 +73,165 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { if (!jirafeau_user_session_logged()) { ?>
- -
- - + + + +