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
325 B
21 lines
325 B
4 years ago
|
<?php
|
||
|
include './functions.php';
|
||
|
header("Content-type:application/json");
|
||
|
|
||
|
$hash = $_REQUEST['hash'];
|
||
|
|
||
|
|
||
|
if(!isset($hash)) die();
|
||
|
|
||
|
$cnn = 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);
|