Web Interface For Lite Argus Control modules
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.

23 lines
571 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $Data = array();
  5. $Data['success'] = false;
  6. if( isset( $_POST['OID'] ) ) {
  7. $OpID = intval($_POST['OID']);
  8. } else $OpID = 0;
  9. if( $OpID > 0 ){
  10. $QS = "SELECT `status` FROM `nodes_qcq` WHERE `id`={$OpID}";
  11. $RV = $DATABASE->Query( $QS, false );
  12. if( count( $RV ) ){
  13. $Data['success'] = true;
  14. $Data['code'] = intval( $RV[0]['status'] );
  15. };
  16. } else {
  17. $Data['msg']='Wrong Parameters';
  18. };
  19. echo json_encode( $Data );
  20. exit();
  21. };
  22. header('location: /');
  23. ?>