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.

22 lines
710 B

6 years ago
​
​
​
5 years ago
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. require_once('../php/onvif/toto.php');
  4. if( $CUser->Data['id'] > 1 ){
  5. $QS = "SELECT * FROM cameras WHERE node_id=0";
  6. $Result = $DATABASE->Query($QS,false);
  7. foreach( $Result as $CD ){
  8. $cnode['id'] = $CD['id'];
  9. $cnode['status'] = $CD['status'];
  10. $cnode['login'] = $CD['access_login'];
  11. $cnode['password']= $CD['access_pass'];
  12. $cnode['name'] = urldecode($CD['name']);
  13. $cnode['hardware']= urldecode($CD['hardware']);
  14. $cnode['caps'] = $CD['caps'];
  15. $cnode['ip'] = $CD['ip'];
  16. $cnode['mac'] = $CD['mac'];
  17. $Data['nodes'][] = $cnode;
  18. };
  19. echo json_encode( $Data );
  20. } else {
  21. header('location: /');
  22. };
  23. ?>