From 3a0c62040e181a1ad0d4deed9d8117b3968534e9 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Wed, 23 Nov 2022 10:01:50 +0100 Subject: [PATCH] Location.dart update with the new Docker Server --- .idea/libraries/Dart_Packages.xml | 692 ++++++++++++++++++ .../lib/position/location.dart | 4 +- Sources/php_script/script/index.php | 2 +- 3 files changed, 695 insertions(+), 3 deletions(-) create mode 100644 .idea/libraries/Dart_Packages.xml diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml new file mode 100644 index 0000000..f8237c9 --- /dev/null +++ b/.idea/libraries/Dart_Packages.xml @@ -0,0 +1,692 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Sources/dafl_project_flutter/lib/position/location.dart b/Sources/dafl_project_flutter/lib/position/location.dart index 1978152..daced88 100644 --- a/Sources/dafl_project_flutter/lib/position/location.dart +++ b/Sources/dafl_project_flutter/lib/position/location.dart @@ -6,7 +6,7 @@ import '../main.dart'; class Location { static Future> sendCurrentLocation() async { - Uri uri = Uri.parse("http://89.83.53.34/phpmyadmin/dafldev/insert.php"); + Uri uri = Uri.parse("https://codefirst.iut.uca.fr/containers/php_script-dorianhodin/insert.php"); LocationPermission permission; permission = await Geolocator.checkPermission(); if (permission == LocationPermission.denied) { @@ -31,7 +31,7 @@ class Location { static Future> getData() async { Map spot = {}; String actualUser = MyApp.controller.currentUser.usernameDafl; - Uri uri = Uri.parse("http://89.83.53.34/phpmyadmin/dafldev/distance.php"); + Uri uri = Uri.parse("https://codefirst.iut.uca.fr/containers/php_script-dorianhodin/distance.php"); http.Response response = await http.post(uri, body: { "id": actualUser, }); diff --git a/Sources/php_script/script/index.php b/Sources/php_script/script/index.php index d0e4d34..53b1ece 100644 --- a/Sources/php_script/script/index.php +++ b/Sources/php_script/script/index.php @@ -1,5 +1,5 @@ Hello DaflDev" +echo "Hello world Dafl for PHP" ?> \ No newline at end of file