Subversion Repository Public Repository

Nextrek

Diff Revisions 537 vs 706 for /Android/SmartCharging/endPoints/nightly/get_immagini.php

Diff revisions: vs.
  @@ -25,20 +25,22 @@
25 25 $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
26 26 //echo "Connesso con successo al DB";
27 27
28 - $type = $params["type"];
28 + /* ============= SUPPORTO IMMAGINI NEI COMMENTI DROPPATO =============== */
29 +
30 + /*$type = $params["type"];
29 31
30 32 if ($type=="local") {
31 33 $repo = new LocalRepository($conn);
32 34 } else if ($type=="comment") {
33 35 $repo = new CommentRepository($conn);
34 36 } else {
35 - /*$risposta["type"] = "error";
36 - $risposta["id"] = -1;
37 - $risposta["imgs"] = null;
38 - $risposta["return"] = 1;*/
39 37 $risposta = createErrorMessage(1, "Parametro \"type\" non valido");
40 38 $risposta["type"] = "error";
41 - }
39 + }*/
40 +
41 + /* =========== FINE SUPPORTO IMMAGINI NEI COMMENTI DROPPATO ============= */
42 +
43 + $repo = new LocalRepository($conn);
42 44
43 45 $object = $repo->getImages($params["id"]);
44 46