Ejemplo n.º 1
0
 public static function bootstrap()
 {
     Scribe::$path = dirname(dirname(__FILE__));
     require_once Scribe::$path . '/config.php';
     Scribe_Router::route();
 }
Ejemplo n.º 2
0
<?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' => '');
 }