mirror of https://github.com/IoTcat/cp-acc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
326 B
21 lines
326 B
<?php |
|
include './functions.php'; |
|
header("Content-type:application/json"); |
|
|
|
$hash = $_GET['hash']; |
|
|
|
|
|
if(!isset($hash)) die(); |
|
|
|
$cnn = db__connect(); |
|
$res = db__getData($cnn, "user", "user", $hash, "state", '1'); |
|
|
|
$o = []; |
|
|
|
foreach($res as $item){ |
|
array_push($o, getFinalData($cnn, $item['table'])); |
|
} |
|
|
|
|
|
|
|
echo json_encode($o);
|
|
|