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