From 41d1e8dbb3f9a30cb0a3e28a72d682e3b74425d8 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Wed, 25 Jan 2023 15:09:08 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Sources/php=5Fscri?= =?UTF-8?q?pt/script/config.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/php_script/script/config.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index 6132881..28ca444 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -17,16 +17,4 @@ function connection(): bool|int|mysqli return -1; //Send a return code as -1, so insertAndMakeListUser.php can know if the connection is successful } -} - -if (!empty($_SERVER['HTTP_CLIENT_IP'])) { - $ip = $_SERVER['HTTP_CLIENT_IP']; - } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { - $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; - } else { - $ip = $_SERVER['REMOTE_ADDR']; - } - echo "AH"; - echo $ip; - - +} \ No newline at end of file