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.
14 lines
343 B
14 lines
343 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
if( $CUser->Data['id'] > 1 ){
|
|
if( isset( $_POST['NID'] )){
|
|
$NODE = intval( $_POST['NID'] );
|
|
$QS = "DELETE FROM `events_cloud` WHERE `node_id`={$NODE}";
|
|
} else {
|
|
$QS = "DELETE FROM `events_cloud`";
|
|
};
|
|
$DATABASE->Query( $QS, false );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|