/webdata/wwwroot/duorenwei.com/lib/db/mysqli_driver.php[ 272 ]
267 */
268 public function getErrno() {
269 return ($this->_link) ? mysqli_errno ( $this->_link ) : mysqli_errno ();
270 }
271 public function halt($message = '', $sql = '') {
272 throw new keke_exception ( ':error [ :query ]', array (':error' => mysql_error ( $this->_link ), ':query' => $sql ), mysql_errno ( $this->_link ) );
273 exit ();
274 }
275
276 public function special_filed(&$value) {
277 if ('*' == $value || false !== strpos ( $value, '(' ) || false !== strpos ( $value, '.' ) || false !== strpos ( $value, '`' )) {
-
/webdata/wwwroot/duorenwei.com/index.php [ 36 ] » TaskClass::getTaskCashCove ( )
31 } 32 } 33 //取前10个分类 34 $arrNewIndusC_fl = array_slice($arrNewIndusC_fl, 0, 10); 35 //任务区间金额数组 36 $arrCashCoves = TaskClass::getTaskCashCove(); 37 //最新发布动态 38 $arrFeedPubs = kekezu::get_feed("(feedtype='pub_task' or feedtype='pub_service')", "feed_time desc", 10 ); 39 40 $indus_goods_arr = $kekezu->_indus_goods_arr; 41 $arrModelList = $model_list = $kekezu->_model_list;
-
/webdata/wwwroot/duorenwei.com/lib/inc/TaskClass.php [ 22 ] » keke_core_class::get_table_data ( arguments )
0
string(1) "*"
1
string(21) "witkey_task_cash_cove"
2
string(0) ""
3
string(0) ""
4
string(0) ""
5
string(0) ""
6
string(12) "cash_rule_id"
17 * </code> 18 * @author fuzuchang <fuhaojunsf@gmail.com> 19 * @time 2014-3-26下午4:53:46 20 */ 21 public static function getTaskCashCove(){ 22 return kekezu::get_table_data ( "*", "witkey_task_cash_cove", "", "", "", "", "cash_rule_id" ); 23 } 24 25 /** 26 * 检索启用的任务模型数组 27 * @param void
-
/webdata/wwwroot/duorenwei.com/lib/inc/keke_core_class.php [ 620 ] » db_factory::get_table_data ( arguments )
0
string(1) "*"
1
string(21) "witkey_task_cash_cove"
2
string(0) ""
3
string(0) ""
4
string(0) ""
5
string(0) ""
6
string(12) "cash_rule_id"
7
int(0)
615 $config_obj = new $v (); 616 $config_arr = $config_obj->$q ( 1, null ); 617 return $config_arr [0]; 618 } 619 public static function get_table_data($fileds = '*', $table, $where = '', $order = '', $group = '', $limit = '', $pk = '', $cachetime = 0) { 620 return db_factory::get_table_data ( $fileds, $table, $where, $order, $group, $limit, $pk, $cachetime ); 621 } 622 public static function get_task_config($model_id = '') { 623 global $kekezu; 624 if ($model_id) { 625 $where = " where model_id= '$model_id' ";
-
/webdata/wwwroot/duorenwei.com/lib/db/db_factory.php [ 257 ] » keke_db->select ( arguments )
0
string(1) "*"
1
string(21) "witkey_task_cash_cove"
2
string(0) ""
3
string(0) ""
4
string(0) ""
5
string(0) ""
6
string(12) "cash_rule_id"
252 $wh and $where = $wh; 253 $db = self::init (); 254 $sql = $table .$fileds. $where . $pk . $cachetime; 255 if(IS_CACHE){ 256 $cachetime>0||is_null($cachetime) and ($result = self::db_cache ( 1, $sql, $cachetime ) and $cached=1); 257 $result or ($result = $db->select ( $fileds, $table, $where, $order, $group, $limit, $pk ) and $cached=0); 258 if($result&&$result!='QUERY_EMPTY'){ 259 !$cached&&self::db_set_cache ($sql, $cachetime, $result ); 260 return $result; 261 }else{ 262 !$cached&&self::db_set_cache ($sql, $cachetime);
-
/webdata/wwwroot/duorenwei.com/lib/db/db_factory.php [ 106 ] » mysqli_drver->select ( arguments )
0
string(1) "*"
1
string(21) "witkey_task_cash_cove"
2
string(0) ""
3
string(0) ""
4
string(0) ""
5
string(0) ""
6
string(12) "cash_rule_id"
101 } 102 public function get_query_num() { 103 return $this->_mydb->get_query_num (); 104 } 105 public function select($fileds = '*', $table, $where = '', $order = '', $group = '', $limit = '', $pk = '') { 106 return $this->_mydb->select ( $fileds, $table, $where, $order, $group, $limit, $pk ); 107 } 108 public function getCount($sql, $row = 0, $filed = null) { 109 return $this->_mydb->getCount ( $sql, $row, $filed ); 110 } 111 public function get_one($sql) {
-
/webdata/wwwroot/duorenwei.com/lib/db/mysqli_driver.php [ 191 ] » mysqli_drver->execute_sql ( arguments )
0
string(51) "SELECT * FROM `drwweb`.`keke_witkey_task_cash_cove`"
186 array_walk ( $filed, array ($this, 'special_filed' ) ); 187 $fileds = implode ( ',', $filed ); 188 } 189 $sql = 'SELECT ' . $fileds . ' FROM `' . $this->_dbname . '`.`' . TABLEPRE . $table . '`' . $where . $group . $order . $limit; 190 //echo '111='."$sql"."</br>"; 191 $this->execute_sql ( $sql ); 192 $datalist = array (); 193 while ( ($rs = $this->fetch_array ()) != false ) { 194 $pk and $datalist [$rs [$pk]] = $rs or $datalist [] = $rs; 195 } 196 $this->free_result ();
-
/webdata/wwwroot/duorenwei.com/lib/db/mysqli_driver.php [ 214 ] » mysqli_drver->dbConnection ( )
209 $this->free_result (); 210 return $res; 211 212 } 213 protected function execute_sql($sql, $is_nubuffer = 0) { 214 ! is_resource ( $this->_link ) and $this->dbConnection (); 215 216 $is_nubuffer == 1 and $query_type = "mysqli_store_result" or $query_type = "mysqli_query"; 217 array_push($this->_query_sql, $sql); 218 $this->_last_query_id = $query_type ($this->_link,$sql) or $this->halt ( mysql_error (), $sql ); 219 $this->_query_num ++;
-
/webdata/wwwroot/duorenwei.com/lib/db/mysqli_driver.php [ 33 ] » mysqli_drver->halt ( arguments )
0
string(26) "connect mysql server fail!"
28 * 29 * @return resource 30 */ 31 public function dbConnection() { 32 function_exists('mysqli_connect') or exit('function mysqli is not support!'); 33 $this->_link = mysqli_connect ( $this->_dbhost, $this->_dbuser, $this->_dbpass) or $this->halt ( 'connect mysql server fail!' ); 34 if($this->version()>'4.1'){ 35 $this->_dbcharset and $serverset = "character_set_connection={$this->_dbcharset}, character_set_results={$this->_dbcharset}, character_set_client=binary"; 36 $this->version() > '5.0.1' and $serverset .= ((empty($serverset) ? '' : ',').'sql_mode=\'\'') ; 37 $serverset and mysqli_query($this->_link,"SET $serverset"); 38 }