Nextrek
Diff Revisions
516
vs
517
for /Android/SmartCharging/endPoints/nightly/registrazione_locale.php
|
@@ -13,9 +13,9 @@ |
13 |
13 |
|
|
14 |
14 |
|
require_once("utilities.php"); |
15 |
15 |
|
|
16 |
|
- |
$servername = "localhost"; |
|
16 |
+ |
/*/*$servername = "localhost"; |
17 |
17 |
|
$username = "smartcharging"; |
18 |
|
- |
$password = "LXRLBaEAuRr7M7jY"; |
|
18 |
+ |
$password = "LXRLBaEAuRr7M7jY";*/*/ |
19 |
19 |
|
|
20 |
20 |
|
//$params = json_decode($_REQUEST["params"], true); |
21 |
21 |
|
|
|
@@ -32,7 +32,7 @@ |
32 |
32 |
|
$local_repo; |
33 |
33 |
|
|
34 |
34 |
|
try { |
35 |
|
- |
$conn = new PDO("mysql:host=".$servername.";dbname=smartcharging", $username, $password); |
|
35 |
+ |
$conn = new PDO("mysql:host=".DB_SERVERNAME.";dbname=".DB_NAME, DB_USERNAME, DB_PASSWORD); |
36 |
36 |
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
37 |
37 |
|
//echo "Connesso con successo al DB"; |
38 |
38 |
|
|