Nextrek
Diff Revisions
249
vs
265
for /Android/SmartCharging/endPoints/registrazione_locale.php
|
@@ -1,4 +1,7 @@ |
1 |
1 |
|
<?php |
|
2 |
+ |
header("Access-Control-Allow-Origin: *"); |
|
3 |
+ |
header('Content-Type: application/json; charset=UTF-8'); |
|
4 |
+ |
|
2 |
5 |
|
require_once("UserRepository.php"); |
3 |
6 |
|
require_once("User.php"); |
4 |
7 |
|
require_once("LocalRepository.php"); |
|
@@ -8,7 +11,10 @@ |
8 |
11 |
|
$username = "smartcharging"; |
9 |
12 |
|
$password = "LXRLBaEAuRr7M7jY"; |
10 |
13 |
|
|
11 |
|
- |
$params = json_decode($_REQUEST["params"], true); //da portare su POST la richiesta |
|
14 |
+ |
//$params = json_decode($_REQUEST["params"], true); |
|
15 |
+ |
|
|
16 |
+ |
//$input = file_get_contents('php://input'); |
|
17 |
+ |
$params = json_decode(file_get_contents('php://input'), true); |
12 |
18 |
|
|
13 |
19 |
|
$conn; |
14 |
20 |
|
$risposta = array(); |