/www/wwwroot/qy.wlwin.com/lib/db/mysqli_driver.php[ 192 ]
187 }
188 public function getErrno() {
189 return ($this->_link) ? mysqli_errno ( $this->_link ) : mysqli_errno ();
190 }
191 public function halt($message = '', $sql = '') {
192 throw new keke_exception ( ':error [ :query ]', array (':error' => $this->getError(), ':query' => $sql ), $this->getErrno() );
193 exit ();
194 }
195 public function special_filed(&$value) {
196 if ('*' == $value || false !== strpos ( $value, '(' ) || false !== strpos ( $value, '.' ) || false !== strpos ( $value, '`' )) {
197 } else {
-
/www/wwwroot/qy.wlwin.com/index.php [ 33 ] » include ( arguments )
0string(38) "/www/wwwroot/qy.wlwin.com/app_comm.php"
28 ); 29 if(in_array($_GET['do'],$cache_enable_pages) || !isset($_GET['do'])){ 30 define('SQL_CACHE_PAGE_ENABLED', true); 31 define('SQL_CACHE_PAGE', $_GET['do'] ? $_GET['do'] : 'index'); 32 } */ 33 include 'app_comm.php'; 34 $task_open = $kekezu->_task_open; 35 $shop_open = $kekezu->_shop_open; 36 $dos = $kekezu->_route; 37 (!empty ($do) && in_array($do, $dos)) and $do or (!$_GET && !$_POST and $do = $kekezu->_sys_config ['set_index'] or $do = 'index'); 38 if (stristr($_SERVER["REQUEST_URI"], "index.html")) { -
/www/wwwroot/qy.wlwin.com/app_comm.php [ 3 ] » require ( arguments )
0string(53) "/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php"
1 <?php 2 require (dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'lib/inc/keke_base_class.php'); 3 require (dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'lib/inc/keke_core_class.php'); 4 $basic_config = $kekezu->_sys_config; 5 $model_list = $kekezu->_model_list; 6 $nav_list = $kekezu->_nav_list; 7 if (( bool ) ini_get ( 'safe_mode' ) == true) { 8 ini_set ( 'safe_mode', 'Off' ); -
/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php [ 1300 ] » kekezu::get_instance ( )
1295 } 1296 } 1297 $ipath = dirname ( dirname ( dirname ( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "keke_kppw_install.lck"; 1298 file_exists ( $ipath ) == true or header ( "Location: install/index.php" ); 1299 kekezu::register_autoloader (); 1300 $kekezu = &kekezu::get_instance (); 1301 keke_lang_class::load_lang_class ( 'keke_core_class' ); 1302 $_cache_obj = $kekezu->_cache_obj; 1303 $page_obj = $kekezu->_page_obj; 1304 $template_obj = $kekezu->_tpl_obj; -
/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php [ 995 ] » kekezu->__construct ( )
990 public $_route; 991 public $_upload_params = array(); 992 public static function &get_instance() { 993 static $obj = null; 994 if ($obj == null) { 995 $obj = new kekezu (); 996 } 997 return $obj; 998 } 999 function __construct() { 1000 $this->init (); -
/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php [ 1000 ] » kekezu->init ( )
995 $obj = new kekezu (); 996 } 997 return $obj; 998 } 999 function __construct() { 1000 $this->init (); 1001 keke_lang_class::loadlang ( 'public', 'public' ); 1002 } 1003 function init() { 1004 global $_K, $_lang; 1005 define ( "S_ROOT", substr ( dirname ( __FILE__ ), 0, - 7 ) ); -
/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php [ 1021 ] » kekezu->init_industry ( )
1016 $this->_tpl_obj = new keke_tpl_class (); 1017 $this->_page_obj = new keke_page_class (); 1018 //$this->_page_obj = new keke_page_classs (); 1019 $this->init_out_put (); 1020 $this->init_model (); 1021 $this->init_industry (); 1022 $this->init_oauth (); 1023 $this->init_curr (); 1024 if (! isset ( $_SESSION ['auid'] ) and $this->_sys_config ['is_close'] == 1 && $_GET ['do'] != 'close' && substr ( $_SERVER ['PHP_SELF'], - 16 ) != '/'.ADMIN_DIRECTORY.'/index.php') { 1025 header ( "Location:index.php?do=close" ); 1026 } -
/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php [ 1151 ] » keke_core_class::get_table_data ( )
1146 } 1147 $this->_indus_arr = kekezu::get_table_data ( '*', 'witkey_industry', '', ' CASE WHEN listorder = 0 THEN 9999999 WHEN listorder > 0 THEN listorder END ', '', '', 'indus_id', NULL ); 1148 $arrtotask = db_factory::query("show COLUMNS FROM ".TABLEPRE.'witkey_industry'." WHERE Field='totask' "); 1149 if($arrtotask[0]){ 1150 $this->_indus_task_arr = kekezu::get_table_data ( '*', "witkey_industry", "indus_type=1 and indus_pid = 0 and totask=1 ", " CASE WHEN listorder = 0 THEN 9999999 WHEN listorder > 0 THEN listorder END ", '', '', 'indus_id', NULL ); 1151 $this->_indus_task_arr_huoyuan = kekezu::get_table_data ( '*', "witkey_industry_huoyuan", "indus_type=1 and indus_pid = 0 and totask=1 ", " CASE WHEN listorder = 0 THEN 9999999 WHEN listorder > 0 THEN listorder END ", '', '', 'indus_id', NULL ); 1152 } 1153 $arrtogoods = db_factory::query("show COLUMNS FROM ".TABLEPRE.'witkey_industry'." WHERE Field='togoods' "); 1154 if($arrtogoods[0]){ 1155 $this->_indus_goods_arr = kekezu::get_table_data ( '*', "witkey_industry", "indus_type=1 and indus_pid = 0 and togoods=1 ", " CASE WHEN listorder = 0 THEN 9999999 WHEN listorder > 0 THEN listorder END ", '', '', 'indus_id', NULL ); 1156 } -
/www/wwwroot/qy.wlwin.com/lib/inc/keke_core_class.php [ 626 ] » db_factory::get_table_data ( )
621 $config_obj = new $v (); 622 $config_arr = $config_obj->$q ( 1, null ); 623 return $config_arr [0]; 624 } 625 public static function get_table_data($fileds = '*', $table = '', $where = '', $order = '', $group = '', $limit = '', $pk = '', $cachetime = 0) { 626 return db_factory::get_table_data ( $fileds, $table, $where, $order, $group, $limit, $pk, $cachetime ); 627 } 628 public static function get_task_config($model_id = '') { 629 global $kekezu; 630 if ($model_id) { 631 $where = " where model_id= '$model_id' "; -
/www/wwwroot/qy.wlwin.com/lib/db/db_factory.php [ 282 ] » keke_db->select ( )
277 SqlCacheClass::set($sql, $result); 278 } 279 return $result; 280 } elseif (IS_CACHE) { 281 $cachetime > 0 || is_null($cachetime) and ( $result = self::db_cache(1, $sql, $cachetime) and $cached = 1); 282 $result or ( $result = $db->select($fileds, $table, $where, $order, $group, $limit, $pk) and $cached = 0); 283 if ($result && $result != 'QUERY_EMPTY') { 284 !$cached && self::db_set_cache($sql, $cachetime, $result); 285 return $result; 286 } else { 287 !$cached && self::db_set_cache($sql, $cachetime); -
/www/wwwroot/qy.wlwin.com/lib/db/db_factory.php [ 121 ] » mysqli_drver->select ( )
116 public function get_query_num() { 117 return $this->_mydb->get_query_num(); 118 } 119 120 public function select($fileds = '*', $table, $where = '', $order = '', $group = '', $limit = '', $pk = '') { 121 return $this->_mydb->select($fileds, $table, $where, $order, $group, $limit, $pk); 122 } 123 124 public function getCount($sql, $row = 0, $filed = null) { 125 return $this->_mydb->getCount($sql, $row, $filed); 126 } -
/www/wwwroot/qy.wlwin.com/lib/db/mysqli_driver.php [ 140 ] » mysqli_drver->execute_sql ( )
135 if (isset($filed)&&is_array ( $filed )) { 136 array_walk ( $filed, array ($this, 'special_filed' ) ); 137 $fileds = implode ( ',', $filed ); 138 } 139 $sql = 'SELECT ' . $fileds . ' FROM `' . $this->_dbname . '`.`' . TABLEPRE . $table . '`' . $where . $group . $order . $limit; 140 $this->execute_sql ( $sql ); 141 $datalist = array (); 142 while ( ($rs = $this->fetch_array ()) != false ) { 143 $pk and $datalist [$rs [$pk]] = $rs or $datalist [] = $rs; 144 } 145 $this->free_result (); -
/www/wwwroot/qy.wlwin.com/lib/db/mysqli_driver.php [ 158 ] » mysqli_drver->halt ( )
153 } 154 protected function execute_sql($sql, $is_nubuffer = 0) { 155 ! is_resource ( $this->_link ) and $this->dbConnection (); 156 $is_nubuffer == 1 and $query_type = "mysqli_store_result" or $query_type = "mysqli_query"; 157 array_push($this->_query_sql, $sql); 158 $this->_last_query_id = $query_type ($this->_link,$sql) or $this->halt ( mysqli_error (), $sql ); 159 $this->_query_num ++; 160 return $this->_last_query_id; 161 } 162 public function get_query_num() { 163 return $this->_query_num;