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.

33 lines
879 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. ob_start();
  4. $UID = intval( $CUser->Data['id'] );
  5. $ACCESS = intval( $CUser->Data['access'] );
  6. if( $UID > 1 ){
  7. $LID = intval( $_POST['LID'] );
  8. $QS = "SELECT * FROM `media_queue` WHERE `id` > {$LID} ORDER BY `id` DESC LIMIT 100";
  9. $Result = $DATABASE->Query( $QS, false );
  10. if( count( $Result ) ){
  11. $SenPart = array();
  12. foreach( $Result as $R ){
  13. $CC = array();
  14. $CC[0] = $R['id'];
  15. $CC[1] = Date( "H:i:s", $R['ts']);
  16. $CC[2] = $R['uuid'];
  17. $CC[3] = $R['width'].'x'.$R['height'];
  18. $CC[4] = $R['status'];
  19. $CC[5] = $R['progress'];
  20. $SenPart[] = $CC;
  21. };
  22. $Data['status']='ok';
  23. $Data['log'] = $SenPart;
  24. } else {
  25. $Data['status']='na';
  26. };
  27. $Data['messages'] = ob_get_clean();
  28. echo json_encode( $Data );
  29. } else {
  30. header('location: /');
  31. };
  32. ?>