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.
|
|
<?php require_once('../ajax_asm.php'); if( $CUser->Data['id'] > 1 ){ $EID = intval( $_POST['ID'] ); $DTS = intval( $_POST['TS'] ); if( $EID ){ $DS = date("Y/m/d", $DTS ); //$QS = "SELECT * FROM `videos` WHERE `id` = {$VID}";
// ID is a global event id (see report_files.php)
$SLOT = reportSlotOf( $EID ); $REID = reportRawId( $EID ); $QS = "SELECT `pictures`.`media_stream_id`, `pictures`.`md5`, `pictures`.`ext` FROM `events_2_pictures` LEFT JOIN `pictures` ON( `pictures`.`id` = `events_2_pictures`.`picture_id` ) WHERE `events_2_pictures`.`evt_id`={$REID}"; $ZIZI = reportOpenSlot( $DS, $SLOT ); $LREC = $ZIZI ? $ZIZI->Query( $QS ) : array(); if( count( $LREC ) ){ $Pack = array(); $Pack['pictures'] = array(); foreach( $LREC as $Data ){ $CP = array(); $CP['file'] = $DS.'/'. $Data['md5'].'.'.$Data['ext']; $CP['media_stream_id'] = $Data['media_stream_id']; $Pack['pictures'][] = $CP; }; echo json_encode( $Pack ); exit(); }; echo "[]"; exit(); }; }; header('location: /');?>
|