Subversion Repository Public Repository

Nextrek

Diff Revisions 309 vs 310 for /Android/SmartCharging/endPoints/add_commento.php

Diff revisions: vs.
  @@ -6,6 +6,8 @@
6 6
7 7 require_once("CommentRepository.php");
8 8
9 + require_once("utilities.php");
10 +
9 11 $servername = "localhost";
10 12 $username = "smartcharging";
11 13 $password = "LXRLBaEAuRr7M7jY";
  @@ -42,12 +44,12 @@
42 44 foreach($commentImgs as $image) {
43 45 rename("./images/temp/".session_id()."/".$image, "./images/".$image);
44 46 }
45 - rmdir("./images/temp/".session_id()."/");
47 + //rmdir("./images/temp/".session_id()."/");
48 + deleteDirectory("./images/temp/".session_id()."/");
49 + $comment_repo->addImages($risposta["id"], $commentImgs);
46 50 }
47 51
48 - $comment_repo->addImages($risposta["id"], $commentImgs);
49 -
50 - //unset($_SESSION["images"]);
52 + unset($_SESSION["images"]);
51 53
52 54 }
53 55 catch(PDOException $e)