-
/www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php : 259 — db_mysqli->connect ()
252 /** 253 * 数据库查询执行方法 254 * @param $sql 要执行的sql语句 255 * @return 查询资源句柄 256 */ 257 private function execute(string $sql) { 258 if(empty($this->link)) { 259 $this->connect(); 260 } 261 while ($this->link->more_results()) { 262 $this->link->next_result(); 263 if ($res = $this->link->store_result()) { 264 $res->free(); 265 } 266 }
-
/www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php : 314 — db_mysqli->execute ()
307 $group = $group == '' ? '' : ' GROUP BY '.$group; 308 $limit = $limit == '' ? '' : ' LIMIT '.$limit; 309 $field = explode(',', $data); 310 array_walk($field, array($this, 'add_special_char')); 311 $data = implode(',', $field); 312 313 $sql = 'SELECT '.$data.' FROM `'.$this->config['database'].'`.`'.$table.'`'.$where.$group.$order.$limit; 314 $this->execute($sql); 315 if(!is_object($this->lastqueryid)) { 316 return $this->lastqueryid; 317 } 318 319 $datalist = array(); 320 while(($rs = $this->fetch_next()) != false) { 321 if($key) {
-
/www/wwwroot/fangwenw.com/cms/libs/classes/model.class.php : 47 — db_mysqli->select ()
40 * @param $order 排序方式 [默认按数据库默认方式排序] 41 * @param $group 分组方式 [默认为空] 42 * @param $key 返回数组按键名排序 43 * @return array 查询结果集数组 44 */ 45 final public function select($where = '', $data = '*', $limit = '', $order = '', $group = '', $key='') { 46 if (is_array($where)) $where = $this->sqls($where); 47 return $this->db->select($data, $this->table_name, $where, $limit, $order, $group, $key); 48 } 49 50 /** 51 * 查询多条数据并分页 52 * @param $where 53 * @param $order 54 * @param $page
-
/www/wwwroot/fangwenw.com/cms/modules/admin/config/hooks.php : 91 — model->select ()
84 $admin_db = pc_base::load_model('admin_model'); 85 $admin_login_db = pc_base::load_model('admin_login_model'); 86 $config = getcache('common','commons'); 87 if (isset($config['safe_use']) && dr_in_array('admin', $config['safe_use'])) { 88 // 长时间未登录的用户就锁定起来 89 if (isset($config['safe_wdl']) && $config['safe_wdl']) { 90 $time = $config['safe_wdl'] * 3600 * 24; 91 $log_lock = $admin_login_db->select('logintime < '.(SYS_TIME - $time)); 92 if ($log_lock) { 93 foreach ($log_lock as $t) { 94 if (ADMIN_FOUNDERS && !dr_in_array($t['uid'], ADMIN_FOUNDERS)) { 95 $admin_db->update(array('islock'=>1), array('userid'=>$t['uid'])); 96 } 97 } 98 }
-
{PHP internal code} — application->{closure} ()
-
/www/wwwroot/fangwenw.com/cms/libs/classes/hooks.class.php : 287 — call_user_func()
-
/www/wwwroot/fangwenw.com/cms/libs/classes/application.class.php : 97 — hooks::trigger ()
90 $this->verify(); 91 // 挂钩点 程序运行之前 92 pc_base::load_sys_class('hooks')::trigger('cms_run'); 93 $controller = $this->load_controller(); 94 // 挂钩点 程序加载之后 95 pc_base::load_sys_class('hooks')::trigger('init'); 96 // 挂钩点 程序初始化之后 97 pc_base::load_sys_class('hooks')::trigger('cms_init'); 98 if (IS_API === 'api') { 99 if(intval(pc_base::load_sys_class('param')::get_cookie('_userid'))) { 100 if(pc_base::load_model('member_model')->get_one(array('userid'=>intval(pc_base::load_sys_class('param')::get_cookie('_userid'))),'islock')['islock']) dr_msg(0, L('user_is_lock', '', 'member')); 101 } 102 $op = pc_base::load_sys_class('input')->get('op') && trim(pc_base::load_sys_class('input')->get('op')) ? trim(pc_base::load_sys_class('input')->get('op')) : dr_msg(0, '操作不能为空'); 103 if (pc_base::load_sys_class('input')->get('callback') && !preg_match('/^[a-zA-Z_][a-zA-Z0-9_]+$/', pc_base::load_sys_class('input')->get('callback'))) ''; 104 if (!preg_match('/([^a-z_]+)/i', $op) && file_exists(CMS_PATH.'api/'.$op.'.php')) {
-
/www/wwwroot/fangwenw.com/cms/libs/classes/application.class.php : 60 — application->init ()
53 if (IS_ADMIN) { 54 // 开启session 55 $this->session(); 56 } 57 if (module_exists('content') && is_file(PC_PATH.'modules/content/config/run.php')) { 58 require PC_PATH.'modules/content/config/run.php'; 59 } 60 $this->init(); 61 // 挂钩点 程序结束之后 62 pc_base::load_sys_class('hooks')::trigger('cms_close'); 63 } 64 65 /** 66 * 调用件事 67 */
-
/www/wwwroot/fangwenw.com/cms/base.php : 469 — application->__construct ()
462 include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php'; 463 $name = $classname; 464 if ($my_path = self::my_path(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php')) { 465 include $my_path; 466 $name = 'MY_'.$classname; 467 } 468 if ($initialize) { 469 $classes[$key] = new $name; 470 } else { 471 $classes[$key] = true; 472 } 473 return $classes[$key]; 474 } else { 475 CI_DEBUG && log_message('debug', '类文件:'.$path.DIRECTORY_SEPARATOR.$classname.'.class.php不存在'); 476 return false;
-
/www/wwwroot/fangwenw.com/cms/base.php : 420 — pc_base::_load_class ()
413 /** 414 * 加载系统类方法 415 * @param string $classname 类名 416 * @param string $path 扩展地址 417 * @param intger $initialize 是否初始化 418 */ 419 public static function load_sys_class($classname, $path = '', $initialize = 1) { 420 return self::_load_class($classname, $path, $initialize); 421 } 422 423 /** 424 * 加载应用类方法 425 * @param string $classname 类名 426 * @param string $m 模块 427 * @param intger $initialize 是否初始化
-
/www/wwwroot/fangwenw.com/cms/base.php : 411 — pc_base::load_sys_class ()
404 405 class pc_base { 406 407 /** 408 * 初始化应用程序 409 */ 410 public static function creat_app() { 411 return self::load_sys_class('application'); 412 } 413 /** 414 * 加载系统类方法 415 * @param string $classname 类名 416 * @param string $path 扩展地址 417 * @param intger $initialize 是否初始化 418 */
-
/www/wwwroot/fangwenw.com/index.php : 40 — pc_base::creat_app ()
33 // 判断安装 34 if (file_exists('install') && is_file(CACHE_PATH.'install.lock')) { 35 dr_dir_delete('install', TRUE); 36 } 37 // 结束,安装之后可以删除此段代码 38 39 // 执行主程序 40 pc_base::creat_app();