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.

22 lines
326 B

4 years ago
<?php
include './functions.php';
header("Content-type:application/json");
4 years ago
$hash = $_GET['hash'];
4 years ago
if(!isset($hash)) die();
4 years ago
$cnn = db__connect();
4 years ago
$res = db__getData($cnn, "user", "user", $hash, "state", '1');
$o = [];
foreach($res as $item){
array_push($o, getFinalData($cnn, $item['table']));
}
4 years ago
echo json_encode($o);