C:\xampp\htdocs\kptv2\3gs\credentials.php


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']]));
    
?>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586