start(); $timer->setMarker('Starting up.'); # $profiling = $timer->getProfiling(); // get the profil */ // Set up for logging. require_once 'Log.php'; global $log; $log = &Log::singleton('file', $config['LOG_PATH'].'/xoxoio-main.log', 'main', array(), PEAR_LOG_DEBUG); // $log->debug(basename($_SERVER['SCRIPT_FILENAME'])." starting up..."); // Set up templating system. require_once "Savant3.php"; global $tpl; $tpl = new Savant3(); $tpl->addPath('template', $config['TEMPLATE_PATH']); // Initialize the outline store; require_once 'XoxoOutliner/OutlineStore.php'; global $outline_store; $outline_store = new FileOutlineStore($config['DATA_PATH']); // Set up URI-to-action routes global $routes; $routes = array( '* /play/' => 'play.action.php', '* /import/' => 'import.action.php', 'GET /outlines/' => 'xoxoio.GET.action.php', 'HEAD /outlines/' => 'xoxoio.HEAD.action.php', 'PUT /outlines/' => 'xoxoio.PUT.action.php', 'POST /outlines/' => 'xoxoio.POST.action.php', 'DELETE /outlines/' => 'xoxoio.DELETE.action.php', 'GET /' => 'index.GET.action.php', 'POST /' => 'index.POST.action.php' ); ?>