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.
 
 
 
 

34 lines
879 B

<?php
require_once('../ajax_asm.php');
ob_start();
$UID = intval( $CUser->Data['id'] );
$ACCESS = intval( $CUser->Data['access'] );
if( $UID > 1 ){
$LID = intval( $_POST['LID'] );
$QS = "SELECT * FROM `media_queue` WHERE `id` > {$LID} ORDER BY `id` DESC LIMIT 100";
$Result = $DATABASE->Query( $QS, false );
if( count( $Result ) ){
$SenPart = array();
foreach( $Result as $R ){
$CC = array();
$CC[0] = $R['id'];
$CC[1] = Date( "H:i:s", $R['ts']);
$CC[2] = $R['uuid'];
$CC[3] = $R['width'].'x'.$R['height'];
$CC[4] = $R['status'];
$CC[5] = $R['progress'];
$SenPart[] = $CC;
};
$Data['status']='ok';
$Data['log'] = $SenPart;
} else {
$Data['status']='na';
};
$Data['messages'] = ob_get_clean();
echo json_encode( $Data );
} else {
header('location: /');
};
?>