Nextrek
Diff Revisions
516
vs
517
for /Android/SmartCharging/endPoints/nightly/edit_locale.php
|
@@ -9,9 +9,9 @@ |
9 |
9 |
|
require_once("repositories/LocalRepository.php"); |
10 |
10 |
|
require_once("classes/Local.php"); |
11 |
11 |
|
|
12 |
|
- |
$servername = "localhost"; |
|
12 |
+ |
/*$servername = "localhost"; |
13 |
13 |
|
$username = "smartcharging"; |
14 |
|
- |
$password = "LXRLBaEAuRr7M7jY"; |
|
14 |
+ |
$password = "LXRLBaEAuRr7M7jY";*/ |
15 |
15 |
|
|
16 |
16 |
|
//$params = json_decode($_REQUEST["params"], true); |
17 |
17 |
|
|
|
@@ -25,7 +25,7 @@ |
25 |
25 |
|
$local_repo; |
26 |
26 |
|
|
27 |
27 |
|
try { |
28 |
|
- |
$conn = new PDO("mysql:host=".$servername.";dbname=smartcharging", $username, $password); |
|
28 |
+ |
$conn = new PDO("mysql:host=".DB_SERVERNAME.";dbname=".DB_NAME, DB_USERNAME, DB_PASSWORD); |
29 |
29 |
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
30 |
30 |
|
//echo "Connesso con successo al DB"; |
31 |
31 |
|
|