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.
|
|
<?php require_once('../ajax_asm.php'); if( $CUser->Data['id'] > 1 ){ $Data = array(); $GID = intval($_POST['NID']); $LTS = $_POST['LTS']; $TArr = explode( '.', $LTS ); if( count( $TArr ) > 1 ){ $tts = intval( $TArr[0] ); $ttms = intval( $TArr[1] ); $QS = "SELECT * FROM current_events_clowd WHERE ts > {$tts} AND ts_ms > {$ttms}"; } else { $QS = "SELECT * FROM current_events_clowd"; }; $Result = $DATABASE->Query( $QS, false ); foreach( $Result as $CD ){ $cnode['id'] = $CD['id']; $cnode['group'] = $CD['device_id']; $cnode['content'] = 'Target';//'' . ( intval( $CD['ts'] ) + $CD['ts_ms'] / 1000 );
//$cnode['title'] = 'Target';
$cnode['start'] = intval( $CD['ts'] ) + $CD['ts_ms'] / 1000; $cnode['type'] = 'point'; $Data[] = $cnode; }; //$Data['LT'] = '' . microtime(true);
echo json_encode( $Data ); } else { header('location: /'); };?>
|