* Initialize the Spotweb base classes */ $bootstrap = new Bootstrap(); list($settings, $daoFactory, $req) = $bootstrap->boot(); /* * disable timing, all queries which are ran by retrieve this would make it use * large amounts of memory */ SpotTiming::disable(); # Initialize commandline arguments SpotCommandline::initialize(array('force', 'debug', 'retro', 'timing'), array('force' => false, 'timing' => false, 'debug' => false, 'retro' => false)); # Allow for timing to be displayed after retrieval of spots $showTiming = SpotCommandline::get('timing'); if ($showTiming) { SpotTiming::enable(); SpotTiming::enableHtml(false); SpotTiming::disableExtra(true); } # if # Initialize translation to english SpotTranslation::initialize('en_US'); /* * When PHP is running in safe mode, max execution time cannot be set, * which is necessary on slow systems for retrieval and statistics generation */ if (ini_get('safe_mode')) { echo "WARNING: PHP safemode is enabled, maximum execution cannot be reset! Turn off safemode if this causes problems" . PHP_EOL . PHP_EOL; } # if /* * When retrieval is run from the webinterface, we want to make