1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php require_once("config.php"); if(!isset($_POST['deviceId'])) { http_response_code(403); // forbidden, missing parameters exit(); } if(!isset($credentials[$_POST['deviceId']])) { http_response_code(401); // unauthorised, no device id found exit(); } print_r(json_encode($credentials[$_POST['deviceId']])); ?>
|