MODPATH/database/classes/kohana/database/pdo.php [ 62 ]
57 // Create a new PDO connection
58 $this->_connection = new PDO($dsn, $username, $password, $options);
59 }
60 catch (PDOException $e)
61 {
62 throw new Database_Exception(':error',
63 array(':error' => $e->getMessage()),
64 $e->getCode());
65 }
66 }
67
-
MODPATH/database/classes/kohana/database/pdo.php [ 155 ] » Kohana_Database_PDO->connect()
150 } 151 152 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 153 { 154 // Make sure the database is connected 155 $this->_connection or $this->connect(); 156 157 $this->pdo_ping(); 158 159 if (Kohana::$profiling) 160 {
-
MODPATH/database/classes/kohana/database/query.php [ 275 ] » Kohana_Database_PDO->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 [ 188 ] » Common::cache_web_list()
183 $cfg_public_url = '/res/'; 184 $cfg_res_url = '/res/'; 185 $cfg_user_templet_dir = '/usertpl/'; 186 187 //子站判断与处理 188 Common::cache_web_list(); 189 //主站点webid 190 $sys_webid = 0; 191 //主站点prefix 192 $sys_prefix = Common::get_main_prefix(); 193 //子站检测
-
DOCROOT/index.php [ 124 ] » require(arguments)
0
string(42) "/www/wwwroot/njcts.com.cn/v5/bootstrap.php"
119 { 120 define('KOHANA_START_MEMORY', memory_get_usage()); 121 } 122 123 // Bootstrap the application 124 require APPPATH.'bootstrap'.EXT; 125 126 127 if ( ! defined('SUPPRESS_REQUEST')) { 128 echo Request::factory() 129 ->execute()