Ejemplo n.º 1
0
 # if
 /*
  * We normally check whether we are not running already, because
  * this would mean it will mess up all sorts of things like
  * comment calculation, but a user can force our hand
  */
 $forceMode = SpotCommandline::get('force');
 /*
  * Do we need to debuglog this session? Generates loads of
  * output
  */
 $debugLog = SpotCommandline::get('debug');
 if ($debugLog) {
     SpotDebug::enable(SpotDebug::TRACE, $daoFactory->getDebugLogDao());
 } else {
     SpotDebug::disable();
 }
 # if
 /*
  * Retro mode will allow os to start from the beginning and retrieve
  * all spots starting from scratch
  */
 $retroMode = SpotCommandline::get('retro');
 /*
  * Retention cleanup. Basically when we ask for Spotweb to only
  * keep spots for 'xx' days (eg: 30 days), we either have to delete
  * everyting older than 'xx' days, or delete all 'full' resources
  * older than the specified time period.
  *
  * The full resources are everything beyond the bare minimum to 
  * display the spots, so we delete nzb's, images, comments, etc.