E:\kechuangwang\kechuangwang\lib\db\mysql_driver.php[ 187 ]
182 }
183 public function getErrno() {
184 return ($this->_link) ? mysql_errno ( $this->_link ) : mysql_errno ();
185 }
186 public function halt($message = '', $sql = '') {
187 throw new keke_exception ( ':error [ :query ]', array ('msg'=>$message,':error' => mysql_error ( $this->_link ), ':query' => $sql ), mysql_errno ( $this->_link ) );
188 exit ();
189 }
190 public function special_filed(&$value) {
191 if ('*' == $value || false !== strpos ( $value, '(' ) || false !== strpos ( $value, '.' ) || false !== strpos ( $value, '`' )) {
192 } else {
-
E:\kechuangwang\kechuangwang\index.php [ 3 ] » include ( arguments )
0
string(41) "E:\kechuangwang\kechuangwang\app_comm.php"
1 <?php 2 define ( "IN_KEKE", TRUE ); 3 include 'app_comm.php'; 4 //识别微信客户端 5 $xagent = strtolower($_SERVER['HTTP_USER_AGENT']); 6 $is_weixin = strpos($xagent, 'micromessenger') ? 'weixin' : 'browser' ; 7 8 $task_open = $kekezu->_task_open;
-
E:\kechuangwang\kechuangwang\app_comm.php [ 3 ] » require ( arguments )
0
string(56) "E:\kechuangwang\kechuangwang\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' );
-
E:\kechuangwang\kechuangwang\lib\inc\keke_core_class.php [ 1126 ] » kekezu::get_instance ( )
1121 } 1122 } 1123 $ipath = dirname ( dirname ( dirname ( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "keke_kppw_install.lck"; 1124 file_exists ( $ipath ) == true or header ( "Location: install/index.php" ); 1125 kekezu::register_autoloader (); 1126 $kekezu = &kekezu::get_instance (); 1127 keke_lang_class::load_lang_class ( 'keke_core_class' ); 1128 $_cache_obj = $kekezu->_cache_obj; 1129 $page_obj = $kekezu->_page_obj; 1130 $template_obj = $kekezu->_tpl_obj;
-
E:\kechuangwang\kechuangwang\lib\inc\keke_core_class.php [ 890 ] » kekezu->__construct ( )
885 public $_is_allow_fxx = 1; 886 public $_route; 887 public static function &get_instance() { 888 static $obj = null; 889 if ($obj == null) { 890 $obj = new kekezu (); 891 } 892 return $obj; 893 } 894 function __construct() { 895 $this->init ();
-
E:\kechuangwang\kechuangwang\lib\inc\keke_core_class.php [ 895 ] » kekezu->init ( )
890 $obj = new kekezu (); 891 } 892 return $obj; 893 } 894 function __construct() { 895 $this->init (); 896 keke_lang_class::loadlang ( 'public', 'public' ); 897 } 898 function init() { 899 global $_K, $_lang; 900 define ( "S_ROOT", substr ( dirname ( __FILE__ ), 0, - 7 ) );
-
E:\kechuangwang\kechuangwang\lib\inc\keke_core_class.php [ 915 ] » kekezu->init_industry ( )
910 $this->_cache_obj = new keke_cache_class ( CACHE_TYPE, $_K ['cache_config'] ); 911 $this->_tpl_obj = new keke_tpl_class (); 912 $this->_page_obj = new keke_page_class (); 913 $this->init_out_put (); 914 $this->init_model (); 915 $this->init_industry (); 916 $this->init_oauth (); 917 $this->init_curr (); 918 if (! isset ( $_SESSION ['auid'] ) and $this->_sys_config ['is_close'] == 1 && $_GET ['do'] != 'close' && substr ( $_SERVER ['PHP_SELF'], - 16 ) != '/'.ADMIN_DIRECTORY.'/index.php') { 919 header ( "Location:index.php?do=close" ); 920 }
-
E:\kechuangwang\kechuangwang\lib\inc\keke_core_class.php [ 1017 ] » db_factory::query ( arguments )
0
string(60) "show COLUMNS FROM keke_witkey_industry WHERE Field='totask' "
1012 } 1013 } 1014 } 1015 } 1016 $this->_indus_arr = kekezu::get_table_data ( '*', 'witkey_industry', '', ' CASE WHEN listorder = 0 THEN 9999999 WHEN listorder > 0 THEN listorder END ', '', '', 'indus_id', NULL ); 1017 $arrtotask = db_factory::query("show COLUMNS FROM ".TABLEPRE.'witkey_industry'." WHERE Field='totask' "); 1018 if($arrtotask[0]){ 1019 $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 ); 1020 } 1021 $arrtogoods = db_factory::query("show COLUMNS FROM ".TABLEPRE.'witkey_industry'." WHERE Field='togoods' "); 1022 if($arrtogoods[0]){
-
E:\kechuangwang\kechuangwang\lib\db\db_factory.php [ 111 ] » keke_db->query ( arguments )
0
string(60) "show COLUMNS FROM keke_witkey_industry WHERE Field='totask' "
1
int(0)
106 }else{ 107 !$cached&&self::db_set_cache ($sql, $cache_time); 108 return array(); 109 } 110 }else{ 111 return $result = self::$db_obj->query ( $sql, $is_unbuffer ); 112 } 113 } 114 public static function inserttable($tablename, $insertsqlarr, $returnid = 1, $replace = false) { 115 $db = self::init (); 116 $result = $db->inserttable ( $tablename, $insertsqlarr, $returnid, $replace );
-
E:\kechuangwang\kechuangwang\lib\db\db_factory.php [ 81 ] » mysql_drver->query ( arguments )
0
string(60) "show COLUMNS FROM keke_witkey_industry WHERE Field='totask' "
1
int(0)
76 } 77 public function get_one($sql) { 78 return $this->_mydb->get_one_row ( $sql ); 79 } 80 public function query($sql, $is_unbuffer = 0) { 81 return $this->_mydb->query ( $sql, $is_unbuffer ); 82 } 83 public function __destruct() { 84 $this->_mydb->close (); 85 } 86 }
-
E:\kechuangwang\kechuangwang\lib\db\mysql_driver.php [ 33 ] » mysql_drver->execute_sql ( arguments )
0
string(60) "show COLUMNS FROM keke_witkey_industry WHERE Field='totask' "
1
int(0)
28 } 29 mysql_select_db ( $this->_dbname, $this->_link ) or $this->halt ( 'select database:' . $this->_dbname . ' fail!' ); 30 return $this->_link; 31 } 32 public function query($sql, $is_unbuffer = 0) { 33 $this->execute_sql ( $sql, $is_unbuffer ); 34 $result = array (); 35 while ( ($rs = $this->fetch_array ()) != false ) { 36 $result [] = $rs; 37 } 38 $this->free_result ();
-
E:\kechuangwang\kechuangwang\lib\db\mysql_driver.php [ 153 ] » mysql_drver->halt ( arguments )
0
string(32) "Got error 28 from storage engine"
1
string(60) "show COLUMNS FROM keke_witkey_industry WHERE Field='totask' "
148 } 149 protected function execute_sql($sql, $is_nubuffer = 0) { 150 ! is_resource ( $this->_link ) and $this->dbConnection (); 151 $is_nubuffer == 1 and $query_type = "mysql_unbuffered_query" or $query_type = "mysql_query"; 152 array_push($this->_query_sql, $sql); 153 $this->_last_query_id = $query_type ( $sql, $this->_link ) or $this->halt ( mysql_error (), $sql ); 154 $this->_query_num ++; 155 return $this->_last_query_id; 156 } 157 public function get_query_num() { 158 return $this->_query_num;