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.

13 lines
343 B

​
​
4 years ago
​
​
​
​
​
5 years ago
5 years ago
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. if( isset( $_POST['NID'] )){
  5. $NODE = intval( $_POST['NID'] );
  6. $QS = "DELETE FROM `events_cloud` WHERE `node_id`={$NODE}";
  7. } else {
  8. $QS = "DELETE FROM `events_cloud`";
  9. };
  10. $DATABASE->Query( $QS, false );
  11. } else {
  12. header('location: /');
  13. };
  14. ?>