Web UI for ARGUS server
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.

15 lines
404 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $Data['status'] = 'OK';
  5. $GID = intval($_POST['NID']);
  6. $QS = "SELECT * FROM nodes WHERE site_id ={$GID}";
  7. $Result = $DATABASE->Query( $QS, false );
  8. foreach( $Result as $CD ){
  9. $cnode['id'] = $CD['id'];
  10. $Data['nodes'][] = $cnode;
  11. };
  12. } else {
  13. $Data['status']='LOGOUT';
  14. };
  15. echo json_encode( $Data );
  16. ?>