-
C:\phpstudy_pro\WWW\cms\libs\classes\db_mysqli.class.php : 270 — mysqli->query ( arguments )
$query
SELECT * FROM `jirehuo`.`by_article` WHERE status=99 AND catid='17' AND bookid='1' AND partid='1' ORDER BY listorder ASC,id ASC LIMIT 2000
$resultmode
0
263 if ($res = $this->link->store_result()) { 264 $res->free(); 265 } 266 } 267 $startTime = microtime(true); 268 $this->lastQuery = $sql; 269 try { 270 $this->lastqueryid = $this->link->query($this->prepQuery($sql), $this->resultMode); 271 } catch (mysqli_sql_exception $e) { 272 log_message('error', (string) $e); 273 if ($this->config['debug']) { 274 throw $e; 275 } 276 } 277 pc_base::load_sys_class('debug')::addmsg($sql, 1, $startTime);
-
C:\phpstudy_pro\WWW\cms\libs\classes\db_mysqli.class.php : 314 — db_mysqli->execute ( arguments )
$sql
SELECT * FROM `jirehuo`.`by_article` WHERE status=99 AND catid='17' AND bookid='1' AND partid='1' ORDER BY listorder ASC,id ASC LIMIT 2000
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) {
-
C:\phpstudy_pro\WWW\cms\libs\classes\model.class.php : 47 — db_mysqli->select ( arguments )
$data
*
$table
by_article
$where
WHERE status=99 AND catid='17' AND bookid='1' AND partid='1'
$limit
LIMIT 2000
$order
ORDER BY listorder ASC,id ASC
$group
$key
id
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
-
C:\phpstudy_pro\WWW\cms\modules\content\classes\content_tag.class.php : 515 — model->select ( arguments )
$where
status=99 AND catid='17' AND bookid='1' AND partid='1'
$data
*
$limit
2000
$order
listorder ASC,id ASC
$group
$key
id
508 if ($page + $pagesize > $total) { 509 log_message('debug', 'maxlimit设置最大显示'.$data['maxlimit'].'条,当前('.$total.')已超出'); 510 return; 511 } 512 } 513 } 514 515 $return = $this->db->select($sql, '*', $data['limit'], $order, '', 'id'); 516 517 //调用副表的数据 518 if (isset($data['moreinfo']) && intval($data['moreinfo']) == 1) { 519 foreach ($return as $k=>$v) { 520 if (isset($v['id']) && !empty($v['id'])) { 521 $this->db->table_name = $this->db->table_name.'_data_'.$v['tableid']; 522 $data_rs = $this->db->get_one(array('id'=>$v['id']));
-
C:\phpstudy_pro\WWW\caches\caches_template\default\pc\content\show_part.php : 18 — content_tag->lists ( arguments )
$data
Array ( [catid] => 17 [bookid] => 1 [partid] => 1 [order] => listorder ASC,id ASC [limit] => 2000 )
11 </div> 12 <div class="blank1"></div> 13 <div id="zhigujin"> 14 <div id="zleft"> 15 <?php if ($fn_include = pc_base::load_sys_class('service')->_include("book","info")) include($fn_include); ?> 16 <div class="blank1"></div> 17 <?php $chaptercatid = 17;?> 18 <?php if(defined('IS_ADMIN') && IS_ADMIN && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=92d8d3ba80638fb4140a86c9427fad8b&action=lists&catid=%24chaptercatid&bookid=%24bookid&partid=%24id&order=listorder+ASC%2Cid+ASC&num=2000&return=chapters\"><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')) {$chapters = $content_tag->lists(array('catid'=>$chaptercatid,'bookid'=>$bookid,'partid'=>$id,'order'=>'listorder ASC,id ASC','limit'=>'2000',));}?> 19 <?php if($chapters) { ?> 20 <div class="partlist"> 21 <div class="ptit"><?php echo $title;?></div> 22 <ul> 23 <?php $n=1; if (isset($chapters) && is_array($chapters) && $chapters) { $key_cp=-1;$count_cp=dr_count($chapters);foreach ($chapters as $cp) { $key_cp++; $is_first=$key_cp==0 ? 1 : 0;$is_last=$count_cp==$key_cp+1 ? 1 : 0;?> 24 <li class="lie<?php echo $booklie;?>"><a href="<?php echo $cp['url']; ?>"><?php echo $cp['title']; ?></a></li> 25 <?php $n++;}}unset($n); ?>
-
include C:\phpstudy_pro\WWW\cms\libs\classes\service.class.php — include()
-
C:\phpstudy_pro\WWW\cms\modules\content\index.php : 543 — service->display ( arguments )
$module
content
$template
show_part
536 } else { 537 define('IS_HTML', 0); 538 } 539 } 540 }else{ 541 define('IS_HTML', $CAT['setting']['content_ishtml']); 542 } 543 pc_base::load_sys_class('service')->display('content',$template); 544 } 545 /** 546 * 模型搜索 547 */ 548 public function search($catid) { 549 if (IS_POST) { 550 dr_json(0, L('禁止提交,请检查提交地址是否有误'));
-
C:\phpstudy_pro\WWW\cms\libs\classes\application.class.php : 120 — index->show ()
113 throw new \OutOfBoundsException('API处理程序不存在<br>检查此文件是否存在:'.CMS_PATH.'api/'.$op.'.php,检查地址是否正确,注意控制器文件'); 114 } 115 } else { 116 if (method_exists($controller, ROUTE_A)) { 117 if (preg_match('/^[_]/i', ROUTE_A)) { 118 dr_exit_msg(0, 'You are visiting the action is to protect the private action'); 119 } else { 120 call_user_func(array($controller, ROUTE_A)); 121 if (IS_ADMIN && CI_DEBUG && !IS_AJAX) { 122 if (!in_array(ROUTE_M, array('admin')) || !in_array(ROUTE_C, array('index')) && !in_array(ROUTE_A, array('public_main'))) { 123 $this->debug->message(); 124 } 125 } 126 if (!IS_ADMIN && IS_DEV && !IS_AJAX) { 127 $this->debug->message();
-
C:\phpstudy_pro\WWW\cms\libs\classes\application.class.php : 63 — application->init ()
56 if ((defined('IS_MOBILE') && IS_MOBILE) || (is_mobile(SITE_ID) && dr_site_info('mobileauto', SITE_ID))) { 57 // 移动端模板 // 开启自动识别移动端 58 pc_base::load_sys_class('service')->init('mobile'); 59 } else { 60 // 默认情况下pc模板 61 pc_base::load_sys_class('service')->init('pc'); 62 } 63 $this->init(); 64 // 挂钩点 程序结束之后 65 pc_base::load_sys_class('hooks')::trigger('cms_close'); 66 } 67 68 /** 69 * 调用件事 70 */
-
C:\phpstudy_pro\WWW\cms\base.php : 471 — application->__construct ()
464 include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php'; 465 $name = $classname; 466 if ($my_path = self::my_path(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php')) { 467 include $my_path; 468 $name = 'MY_'.$classname; 469 } 470 if ($initialize) { 471 $classes[$key] = new $name; 472 } else { 473 $classes[$key] = true; 474 } 475 return $classes[$key]; 476 } else { 477 CI_DEBUG && log_message('debug', '类文件:'.$path.DIRECTORY_SEPARATOR.$classname.'.class.php不存在'); 478 return false;
-
C:\phpstudy_pro\WWW\cms\base.php : 422 — pc_base::_load_class ( arguments )
$classname
application
$path
libs\classes
$initialize
1
415 /** 416 * 加载系统类方法 417 * @param string $classname 类名 418 * @param string $path 扩展地址 419 * @param intger $initialize 是否初始化 420 */ 421 public static function load_sys_class($classname, $path = '', $initialize = 1) { 422 return self::_load_class($classname, $path, $initialize); 423 } 424 425 /** 426 * 加载应用类方法 427 * @param string $classname 类名 428 * @param string $m 模块 429 * @param intger $initialize 是否初始化
-
C:\phpstudy_pro\WWW\cms\base.php : 413 — pc_base::load_sys_class ( arguments )
$classname
application
406 407 class pc_base { 408 409 /** 410 * 初始化应用程序 411 */ 412 public static function creat_app() { 413 return self::load_sys_class('application'); 414 } 415 /** 416 * 加载系统类方法 417 * @param string $classname 类名 418 * @param string $path 扩展地址 419 * @param intger $initialize 是否初始化 420 */
-
C:\phpstudy_pro\WWW\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();