-
/mnt/wwwroot/test.dbaplus.cn/cms/libs/classes/db_mysqli.class.php : 319 — db_mysqli->execute ()
312 $group = $group == '' ? '' : ' GROUP BY '.$group; 313 $limit = $limit == '' ? '' : ' LIMIT '.$limit; 314 $field = explode(',', $data); 315 array_walk($field, array($this, 'add_special_char')); 316 $data = implode(',', $field); 317 318 $sql = 'SELECT '.$data.' FROM `'.$this->config['database'].'`.`'.$table.'`'.$where.$group.$order.$limit; 319 $this->execute($sql); 320 if(!is_object($this->lastqueryid)) { 321 return $this->lastqueryid; 322 } 323 324 $datalist = array(); 325 while(($rs = $this->fetch_next()) != false) { 326 if($key) { -
/mnt/wwwroot/test.dbaplus.cn/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 -
/mnt/wwwroot/test.dbaplus.cn/cms/modules/content/classes/content_tag.class.php : 110 — model->select ()
103 if ($page + $pagesize > $total) { 104 log_message('debug', 'maxlimit设置最大显示'.$data['maxlimit'].'条,当前('.$total.')已超出'); 105 return; 106 } 107 } 108 } 109 110 $return = $this->db->select($sql, '*', $data['limit'], $order, '', 'id'); 111 112 //调用副表的数据 113 if (isset($data['moreinfo']) && intval($data['moreinfo']) == 1) { 114 foreach ($return as $k=>$v) { 115 if (isset($v['id']) && !empty($v['id'])) { 116 $this->db->table_name = $this->db->table_name.'_data_'.$v['tableid']; 117 $data_rs = $this->db->get_one(array('id'=>$v['id'])); -
/mnt/wwwroot/test.dbaplus.cn/caches/caches_template/dbaplus/pc/content/index.php : 10 — content_tag->lists ()
3 <div class="container"> 4 <div class="row"> 5 <div class="col-md-8 col-xs-12"> 6 <div id="carousel-example-generic" class="carousel slide banner-sider" data-ride="carousel"><!--banner--> 7 <!-- Indicators --> 8 <div class="mask"> 9 <ol class="carousel-indicators pull-right"> 10 <?php if(defined('IS_ADMIN') && IS_ADMIN && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=5aa9310fc2c8279f978e25e6b7d544ec&action=lists&catid=37&order=listorder+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'37','order'=>'listorder DESC','limit'=>'10',));}?> 11 <?php $i=0?> 12 <?php $n=1; if (isset($data) && is_array($data) && $data) { $key_v=-1;$count_v=dr_count($data);foreach ($data as $key=>$v) { $key_v++; $is_first=$key_v==0 ? 1 : 0;$is_last=$count_v==$key_v+1 ? 1 : 0; ?> 13 <li data-target="#carousel-example-generic" data-slide-to="<?php echo $i;?>" class="<?php if($i == 0) { ?>active<?php } ?>"></li> 14 <?php $i++?> 15 <?php $n++;}}unset($n); ?> 16 <?php if(defined('IS_ADMIN') && IS_ADMIN && !defined('HTML')) {echo '</div>';}?> 17 </ol> -
include /mnt/wwwroot/test.dbaplus.cn/cms/libs/classes/service.class.php — include()
-
/mnt/wwwroot/test.dbaplus.cn/cms/modules/content/index.php : 47 — service->display ()
40 '_userid' => $this->_userid, 41 '_username' => $this->_username, 42 '_groupid' => $this->_groupid, 43 'CATEGORYS' => $CATEGORYS, 44 ]); 45 pc_base::load_sys_class('hooks')::trigger('module_index'); 46 define('IS_HTML', dr_site_info('ishtml', $siteid)); 47 pc_base::load_sys_class('service')->display('content','index',$default_style); 48 } 49 //列表页 50 public function lists() { 51 if (IS_POST) { 52 dr_json(0, L('禁止提交,请检查提交地址是否有误')); 53 } 54 $catid = intval($this->input->get('catid')); -
/mnt/wwwroot/test.dbaplus.cn/cms/libs/classes/application.class.php : 147 — index->init ()
140 throw new \OutOfBoundsException('API处理程序不存在<br>检查此文件是否存在:'.CMS_PATH.'api/'.$op.'.php,检查地址是否正确,注意控制器文件'); 141 } 142 } else { 143 if (method_exists($controller, ROUTE_A)) { 144 if (preg_match('/^[_]/i', ROUTE_A)) { 145 dr_exit_msg(0, 'You are visiting the action is to protect the private action'); 146 } else { 147 call_user_func(array($controller, ROUTE_A)); 148 if (IS_ADMIN && CI_DEBUG && !IS_AJAX) { 149 if (!in_array(ROUTE_M, array('admin')) || !in_array(ROUTE_C, array('index')) && !in_array(ROUTE_A, array('public_main'))) { 150 $this->debug->message(); 151 } 152 } 153 if (!IS_ADMIN && IS_DEV && !IS_AJAX) { 154 $this->debug->message(); -
/mnt/wwwroot/test.dbaplus.cn/cms/libs/classes/application.class.php : 90 — application->init ()
83 } 84 pc_base::load_sys_class('service')->assign([ 85 'member' => $this->member, 86 ]); 87 if (module_exists('content') && is_file(PC_PATH.'modules/content/config/run.php')) { 88 require PC_PATH.'modules/content/config/run.php'; 89 } 90 $this->init(); 91 // 挂钩点 程序结束之后 92 pc_base::load_sys_class('hooks')::trigger('cms_close'); 93 } 94 95 /** 96 * 调用件事 97 */ -
/mnt/wwwroot/test.dbaplus.cn/cms/base.php : 546 — application->__construct ()
539 include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php'; 540 $name = $classname; 541 if ($my_path = self::my_path(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php')) { 542 include $my_path; 543 $name = 'MY_'.$classname; 544 } 545 if ($initialize) { 546 $classes[$key] = new $name; 547 } else { 548 $classes[$key] = true; 549 } 550 return $classes[$key]; 551 } else { 552 CI_DEBUG && log_message('debug', '类文件:'.$path.DIRECTORY_SEPARATOR.$classname.'.class.php不存在'); 553 return false; -
/mnt/wwwroot/test.dbaplus.cn/cms/base.php : 497 — pc_base::_load_class ()
490 /** 491 * 加载系统类方法 492 * @param string $classname 类名 493 * @param string $path 扩展地址 494 * @param intger $initialize 是否初始化 495 */ 496 public static function load_sys_class($classname, $path = '', $initialize = 1) { 497 return self::_load_class($classname, $path, $initialize); 498 } 499 500 /** 501 * 加载应用类方法 502 * @param string $classname 类名 503 * @param string $m 模块 504 * @param intger $initialize 是否初始化 -
/mnt/wwwroot/test.dbaplus.cn/cms/base.php : 488 — pc_base::load_sys_class ()
481 482 class pc_base { 483 484 /** 485 * 初始化应用程序 486 */ 487 public static function creat_app() { 488 return self::load_sys_class('application'); 489 } 490 /** 491 * 加载系统类方法 492 * @param string $classname 类名 493 * @param string $path 扩展地址 494 * @param intger $initialize 是否初始化 495 */ -
/mnt/wwwroot/test.dbaplus.cn/index.php : 43 — pc_base::creat_app ()
36 // 判断安装 37 if (file_exists('install') && is_file(CACHE_PATH.'install.lock')) { 38 dr_dir_delete('install', TRUE); 39 } 40 // 结束,安装之后可以删除此段代码 41 42 // 执行主程序 43 pc_base::creat_app();