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(7) "cnynpzh"
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(56) "SELECT * FROM `sline_destinations` WHERE `iswebsite` = 1"
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);
-
DOCROOT/tools/classes/model/destinations.php [ 111 ] » Kohana_Database_Query->execute()
106 $webfile = CACHE_DIR.'v5/weblist.php'; 107 if (!file_exists($webfile)) 108 { 109 $out = array(); 110 111 $arr = DB::select()->from('destinations')->where('iswebsite','=',1)->execute()->as_array(); 112 foreach($arr as $row) 113 { 114 $out[$row['webprefix']]=array( 115 'webprefix'=>$row['webprefix'], 116 'weburl'=>$row['weburl'],
-
APPPATH/classes/common.php [ 655 ] » Model_Destinations::gen_web_list()
650 /* 651 * 生成站点列表 652 * */ 653 public static function cache_web_list() 654 { 655 Model_Destinations::gen_web_list(); 656 } 657 658 // 发送邮件 659 public static function send_email($maillto, $title, $content) 660 {
-
APPPATH/bootstrap.php [ 189 ] » Common::cache_web_list()
184 $cfg_res_url = '/res/'; 185 $cfg_user_templet_dir = '/usertpl/'; 186 187 188 //子站判断与处理 189 Common::cache_web_list(); 190 //主站点webid 191 $sys_webid = 0; 192 //主站点prefix 193 $sys_prefix = Common::get_main_prefix(); 194 //子站检测
-
DOCROOT/index.php [ 120 ] » require(arguments)
0
string(33) "/www/wwwroot/old/v5/bootstrap.php"
115 { 116 define('KOHANA_START_MEMORY', memory_get_usage()); 117 } 118 119 // Bootstrap the application 120 require APPPATH.'bootstrap'.EXT; 121 122 123 if (PHP_SAPI == 'cli') // Try and load minion 124 { 125 class_exists('Minion_Task') OR die('Please enable the Minion module for CLI support.');