From 204f787e7732711009e101e89c84c7f5ef7fd200 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Sun, 27 Nov 2022 12:47:43 +0100 Subject: [PATCH] config.php update --- Sources/php_script/script/config.php | 2 +- Sources/php_script/script/insertAndMakeListUser.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index 4b77a7f..8183c56 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -4,7 +4,7 @@ function connection(): bool|int|mysqli { $username = $_ENV["USER"]; //Get the username - $host = "localhost:3306"; //Get the url of the database + $host = "https://codefirst.iut.uca.fr/containers/mysql_location-dorianhodin"; //Get the url of the database $password = $_ENV["PASSWORD"]; //Get the password for the user selected $db_name = $_ENV["DATABASE"]; //Get the name of the database diff --git a/Sources/php_script/script/insertAndMakeListUser.php b/Sources/php_script/script/insertAndMakeListUser.php index c4b6210..618ef43 100644 --- a/Sources/php_script/script/insertAndMakeListUser.php +++ b/Sources/php_script/script/insertAndMakeListUser.php @@ -24,6 +24,7 @@ function insertUserAndReturnList(): array|int include "config.php"; $res = connection(); + print(json_encode(getenv("REMOTE_ADDR"))); if ($res == -1) { return 2;