E:\backup\KPPW\base\db_factory\mysql_driver.php[ 19 ]
14 $this->_dbhost = DataBase::$dbhost;
15 $this->_dbname = DataBase::$dbname;
16 $this->_dbuser = DataBase::$dbuser;
17 $this->_dbpass = DataBase::$dbpass;
18 $this->_dbcharset = DataBase::$dbcharset;
19 $this->_link = mysql_connect ( $this->_dbhost, $this->_dbuser, $this->_dbpass );
20 }
21
22 public function dbConnection() {
23 if (! $this->_link) {
24 $this->halt ( "数据连接错误" );
-
E:\backup\KPPW\base\db_factory\mysql_driver.php [ 19 ] » error_handler ( )
14 $this->_dbhost = DataBase::$dbhost; 15 $this->_dbname = DataBase::$dbname; 16 $this->_dbuser = DataBase::$dbuser; 17 $this->_dbpass = DataBase::$dbpass; 18 $this->_dbcharset = DataBase::$dbcharset; 19 $this->_link = mysql_connect ( $this->_dbhost, $this->_dbuser, $this->_dbpass ); 20 } 21 22 public function dbConnection() { 23 if (! $this->_link) { 24 $this->halt ( "数据连接错误" ); -
E:\backup\KPPW\base\db_factory\db_factory.php [ 31 ] » mysql_drver->__construct ( arguments )
0string(9) "localhost"1string(4) "root"2string(8) "1qaz2wsx"26 break; 27 default : 28 $this->_dbtype = $dbtype; 29 if (empty ( $dbs [$dbtype] )) { 30 include_once 'mysql_driver.php'; 31 return $dbs [$dbtype] = new mysql_drver (); 32 } else { 33 return $dbs [$dbtype]; 34 } 35 36 break; -
E:\backup\KPPW\base\db_factory\db_factory.php [ 8 ] » keke_db->create ( )
3 class keke_db { 4 private $_db_provider; 5 private $_dbtype; 6 private $_mydb; 7 function __construct($dbtype = "mysql") { 8 $this->_mydb = $this->create ( $dbtype ); 9 } 10 public function &create($dbtype) { 11 static $dbs; 12 switch ($dbtype) { 13 case "odbc" : -
E:\backup\KPPW\base\db_factory\db_factory.php [ 118 ] » keke_db->__construct ( arguments )
0string(5) "mysql"113 return $result; 114 } else { 115 return $result; 116 } 117 } else { 118 $db = new keke_db ( $dbtype ); 119 return $db->query ( $sql ); 120 } 121 122 } 123 public static function inserttable($tablename, $insertsqlarr, $returnid = 0, $replace = false) { -
E:\backup\KPPW\lib\inc\keke_core_class.php [ 477 ] » db_factory::query ( arguments )
0string(5) "mysql"472 $sql .= $isoneline ? "limit 0,1" : ""; 473 } else { 474 $sql .= $rows ? "limit 0,$rows" : ""; 475 } 476 477 $d_list = db_factory::query ( $sql ); 478 479 if ($isoneline) { 480 $d_list = $d_list [0]; 481 } elseif ($pkkeyname) { 482 $temp = array (); -
E:\backup\KPPW\lib\inc\keke_core_class.php [ 426 ] » keke_core_class::get_table_data ( arguments )
0string(53) "select * from keke_witkey_model where model_status=1 "421 self::keke_require_once ( S_ROOT . '/base/db_factory/db_factory.php' ); 422 } 423 } 424 global $i_model; 425 if (! $i_model) { 426 $model_arr = self::get_table_data ( 'witkey_model', 'model_status=1', '', null, 'model_id' ); 427 foreach ( $model_arr as $value ) { 428 $dir = $value ['model_code']; 429 $f1 = S_ROOT . '/task/' . $dir . '/lib/' . $class_name . '.php'; 430 $f2 = S_ROOT . '/task/' . $dir . '/model/' . $class_name . '.php'; 431 if (file_exists ( $f1 )) { -
{PHP internal call} » keke_core_class::autoload ( arguments )
0string(12) "witkey_model"1string(14) "model_status=1"2string(0) ""3NULL
4string(8) "model_id" -
E:\backup\KPPW\model\Keke_witkey_basic_config_class.php [ 51 ] » spl_autoload_call ( arguments )
0string(10) "db_factory" -
E:\backup\KPPW\lib\inc\keke_core_class.php [ 455 ] » Keke_witkey_basic_config_class->keke_witkey_basic_config_class ( arguments )
0string(10) "db_factory"450 public static function get_config($configtype) { 451 452 $v = "Keke_witkey_{$configtype}_config_class"; 453 $q = "query_keke_witkey_{$configtype}_config"; 454 455 $config_obj = new $v(); 456 457 $config_arr = $config_obj->$q ( 1, null ); 458 return $config_arr [0]; 459 } 460 public static function get_table_data($tablename, $where = '', $order = '', $cachetime = 0, $pkkeyname = '', $rows = '', $isoneline = '') { -
E:\backup\KPPW\app_comm.php [ 16 ] » keke_core_class::get_config ( )
11 require (dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . '/lib/inc/keke_base_class.php'); 12 require (dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . '/lib/inc/keke_core_class.php'); 13 14 if (! $i_model) { 15 16 $basic_config = kekezu::get_config ( 'basic' ); 17 $model_list = kekezu::get_table_data ( 'witkey_model', 'model_status=1', 'listorder', null, 'model_id' ); 18 $nav_list = kekezu::get_table_data ( "witkey_nav", "ishide!=1", "listorder", null, "nav_id" ); 19 $default_template = kekezu::get_tpl (); 20 21 } -
E:\backup\KPPW\index.php [ 7 ] » include ( arguments )
0string(5) "basic"2 define ( "IN_KEKE", TRUE ); 3 if (! file_exists ( "data/keke_kppw_install.lck" )) 4 header ( "Location: install/index.php" ); 5 6 7 include 'app_comm.php'; 8 9 10 11 $dos = array ('show_menu','index', 'register', 'seccode', 'login', 'logout', 'get_password', 'news_list', 'help', 'help_list', 'help_info', 'talent', 'talent_list', 'news_info', 'case_list', 'search', 'search_list','task_preview', 'task_op', 'message', 'secode_demo', 'release', 'xs_release', 'zb_release', 'ajax_upload', 'ajax_score', 'ajax_indus', 'user', 'space', 'map', 'mark', 'task', 'task_list', 'level_rule', 'shop', 'footer', 'task_indus_list','indus','agreement','report','seccode'); 12