MODPATH/_internal/database/classes/Kohana/Database/MySQLi.php [ 75 ]
70 catch (Exception $e)
71 {
72 // No connection exists
73 $this->_connection = NULL;
74
75 throw new Database_Exception(':error', array(':error' => $e->getMessage()), $e->getCode());
76 }
77
78 // \xFF is a better delimiter, but the PHP driver uses underscore
79 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
80
-
MODPATH/_internal/database/classes/Kohana/Database/MySQLi.php [ 409 ] » Kohana_Database_MySQLi->connect()
404 } 405 406 public function escape($value) 407 { 408 // Make sure the database is connected 409 $this->_connection or $this->connect(); 410 411 if (($value = $this->_connection->real_escape_string( (string) $value)) === FALSE) 412 { 413 throw new Database_Exception(':error', array( 414 ':error' => $this->_connection->error,
-
MODPATH/_internal/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQLi->escape(arguments)
0
string(7) "setting"
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/_internal/database/classes/Kohana/Database/Query/Builder.php [ 116 ] » Kohana_Database->quote(arguments)
0
string(7) "setting"
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/_internal/database/classes/Kohana/Database/Query/Builder/Select.php [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions(arguments)
0
object Database_MySQLi(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(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(10) "user13_xyz" "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(7) "setting" ) ) )
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/_internal/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->compile(arguments)
0
object Database_MySQLi(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(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(10) "user13_xyz" "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/_internal/database/classes/Kohana/Config/Database/Reader.php [ 62 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(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(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(10) "user13_xyz" "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/_internal/database/classes/Kohana/Config/Database/Writer.php [ 35 ] » Kohana_Config_Database_Reader->load(arguments)
0
string(7) "setting"
30 * @param string $group Configuration group 31 * @return boolean|array 32 */ 33 public function load($group) 34 { 35 $config = parent::load($group); 36 37 if ($config !== FALSE) 38 { 39 $this->_loaded_keys[$group] = array_combine(array_keys($config), array_keys($config)); 40 }
-
SYSPATH/classes/Kohana/Config.php [ 130 ] » Kohana_Config_Database_Writer->load(arguments)
0
string(7) "setting"
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 }
-
APPPATH/bootstrap.php [ 199 ] » Kohana_Config->load(arguments)
0
string(7) "setting"
194 Request::$trusted_proxies = array($_SERVER['REMOTE_ADDR']); 195 } 196 /** 197 * Set the default language 198 */ 199 I18n::lang(Kohana::$config->load("setting.lang")); 200 I18n::$langs = DB::select()->from('langs')/*->where('active', '=', 1)*/->execute()->as_array('abbr'); 201 I18n::$default = DB::select('abbr')->from('langs')->where('default', '=', 1)->execute()->get('abbr'); 202 //I18n::$available = array_diff(array_keys(i18n::$langs), array(i18n::$default)); 203 //I18n::$available[] = Route::SUBDOMAIN_EMPTY; 204 RLang::$default = I18n::$lang;
-
DOCROOT/index.php [ 295 ] » require(arguments)
0
string(74) "/home/user13/domains/meczenazywo.xyz/public_html/application/bootstrap.php"
290 { 291 define('KOHANA_START_MEMORY', memory_get_usage()); 292 } 293 294 // Bootstrap the application 295 require APPPATH.'bootstrap'.EXT; 296 297 /** 298 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 299 * If no source is specified, the URI will be automatically detected. 300 */