-
/www/wwwroot/en.andre.com.cn/cms/libs/classes/db_mysqli.class.php : 142 — db_mysqli->fetch_next ()
135 $limit = ' LIMIT 1'; 136 $field = explode( ',', $data); 137 array_walk($field, array($this, 'add_special_char')); 138 $data = implode(',', $field); 139 140 $sql = 'SELECT '.$data.' FROM `'.$this->config['database'].'`.`'.$table.'`'.$where.$group.$order.$limit; 141 $this->execute($sql); 142 $res = $this->fetch_next(); 143 $this->free_result(); 144 return $res; 145 } 146 147 /** 148 * 遍历查询结果集 149 * @param $type 返回结果集类型 -
/www/wwwroot/en.andre.com.cn/cms/libs/classes/model.class.php : 80 — db_mysqli->get_one ()
73 * @param $data 需要查询的字段值[例`name`,`gender`,`birthday`] 74 * @param $order 排序方式 [默认按数据库默认方式排序] 75 * @param $group 分组方式 [默认为空] 76 * @return array/null 数据查询结果集,如果不存在,则返回空 77 */ 78 final public function get_one($where = '', $data = '*', $order = '', $group = '') { 79 if (is_array($where)) $where = $this->sqls($where); 80 return $this->db->get_one($data, $this->table_name, $where, $order, $group); 81 } 82 83 /** 84 * 直接执行sql查询 85 * @param $sql 查询sql语句 86 * @return boolean/query resource 如果为查询语句,返回资源句柄,否则返回true/false 87 */ -
/www/wwwroot/en.andre.com.cn/cms/libs/classes/model.class.php : 143 — model->get_one ()
136 } 137 138 /** 139 * 计算记录数 140 * @param string/array $where 查询条件 141 */ 142 final public function count($where = '') { 143 $r = $this->get_one($where, "COUNT(*) AS num"); 144 return $r['num']; 145 } 146 147 /** 148 * 将数组转换为SQL语句 149 * @param array $where 要生成的数组 150 * @param string $font 连接串。 -
/www/wwwroot/en.andre.com.cn/cms/modules/content/classes/content_tag.class.php : 58 — model->count ()
51 $sql = "status=99 AND catid='$catid'"; 52 } 53 } 54 if(isset($data['maxsize']) && $data['maxsize'] && (int)$data['maxsize'] > 0) { 55 list($start, $pagesize) = explode(",", $data['limit']); 56 return min($pagesize * $data['maxsize'], $this->db->count($sql)); 57 } 58 return $this->db->count($sql); 59 } 60 } 61 62 /** 63 * 列表页标签 64 * @param $data 65 */ -
/www/wwwroot/en.andre.com.cn/caches/caches_template/andelien/content/index.php : 30 — content_tag->count ()
23 <div class="news_info container c"> 24 <div class="img_tit fl"> 25 <a href=""><img src="images/title_img.gif"></a> 26 </div> 27 <div class="box"> 28 <div class="t_news"> 29 <ul class="news_li"> 30 <?php if(defined('IS_ADMIN') && IS_ADMIN && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=79aff3912bb38e2a49cead223017b4c6&action=lists&catid=24&num=5&order=listorder+ASC+%2C+inputtime+DESC&page=%24page&moreinfo=1\"><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')) {$cat = getcache('category_content_'.$siteid,'commons');$setting = dr_string2array($cat[$catid]['setting']);if ((int)$setting['ishtml']) {$pagesize = (int)$setting['pagesize'] ? (int)$setting['pagesize'] : 10;} else {$pagesize = 5;}$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;if (!defined('HTML')) {$content_total = $content_tag->count(array('catid'=>'24','order'=>'listorder ASC , inputtime DESC','moreinfo'=>'1','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);}$data = $content_tag->lists(array('catid'=>'24','order'=>'listorder ASC , inputtime DESC','moreinfo'=>'1','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?> 31 <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?> 32 <li><a href="<?php echo $r["dl"];?>"><?php echo $r["title"];?><span><?php echo date("Y-m-d",$r["inputtime"]);?></span></a></li> 33 <?php $n++;}unset($n); ?> 34 <?php if(defined('IS_ADMIN') && IS_ADMIN && !defined('HTML')) {echo '</div>';}?> 35 </ul> 36 <ul class="swap"></ul> 37 </div> -
include /www/wwwroot/en.andre.com.cn/cms/modules/content/index.php — include()
-
/www/wwwroot/en.andre.com.cn/cms/libs/classes/application.class.php : 57 — index->init ()
50 set_error_handler([$this->debug, 'errorHandler']); 51 register_shutdown_function([$this->debug, 'shutdownHandler']); 52 $controller = $this->load_controller(); 53 if (method_exists($controller, ROUTE_A)) { 54 if (preg_match('/^[_]/i', ROUTE_A)) { 55 exit('You are visiting the action is to protect the private action'); 56 } else { 57 call_user_func(array($controller, ROUTE_A)); 58 if (IS_ADMIN && CI_DEBUG && !IS_AJAX) { 59 if (!in_array(ROUTE_M, array('admin')) || !in_array(ROUTE_C, array('index')) && !in_array(ROUTE_A, array('public_main'))) { 60 $this->debug->message(); 61 } 62 } 63 if (!IS_ADMIN && IS_DEV && !IS_AJAX) { 64 $this->debug->message(); -
/www/wwwroot/en.andre.com.cn/cms/libs/classes/application.class.php : 42 — application->init ()
35 define('IS_MEMBER', TRUE); 36 } else { 37 define('IS_MEMBER', FALSE); 38 } 39 } else { 40 define('IS_MEMBER', FALSE); 41 } 42 $this->init(); 43 } 44 45 /** 46 * 调用件事 47 */ 48 private function init() { 49 set_exception_handler([$this->debug, 'exceptionHandler']); -
/www/wwwroot/en.andre.com.cn/cms/base.php : 451 — application->__construct ()
444 include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php'; 445 $name = $classname; 446 if ($my_path = self::my_path(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php')) { 447 include $my_path; 448 $name = 'MY_'.$classname; 449 } 450 if ($initialize) { 451 $classes[$key] = new $name; 452 } else { 453 $classes[$key] = true; 454 } 455 // 站群系统接入 456 if (is_file(CMS_PATH.'api/fclient/sync.php')) { 457 $sync = require CMS_PATH.'api/fclient/sync.php'; 458 if ($sync['status'] == 4) { -
/www/wwwroot/en.andre.com.cn/cms/base.php : 402 — pc_base::_load_class ()
395 /** 396 * 加载系统类方法 397 * @param string $classname 类名 398 * @param string $path 扩展地址 399 * @param intger $initialize 是否初始化 400 */ 401 public static function load_sys_class($classname, $path = '', $initialize = 1) { 402 return self::_load_class($classname, $path, $initialize); 403 } 404 405 /** 406 * 加载应用类方法 407 * @param string $classname 类名 408 * @param string $m 模块 409 * @param intger $initialize 是否初始化 -
/www/wwwroot/en.andre.com.cn/cms/base.php : 393 — pc_base::load_sys_class ()
386 387 class pc_base { 388 389 /** 390 * 初始化应用程序 391 */ 392 public static function creat_app() { 393 return self::load_sys_class('application'); 394 } 395 /** 396 * 加载系统类方法 397 * @param string $classname 类名 398 * @param string $path 扩展地址 399 * @param intger $initialize 是否初始化 400 */ -
/www/wwwroot/en.andre.com.cn/index.php : 39 — pc_base::creat_app ()
32 } 33 // 判断安装 34 if (file_exists('install') && is_file(CACHE_PATH.'install.lock')) { 35 dr_dir_delete('install', TRUE); 36 } 37 // 结束,安装之后可以删除此段代码 38 39 pc_base::creat_app(); 40 ?>