isDownloadAvailable($code); if($status === false){ echo 'wait'; }else{ $str = ''; // display any error messages if(!empty($status)){ $str = '
'._kt('The following errors occurred during the download').':
'; $str .= ''; foreach ($status as $msg){ $str .= ''; } $str .= '
'.$msg.'
'; } echo $str; } exit(0); } if($queue->isLocked()){ exit(0); } // Not a ping, process the queue $queue->processQueue(); exit(0); ?>