SYSPATH/classes/Kohana/Session.php [ 324 ]
319 }
320 }
321 catch (Exception $e)
322 {
323 // Error reading the session, usually a corrupt session.
324 throw new Session_Exception('Error reading session data.', NULL, Session_Exception::SESSION_CORRUPT);
325 }
326
327 if (is_array($data))
328 {
329 // Load the data locally
-
SYSPATH/classes/Kohana/Session.php [ 125 ] » Kohana_Session->read(arguments)
0
NULL
120 // Enable or disable encryption of data 121 $this->_encrypted = $config['encrypted']; 122 } 123 124 // Load the session 125 $this->read($id); 126 } 127 128 /** 129 * Session object is rendered to a serialized string. If encryption is 130 * enabled, the session will be encrypted. If not, the output string will
-
SYSPATH/classes/Kohana/Session.php [ 54 ] » Kohana_Session->__construct(arguments)
0
NULL
1
NULL
49 50 // Set the session class name 51 $class = 'Session_'.ucfirst($type); 52 53 // Create a new session instance 54 Session::$instances[$type] = $session = new $class($config, $id); 55 56 // Write the session at shutdown 57 register_shutdown_function(array($session, 'write')); 58 } 59
-
MODPATH/auth/classes/Kohana/Auth.php [ 58 ] » Kohana_Session::instance(arguments)
0
string(6) "native"
53 public function __construct($config = array()) 54 { 55 // Save the config in the object 56 $this->_config = $config; 57 58 $this->_session = Session::instance($this->_config['session_type']); 59 } 60 61 abstract protected function _login($username, $password, $remember); 62 63 abstract public function password($username);
-
MODPATH/auth/classes/Kohana/Auth.php [ 37 ] » Kohana_Auth->__construct(arguments)
0
object Config_Group(7)
{ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(35) "lshgvnyciulanrimlaetvskhsdfhghdsfds" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }
32 33 // Set the session class name 34 $class = 'Auth_'.ucfirst($type); 35 36 // Create a new session instance 37 Auth::$_instance = new $class($config); 38 } 39 40 return Auth::$_instance; 41 } 42
-
APPPATH/classes/Controller/Base.php [ 21 ] » Kohana_Auth::instance()
16 17 public function before() 18 { 19 parent::before(); 20 $this->template->client_ip = Request::$client_ip; 21 $this->template->client_role = Auth::instance()->logged_in('admin') ? 'admin' : 'client'; 22 $this->template->title = Model_Settings::loadSettingsByName('site_title', 'MAIN')->get('value'); 23 $this->template->sub_title = null; 24 $this->template->description = Model_Settings::loadSettingsByName('site_description', 'META')->get('value'); 25 $this->template->keywords = Model_Settings::loadSettingsByName('site_keywords', 'META')->get('value'); 26 $this->template->header = $this->request->factory('parts/header')->execute();
-
APPPATH/classes/Controller/Public.php [ 6 ] » Controller_Base->before()
1 <?php defined('SYSPATH') or die('No direct script access.'); 2 3 class Controller_Public extends Controller_Base { 4 5 public function before() { 6 parent::before(); 7 Media::factory()->add('/assets/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js', Media::CUSTOM, Media::JS); 8 Media::factory()->add('/assets/AdminLTE/bootstrap/js/bootstrap.min.js', Media::CUSTOM, Media::JS); 9 Media::factory()->add('/assets/AdminLTE/plugins/inputmask/inputmask.js', Media::CUSTOM, Media::JS); 10 Media::factory()->add('/assets/AdminLTE/plugins/inputmask/jquery.inputmask.js', Media::CUSTOM, Media::JS); 11 Media::factory()->add('/assets/AdminLTE/plugins/inputmask/inputmask.numeric.extensions.js', Media::CUSTOM, Media::JS);
-
APPPATH/classes/Controller/Catalog.php [ 21 ] » Controller_Public->before()
16 private $ids; 17 public $params; 18 19 public function before() 20 { 21 parent::before(); 22 $this->params = Arr::extract(Request::current()->param(), array('category', 'filter', 'page')); 23 24 $category = ORM::factory('Category')->where('alias', '=', $this->params['category'])->find(); 25 if ($category->loaded()) { 26 $this->category = $category;
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Catalog->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Catalog(10)
{ public item_on_page => integer 7 public current_page => integer 0 public total_records => integer 0 private category => NULL private ids => NULL public params => NULL public template => object View(2)
{ protected _file => string(70) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/tpl.php" protected _data => array(1) ( "client_ip" => string(10) "172.18.0.1" ) }
public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(52) "catalog(/<category>(/filter/<filter>)(/page:<page>))" protected _regex => array(3) ( "category" => string(15) "[a-zA-Z0-9\-/]+" "filter" => string(17) "[a-zA-Z0-9\-_=:]+" "page" => string(6) "[0-9]+" ) protected _defaults => array(5) ( "category" => NULL "filter" => string(0) "" "controller" => string(7) "Catalog" "action" => string(5) "Index" "page" => string(1) "1" ) protected _route_regex => string(117) "#^catalog(?:/(?P<category>[a-zA-Z0-9\-/]+)(?:/filter/(?P<filter>[a-zA-Z0-9\-_=:]+))?(?:/page:(?P<page>[0-9]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Catalog" protected _action => string(5) "Index" protected _uri => string(54) "catalog/noutbuki-kompyutery-programmy/monitory/samsung" protected _external => bool FALSE protected _params => array(3) ( "category" => string(46) "noutbuki-kompyutery-programmy/monitory/samsung" "filter" => string(0) "" "page" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(52) "catalog(/<category>(/filter/<filter>)(/page:<page>))" protected _regex => array(3) ( "category" => string(15) "[a-zA-Z0-9\-/]+" "filter" => string(17) "[a-zA-Z0-9\-_=:]+" "page" => string(6) "[0-9]+" ) protected _defaults => array(5) ( "category" => NULL "filter" => string(0) "" "controller" => string(7) "Catalog" "action" => string(5) "Index" "page" => string(1) "1" ) protected _route_regex => string(117) "#^catalog(?:/(?P<category>[a-zA-Z0-9\-/]+)(?:/filter/(?P<filter>[a-zA-Z0-9\-_=:]+))?(?:/page:(?P<page>[0-9]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Catalog" protected _action => string(5) "Index" protected _uri => string(54) "catalog/noutbuki-kompyutery-programmy/monitory/samsung" protected _external => bool FALSE protected _params => array(3) ( "category" => string(46) "noutbuki-kompyutery-programmy/monitory/samsung" "filter" => string(0) "" "page" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(52) "catalog(/<category>(/filter/<filter>)(/page:<page>))" protected _regex => array(3) ( "category" => string(15) "[a-zA-Z0-9\-/]+" "filter" => string(17) "[a-zA-Z0-9\-_=:]+" "page" => string(6) "[0-9]+" ) protected _defaults => array(5) ( "category" => NULL "filter" => string(0) "" "controller" => string(7) "Catalog" "action" => string(5) "Index" "page" => string(1) "1" ) protected _route_regex => string(117) "#^catalog(?:/(?P<category>[a-zA-Z0-9\-/]+)(?:/filter/(?P<filter>[a-zA-Z0-9\-_=:]+))?(?:/page:(?P<page>[0-9]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Catalog" protected _action => string(5) "Index" protected _uri => string(54) "catalog/noutbuki-kompyutery-programmy/monitory/samsung" protected _external => bool FALSE protected _params => array(3) ( "category" => string(46) "noutbuki-kompyutery-programmy/monitory/samsung" "filter" => string(0) "" "page" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }