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: /'); }; ?>