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