MODPATH/database/classes/Kohana/Database/MySQL.php [ 67 ]
62 catch (Exception $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(':error',
68 array(':error' => $e->getMessage()),
69 $e->getCode());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
-
MODPATH/database/classes/Kohana/Database/MySQL.php [ 431 ] » Kohana_Database_MySQL->connect()
426 } 427 428 public function escape($value) 429 { 430 // Make sure the database is connected 431 $this->_connection or $this->connect(); 432 433 if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE) 434 { 435 throw new Database_Exception(':error', 436 array(':error' => mysql_error($this->_connection)),
-
MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQL->escape(arguments)
0
string(4) "auth"
473 { 474 // Convert to non-locale aware float to prevent possible commas 475 return sprintf('%F', $value); 476 } 477 478 return $this->escape($value); 479 } 480 481 /** 482 * Quote a database column name and add the table prefix if needed. 483 *
-
MODPATH/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote(arguments)
0
string(4) "auth"
111 $value = $min.' AND '.$max; 112 } 113 elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) 114 { 115 // Quote the value, it is not a parameter 116 $value = $db->quote($value); 117 } 118 119 if ($column) 120 { 121 if (is_array($column))
-
MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(20) "p558623.mysql.ihc.ru" "database" => string(13) "p558623_obmen" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
1
array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(10) "group_name" 1 => string(1) "=" 2 => string(4) "auth" ) ) )
367 } 368 369 if ( ! empty($this->_where)) 370 { 371 // Add selection conditions 372 $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); 373 } 374 375 if ( ! empty($this->_group_by)) 376 { 377 // Add grouping
-
MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(20) "p558623.mysql.ihc.ru" "database" => string(13) "p558623_obmen" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
229 { 230 $object_params = $this->_object_params; 231 } 232 233 // Compile the SQL query 234 $sql = $this->compile($db); 235 236 if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) 237 { 238 // Set the cache key based on the database instance name and SQL 239 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
MODPATH/database/classes/Kohana/Config/Database/Reader.php [ 62 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(20) "p558623.mysql.ihc.ru" "database" => string(13) "p558623_obmen" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
57 return FALSE; 58 59 $query = DB::select('config_key', 'config_value') 60 ->from($this->_table_name) 61 ->where('group_name', '=', $group) 62 ->execute($this->_db_instance); 63 64 return count($query) ? array_map('unserialize', $query->as_array('config_key', 'config_value')) : FALSE; 65 } 66 }
-
MODPATH/database/classes/Kohana/Config/Database/Writer.php [ 26 ] » Kohana_Config_Database_Reader->load(arguments)
0
string(4) "auth"
21 * @param string $group Configuration group 22 * @return boolean|array 23 */ 24 public function load($group) 25 { 26 $config = parent::load($group); 27 28 if ($config !== FALSE) 29 { 30 $this->_loaded_keys[$group] = array_combine(array_keys($config), array_keys($config)); 31 }
-
SYSPATH/classes/Kohana/Config.php [ 130 ] » Kohana_Config_Database_Writer->load(arguments)
0
string(4) "auth"
125 126 foreach ($sources as $source) 127 { 128 if ($source instanceof Kohana_Config_Reader) 129 { 130 if ($source_config = $source->load($group)) 131 { 132 $config = Arr::merge($config, $source_config); 133 } 134 } 135 }
-
MODPATH/auth/classes/Kohana/Auth.php [ 26 ] » Kohana_Config->load(arguments)
0
string(4) "auth"
21 public static function instance() 22 { 23 if ( ! isset(Auth::$_instance)) 24 { 25 // Load the configuration for this type 26 $config = Kohana::$config->load('auth'); 27 28 if ( ! $type = $config->get('driver')) 29 { 30 $type = 'file'; 31 }
-
APPPATH/classes/Controller/Base.php [ 23 ] » Kohana_Auth::instance()
18 19 public function before() 20 { 21 parent::before(); 22 23 $this->_auth = Auth::instance(); 24 25 $this->_user = $this->_auth->get_user(); 26 } 27 28 public function after()
-
APPPATH/classes/Controller/Frontend/Base.php [ 12 ] » Controller_Base->before()
7 public $layout = 'Frontend/Layouts/Index'; 8 9 10 public function before() 11 { 12 parent::before(); 13 14 15 StaticCss::instance()->addCss('media/public/css/bootstrap.css'); 16 StaticCss::instance()->addCss('media/public/css/czsale.css'); 17 StaticCss::instance()->addCss('media/public/css/czsale-responsive.css');
-
APPPATH/classes/Controller/Frontend/Ads.php [ 11 ] » Controller_Frontend_Base->before()
6 7 public $layout = 'Frontend/Layouts/Index'; 8 9 public function before() 10 { 11 parent::before(); 12 13 } 14 15 16 public function action_index()
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Frontend_Ads->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_Frontend_Ads(7)
{ public template => object View(2)
{ protected _file => string(69) "/home/p558623/www/obmenium.ru/application/views/Frontend/Template.php" protected _data => array(0) }
public layout => object View(2){ protected _file => string(74) "/home/p558623/www/obmenium.ru/application/views/Frontend/Layouts/Index.php" protected _data => array(0) }
protected _auth => NULL protected _user => NULL 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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "page" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "directory" => string(8) "frontend" "controller" => string(3) "ads" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(8) "Frontend" protected _controller => string(3) "Ads" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "category_id" => string(2) "33" ) 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.1" }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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "page" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "directory" => string(8) "frontend" "controller" => string(3) "ads" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(8) "Frontend" protected _controller => string(3) "Ads" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "category_id" => string(2) "33" ) 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.1" }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 [ 986 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "page" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "directory" => string(8) "frontend" "controller" => string(3) "ads" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(8) "Frontend" protected _controller => string(3) "Ads" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "category_id" => string(2) "33" ) 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) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * 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 }