Nextrek
Diff Revisions
516
vs
517
for /Android/SmartCharging/endPoints/nightly/get_immagini.php
|
@@ -6,9 +6,9 @@ |
6 |
6 |
|
require_once("repositories/CommentRepository.php"); |
7 |
7 |
|
require_once("constants.php"); |
8 |
8 |
|
|
9 |
|
- |
$servername = "localhost"; |
|
9 |
+ |
/*$servername = "localhost"; |
10 |
10 |
|
$username = "smartcharging"; |
11 |
|
- |
$password = "LXRLBaEAuRr7M7jY"; |
|
11 |
+ |
$password = "LXRLBaEAuRr7M7jY";*/ |
12 |
12 |
|
|
13 |
13 |
|
//$params = json_decode($_REQUEST["params"], true); |
14 |
14 |
|
|
|
@@ -21,7 +21,7 @@ |
21 |
21 |
|
$object; |
22 |
22 |
|
|
23 |
23 |
|
try { |
24 |
|
- |
$conn = new PDO("mysql:host=".$servername.";dbname=smartcharging", $username, $password); |
|
24 |
+ |
$conn = new PDO("mysql:host=".DB_SERVERNAME.";dbname=".DB_NAME, DB_USERNAME, DB_PASSWORD); |
25 |
25 |
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
26 |
26 |
|
//echo "Connesso con successo al DB"; |
27 |
27 |
|
|