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.
 
 
 
 

23 lines
683 B

<?php
require_once('../ajax_asm.php');
require_once('../php/onvif/toto.php');
if( $CUser->Data['id'] > 1 ){
$Data = array();
if( isset( $_POST['CID'] ) ){
$ECID = intval( $_POST['CID'] );
$QS = "SELECT * FROM camera_streams WHERE camera_id={$ECID}";
$Result = $DATABASE->Query($QS,false);
foreach( $Result as $CD ){
$cnode['id'] = $CD['id'];
$cnode['name'] = $CD['name'];
$cnode['size'] = $CD['img_width'].'x'.$CD['img_height'].'@'.$CD['fps'];
$cnode['encode'] = $CD['compression_type'];
$cnode['bitrate'] = $CD['bitrate'];
$Data['nodes'][] = $cnode;
};
};
echo json_encode( $Data );
} else {
header('location: /');
};
?>