MODPATH/database/classes/kohana/database/mysql.php [ 108 ]
103 protected function _select_db($database)
104 {
105 if ( ! mysql_select_db($database, $this->_connection))
106 {
107 // Unable to select database
108 throw new Database_Exception(':error',
109 array(':error' => mysql_error($this->_connection)),
110 mysql_errno($this->_connection));
111 }
112
113 Database_MySQL::$_current_databases[$this->_connection_id] = $database;
-
MODPATH/database/classes/kohana/database/mysql.php [ 75 ] » Kohana_Database_MySQL->_select_db(arguments)
0
string(10) "wintourcms"
70 } 71 72 // \xFF is a better delimiter, but the PHP driver uses underscore 73 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password); 74 75 $this->_select_db($database); 76 77 if ( ! empty($this->_config['charset'])) 78 { 79 // Set the character set 80 $this->set_charset($this->_config['charset']);
-
MODPATH/database/classes/kohana/database/mysql.php [ 171 ] » Kohana_Database_MySQL->connect()
166 } 167 168 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 169 { 170 // Make sure the database is connected 171 $this->_connection or $this->connect(); 172 173 if (Kohana::$profiling) 174 { 175 // Benchmark this query for the current instance 176 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/kohana/database/query.php [ 275 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(43) "SELECT * FROM `sline_weblist` WHERE webid=0"
2
bool FALSE
3
array(0)
270 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 271 } 272 } 273 274 // Execute the query 275 $result = $db->query($this->_type, $sql, $as_object, $object_params); 276 277 if (isset($cache_key) AND $this->_lifetime > 0) 278 { 279 // Cache the result array 280 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
/www/wwwroot/www.szwintour.com/tools/classes/st/functions.php [ 20 ] » Kohana_Database_Query->execute()
15 * @return bool 16 */ 17 static function st_query($table, $where = 1, $fields = '*', $getResult = false) 18 { 19 $bool = false; 20 $rs = DB::select($fields)->from($table)->where($where)->execute()->current(); 21 if (!empty($rs)) 22 { 23 $bool = !$getResult ? true : $rs; 24 } 25 return $bool;
-
/www/wwwroot/www.szwintour.com/tools/classes/st/functions.php [ 79 ] » St_Functions::st_query(arguments)
0
string(7) "weblist"
1
string(7) "webid=0"
2
string(1) "*"
3
bool TRUE
74 * @return string 75 */ 76 static function cookie_domain() 77 { 78 $host = $_SERVER['HTTP_HOST']; 79 $rs = self::st_query('weblist', 'webid=0', '*', true); 80 if (!empty($rs)) 81 { 82 $host = preg_replace('/^'.$rs['webprefix'] . '\./', '', parse_url($rs['weburl'], PHP_URL_HOST)); 83 } 84 return $host;
-
APPPATH/bootstrap.php [ 168 ] » St_Functions::cookie_domain()
163 'controller' => 'index', 164 'action' => 'index', 165 )); 166 Cookie::$salt = COOKIES_SALT; 167 Cookie::$path = COOKIES_PATH; 168 Cookie::$domain = Common::cookie_domain();
-
DOCROOT/index.php [ 120 ] » require(arguments)
0
string(73) "/www/wwwroot/www.szwintour.com/plugins/login_qq/application/bootstrap.php"
115 { 116 define('KOHANA_START_MEMORY', memory_get_usage()); 117 } 118 119 // Bootstrap the application 120 require APPPATH . 'bootstrap' . EXT; 121 122 if (PHP_SAPI == 'cli') // Try and load minion 123 { 124 class_exists('Minion_Task') OR die('Please enable the Minion module for CLI support.'); 125 set_exception_handler(array('Minion_Exception', 'handler'));