DOCROOT/core/libraries/database/classes/kohana/database/mysql.php [ 67 ]
62 catch (ErrorException $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(':error',
68 array(':error' => mysql_error()),
69 mysql_errno());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
-
DOCROOT/core/libraries/database/classes/kohana/database/mysql.php [ 419 ] » Kohana_Database_MySQL->connect()
414 } 415 416 public function escape($value) 417 { 418 // Make sure the database is connected 419 $this->_connection or $this->connect(); 420 421 if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE) 422 { 423 throw new Database_Exception(':error', 424 array(':error' => mysql_error($this->_connection)),
-
DOCROOT/core/libraries/database/classes/kohana/database.php [ 473 ] » Kohana_Database_MySQL->escape(arguments)
0
string(5) "theme"
468 { 469 // Convert to non-locale aware float to prevent possible commas 470 return sprintf('%F', $value); 471 } 472 473 return $this->escape($value); 474 } 475 476 /** 477 * Quote a database column name and add the table prefix if needed. 478 *
-
DOCROOT/core/libraries/database/classes/kohana/database/query/builder.php [ 116 ] » Kohana_Database->quote(arguments)
0
string(5) "theme"
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 // Apply proper quoting to the column
-
DOCROOT/core/libraries/database/classes/kohana/database/query/builder/select.php [ 370 ] » 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(6) "remote" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(7) "concord" "persistent" => bool FALSE ) "charset" => string(4) "utf8" "table_prefix" => string(3) "q2_" "profiling" => bool TRUE "caching" => bool FALSE ) }
1
array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(10) "group_name" 1 => string(1) "=" 2 => string(5) "theme" ) ) )
365 } 366 367 if ( ! empty($this->_where)) 368 { 369 // Add selection conditions 370 $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); 371 } 372 373 if ( ! empty($this->_group_by)) 374 { 375 // Add sorting
-
DOCROOT/core/libraries/database/classes/kohana/database/query.php [ 210 ] » 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(6) "remote" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(7) "concord" "persistent" => bool FALSE ) "charset" => string(4) "utf8" "table_prefix" => string(3) "q2_" "profiling" => bool TRUE "caching" => bool FALSE ) }
205 // Get the database instance 206 $db = Database::instance($db); 207 } 208 209 // Compile the SQL query 210 $sql = $this->compile($db); 211 212 if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) 213 { 214 // Set the cache key based on the database instance name and SQL 215 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
DOCROOT/core/libraries/database/classes/kohana/config/database.php [ 55 ] » Kohana_Database_Query->execute(arguments)
0
string(6) "remote"
50 { 51 // Load all of the configuration values for this group 52 $query = DB::select('config_key', 'config_value') 53 ->from($this->_database_table) 54 ->where('group_name', '=', $group) 55 ->execute($this->_database_instance); 56 57 if (count($query) > 0) 58 { 59 // Unserialize the configuration values 60 $config = array_map('unserialize', $query->as_array('config_key', 'config_value'));
-
SYSPATH/classes/kohana/config.php [ 104 ] » Kohana_Config_Database->load(arguments)
0
string(5) "theme"
99 */ 100 public function load($group) 101 { 102 foreach ($this->_readers as $reader) 103 { 104 if ($config = $reader->load($group)) 105 { 106 // Found a reader for this configuration group 107 return $config; 108 } 109 }
-
SYSPATH/classes/kohana/core.php [ 821 ] » Kohana_Config->load(arguments)
0
string(5) "theme"
816 } 817 818 if ( ! isset($config[$group])) 819 { 820 // Load the config group into the cache 821 $config[$group] = Kohana::$config->load($group); 822 } 823 824 if (isset($path)) 825 { 826 return Arr::path($config[$group], $path, NULL, '.');
-
APPPATH/classes/controller/base.php [ 128 ] » Kohana_Core::config(arguments)
0
string(5) "theme"
123 124 $this->_view_path .= $this->request->controller() . '/'; 125 126 // Set theme 127 128 $this->_theme = Kohana::config('theme')->get($this->admin ? 'backend' : 'frontend'); 129 130 if ($this->_theme) 131 Kohana::modules(array('theme' => THMPATH . $this->_theme)); 132 } 133
-
{PHP internal call} » Controller_Base->__construct(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => NULL protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(89) "(<language>)(/)(<admin>)(/)(<controller>(/<pid>)(/<action>(/<id>)))(/p<page>)(<overflow>)" protected _regex => array(7) ( "language" => string(9) "(ru|ua)\b" "admin" => string(7) "admin\b" "action" => string(10) "[a-z\_]+\b" "pid" => string(5) "[\d]+" "id" => string(5) "[\d]+" "page" => string(5) "[\d]+" "overflow" => string(2) ".+" ) protected _defaults => array(5) ( "controller" => string(5) "index" "action" => string(5) "index" "pid" => NULL "id" => NULL "page" => bool FALSE ) protected _route_regex => string(212) "#^(?:(?P<language>(ru|ua)\b))?(?:/)?(?:(?P<admin>admin\b))?(?:/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<pid>[\d]+))?(?:/(?P<acti …" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "alias" protected _action => string(5) "index" protected _uri => string(5) "alias" protected _external => bool FALSE protected _params => array(5) ( "language" => string(0) "" "admin" => string(0) "" "pid" => NULL "id" => NULL "page" => bool FALSE ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1711702553 }
public _injected_routes => 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(4) "http" } -
SYSPATH/classes/kohana/request/client/internal.php [ 108 ] » ReflectionClass->newInstance(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => NULL protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(89) "(<language>)(/)(<admin>)(/)(<controller>(/<pid>)(/<action>(/<id>)))(/p<page>)(<overflow>)" protected _regex => array(7) ( "language" => string(9) "(ru|ua)\b" "admin" => string(7) "admin\b" "action" => string(10) "[a-z\_]+\b" "pid" => string(5) "[\d]+" "id" => string(5) "[\d]+" "page" => string(5) "[\d]+" "overflow" => string(2) ".+" ) protected _defaults => array(5) ( "controller" => string(5) "index" "action" => string(5) "index" "pid" => NULL "id" => NULL "page" => bool FALSE ) protected _route_regex => string(212) "#^(?:(?P<language>(ru|ua)\b))?(?:/)?(?:(?P<admin>admin\b))?(?:/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<pid>[\d]+))?(?:/(?P<acti …" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "alias" protected _action => string(5) "index" protected _uri => string(5) "alias" protected _external => bool FALSE protected _params => array(5) ( "language" => string(0) "" "admin" => string(0) "" "pid" => NULL "id" => NULL "page" => bool FALSE ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1711702553 }
public _injected_routes => 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(4) "http" }103 throw new Kohana_Exception('Cannot create instances of abstract :controller', 104 array(':controller' => $prefix.$controller)); 105 } 106 107 // Create a new instance of the controller 108 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 109 110 $class->getMethod('before')->invoke($controller); 111 112 // Determine the action to use 113 $action = $request->action();
-
SYSPATH/classes/kohana/request.php [ 1129 ] » Kohana_Request_Client_Internal->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => NULL protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(89) "(<language>)(/)(<admin>)(/)(<controller>(/<pid>)(/<action>(/<id>)))(/p<page>)(<overflow>)" protected _regex => array(7) ( "language" => string(9) "(ru|ua)\b" "admin" => string(7) "admin\b" "action" => string(10) "[a-z\_]+\b" "pid" => string(5) "[\d]+" "id" => string(5) "[\d]+" "page" => string(5) "[\d]+" "overflow" => string(2) ".+" ) protected _defaults => array(5) ( "controller" => string(5) "index" "action" => string(5) "index" "pid" => NULL "id" => NULL "page" => bool FALSE ) protected _route_regex => string(212) "#^(?:(?P<language>(ru|ua)\b))?(?:/)?(?:(?P<admin>admin\b))?(?:/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<pid>[\d]+))?(?:/(?P<acti …" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "alias" protected _action => string(5) "index" protected _uri => string(5) "alias" protected _external => bool FALSE protected _params => array(5) ( "language" => string(0) "" "admin" => string(0) "" "pid" => NULL "id" => NULL "page" => bool FALSE ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1711702553 }
public _injected_routes => array(0) }1124 throw new Kohana_Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1125 ':uri' => $this->_uri, 1126 )); 1127 } 1128 1129 return $this->_client->execute($this); 1130 } 1131 1132 /** 1133 * Returns whether this request is the initial request Kohana received. 1134 * Can be used to test for sub requests.
-
DOCROOT/core/bootstrap.php [ 162 ] » Kohana_Request->execute()
157 { 158 $response = Request::factory()->execute(); 159 } 160 catch (HTTP_Exception_404 $e) 161 { 162 $response = Request::factory('alias')->execute(); 163 } 164 165 Event::run('system.execute', $response); 166 167 echo $response->send_headers()->body();
-
DOCROOT/index.php [ 28 ] » require_once(arguments)
0
string(59) "/var/www/cshop/data/www/concord-shop.com/core/bootstrap.php"
23 define('SYSPATH', COREPATH.'system'.DS); 24 // Load empty core extension 25 require_once COREPATH.'kohana.php'; 26 27 // Bootstrap the application 28 require_once COREPATH.'bootstrap.php'; 29 error_reporting(E_ALL|E_STRICT); 30 ini_set('display_errors', 1);