public static function bootstrap() { Scribe::$path = dirname(dirname(__FILE__)); require_once Scribe::$path . '/config.php'; Scribe_Router::route(); }
<?php require_once dirname(__FILE__) . '/library/Scribe.php'; Scribe::bootstrap();
static function logout() { $oauth_client_id = Auth::get_oauth_client_id(); if (empty($oauth_client_id)) { return array('return_code' => -1, 'error_message' => 'Forbidden'); } Auth::logout(); Scribe::log('accounts', array('event' => 'logged out through oauth', 'event_data' => array('client_id' => $oauth_client_id))); return array('return_code' => 1, 'error_message' => ''); }