SpotClassAutoload::register(); #- main() -# try { SpotTranslation::initialize('en_US'); SpotTiming::enable(); SpotTiming::start('total'); /* * Initialize the Spotweb base classes */ $bootstrap = new Bootstrap(); list($settings, $daoFactory, $req) = $bootstrap->boot(); /* * Enable debug logging mechanism if timing is enabled */ if ($settings->get('enable_timing')) { SpotDebug::enable(SpotDebug::TRACE, $daoFactory->getDebugLogDao()); } # if # helper functions for passed variables $page = $req->getDef('page', 'index'); # Retrieve the users object of the user which is logged on SpotTiming::start('auth'); $svcUserAuth = new Services_User_Authentication($daoFactory, $settings); if ($req->doesExist('apikey')) { $currentSession = $svcUserAuth->verifyApi($req->getDef('apikey', '')); } else { $currentSession = $svcUserAuth->useOrStartSession(false); } # if /* * If three is no user object, we don't have a security system