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.
 
 
 
 

27 lines
810 B

<?php
require_once('../ajax_asm.php');
//require_once('../php/onvif/toto.php');
if( $CUser->Data['id'] > 1 ){
if( $CUser->Data['access'] > 5 ){
$QS = "SELECT * FROM users";
$Result = $DATABASE->Query($QS,false);
foreach( $Result as $CD ){
$cnode['id'] = intval( $CD['id'] );
$cnode['status'] = $CD['status'];
$cnode['access'] = intval( $CD['access'] );
$cnode['login'] = $CD['login_id'];
$cnode['created']= $CD['create_ts'];
$cnode['last'] = $CD['login_ts'];
$cnode['lang'] = intval( $CD['language'] );
$cnode['site'] = $CD['selected_site'];
$Data['users'][] = $cnode;
};
} else {
$Data['users'] = array();
};
$Data['totalCount']= count($Data['users']);
echo json_encode( $Data );
} else {
header('location: /');
};
?>