} catch(Exception $x) { echo PHP_EOL . PHP_EOL; echo "Fatal error occured retrieving messages:" . PHP_EOL; echo " " . $x->getMessage() . PHP_EOL . PHP_EOL; die(); } # catch ## Comments try { if ($settings['retrieve_comments']) { $retriever = new SpotRetriever_Comments($settings['nntp_hdr'], $db, $settings, $req->getDef('output', '')); $msgdata = $retriever->connect($settings['comment_group']); $curMsg = $db->getMaxArticleId('comments'); if ($curMsg != 0) { $curMsg = $retriever->searchMessageId($db->getMaxMessageId('comments')); } # if $retriever->loopTillEnd($curMsg, $settings['retrieve_increment']); $retriever->quit(); } # if } catch(RetrieverRunningException $x) { echo PHP_EOL . PHP_EOL; echo "retriever.php draait al, geef de parameter '--force' mee om te forceren." . PHP_EOL; } catch(Exception $x) { echo PHP_EOL . PHP_EOL;
} catch (Exception $x) { echo PHP_EOL . PHP_EOL; echo "Fatal error occured retrieving messages:" . PHP_EOL; echo " " . $x->getMessage() . PHP_EOL; echo PHP_EOL . PHP_EOL; echo $x->getTraceAsString(); echo PHP_EOL . PHP_EOL; die; } # catch ## Comments try { $newCommentCount = 0; if ($settings->get('retrieve_comments')) { $retriever = new SpotRetriever_Comments($settings_nntp_hdr, $db, $settings, $req->getDef('output', '')); $msgdata = $retriever->connect($settings->get('comment_group')); $curMsg = $db->getMaxArticleId('comments'); if ($curMsg != 0) { $curMsgTemp = $retriever->searchMessageId($db->getMaxMessageId('comments')); if ($curMsg > $curMsgTemp) { $curMsg = $curMsgTemp; } # if } # if $newCommentCount = $retriever->loopTillEnd($curMsg, $settings->get('retrieve_increment')); $retriever->quit(); } # if } catch (NntpException $x) { echo PHP_EOL . PHP_EOL;