Nextrek
Diff Revisions
309
vs
310
for /Android/SmartCharging/endPoints/registrazione_locale.php
|
@@ -9,6 +9,8 @@ |
9 |
9 |
|
require_once("LocalRepository.php"); |
10 |
10 |
|
require_once("Local.php"); |
11 |
11 |
|
|
|
12 |
+ |
require_once("utilities.php"); |
|
13 |
+ |
|
12 |
14 |
|
$servername = "localhost"; |
13 |
15 |
|
$username = "smartcharging"; |
14 |
16 |
|
$password = "LXRLBaEAuRr7M7jY"; |
|
@@ -78,11 +80,12 @@ |
78 |
80 |
|
foreach($localImgs as $image) { |
79 |
81 |
|
rename("./images/temp/".session_id()."/".$image, "./images/".$image); |
80 |
82 |
|
} |
81 |
|
- |
rmdir("./images/temp/".session_id()."/"); |
|
83 |
+ |
//rmdir("./images/temp/".session_id()."/"); |
|
84 |
+ |
deleteDirectory("./images/temp/".session_id()."/"); |
82 |
85 |
|
$local_repo->addImages($risposta["local_id"], $localImgs); |
83 |
86 |
|
} |
84 |
87 |
|
|
85 |
|
- |
//unset($_SESSION["images"]); |
|
88 |
+ |
unset($_SESSION["images"]); |
86 |
89 |
|
|
87 |
90 |
|
echo json_encode($risposta); |
88 |
91 |
|
} |