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.
11 lines
577 B
11 lines
577 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
if( $CUser->Data['id'] > 1 ){
|
|
//$QS = "INSERT INTO `events_archive` (`id`, `node_id`,`uuid`,`ts`,`ts_ms`,`evt_type`,`range_digital`,`azimuth`,`elevation`,`range`,`area`,`lat`,`lon`,`alt`,`ref_id`,`ref_uuid`) SELECT `id`, `node_id`,`uuid`,`ts`,`ts_ms`,`evt_type`,`range_digital`,`azimuth`,`elevation`,`range`,`area`,`lat`,`lon`,`alt`,`ref_id`,`ref_uuid` FROM `events_cloud`";
|
|
//$DATABASE->Query( $QS, false );
|
|
$QS = "DELETE FROM events_cloud";
|
|
$DATABASE->Query( $QS, false );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|