Subversion Repository Public Repository

Nextrek

Diff Revisions 374 vs 400 for /Android/SmartCharging/endPoints/nightly/delete_immagine.php

Diff revisions: vs.
  @@ -6,6 +6,7 @@
6 6
7 7 require_once("LocalRepository.php");
8 8 require_once("CommentRepository.php");
9 + require_once("constants.php");
9 10
10 11 $servername = "localhost";
11 12 $username = "smartcharging";
  @@ -39,7 +40,7 @@
39 40
40 41 $risposta["return"] = $repo->deleteImage($params["id"], $params["img"]);
41 42
42 - unlink("./images/".$params["img"]);
43 + unlink($_SERVER['DOCUMENT_ROOT'].IMAGES_PATH.$params["img"]);
43 44
44 45 }
45 46 catch(PDOException $e)