起名大全
}
}
}
// 评论链接格式化
public function comment_url($cid = 0, $id = 0, $page = FALSE) {
//使用相对URL
if(isset($this->cfg['url_path']) && !empty($this->cfg['url_path'])){
$this->cfg['weburl'] = $this->cfg['webdir'];
}
if(empty($_ENV['_config']['lecms_parseurl'])) {
$s = $page ? '-page-{page}' : '';
return $this->cfg['weburl'].'index.php?comment--cid-'.$cid.'-id-'.$id.$s.$_ENV['_config']['url_suffix'];
}else{
return $this->cfg['weburl'].$this->cfg['link_comment_pre'].$cid.'_'.$id.($page ? '_{page}' : '').$_ENV['_config']['url_suffix'];
}
}
// 内容链接格式化
public function content_url(&$content, $mid = 2, $page = FALSE, $extra = array()) {
$url = '';
$link_show_end = isset($this->cfg['link_show_end']) ? $this->cfg['link_show_end'] : $_ENV['_config']['url_suffix'];
$id = isset($content['id']) ? (int)$content['id'] : 0;
$cid = isset($content['cid']) ? (int)$content['cid'] : 0;
$alias = isset($content['alias']) ? $content['alias'] : '';
empty($alias) && $alias = $cid.'_'.$id;
$dateline = isset($content['dateline']) ? (int)$content['dateline'] : 0;
//使用相对URL
if(isset($this->cfg['url_path']) && !empty($this->cfg['url_path'])){
$this->cfg['weburl'] = $this->cfg['webdir'];
}
if(empty($id) || empty($cid)){
return '';
}
if(empty($_ENV['_config']['lecms_parseurl'])) {
$url .= $this->cfg['weburl'].'index.php?show--cid-'.$cid.'-id-'.$id.($page ? '-page-{page}' : '').$_ENV['_config']['url_suffix'];
}else{
switch($this->cfg['link_show_type']) {
case 1: //数字型
$url .= $this->cfg['weburl'].$cid.'/'.$id.$link_show_end;
break;
case 2: //推荐型
if(!isset($this->cfg['cate_arr'][$cid])){return '';}
$url .= $this->cfg['weburl'].$this->cfg['cate_arr'][$cid].'/'.$id.$link_show_end;
break;
case 3: //别名型
$url .= $this->cfg['weburl'].$alias.$link_show_end;
break;
case 4: //加密型
$url .= $this->cfg['weburl'].encrypt($cid.'_'.$id).$link_show_end;
break;
case 8: //HashId,放前面 提高命中率
$url .= $this->cfg['weburl'].hashids_encrypt($cid,$id).$link_show_end;
break;
case 5: //模型ID_数字型
if($mid > 2){
$url .= $this->cfg['weburl'].$mid.'_'.$id.$link_show_end;
}else{
$url .= $this->cfg['weburl'].$id.$link_show_end;
}
break;
case 6: //分类别名+内容别名型
if(!isset($this->cfg['cate_arr'][$cid])){return '';}
$url .= $this->cfg['weburl'].$this->cfg['cate_arr'][$cid].'/'.$alias.$link_show_end;
break;
case 7: //灵活型
$url .= $this->cfg['weburl'].strtr($this->cfg['link_show'], array(
'{cid}' => $cid,
'{mid}' => $mid,
'{id}' => $id,
'{alias}' => $alias,
'{cate_alias}' => isset($this->cfg['cate_arr'][$cid]) ? $this->cfg['cate_arr'][$cid] : '',
'{password}' => encrypt($cid.'_'.$id),
'{ymd}' => date('Ymd', $dateline),
'{y}' => date('Y', $dateline),
'{m}' => date('m', $dateline),
'{d}' => date('d', $dateline),
'{auth_key}' => substr(md5($_ENV['_config']['auth_key']), 0, 6),
'{hashids}' => hashids_encrypt($cid,$id)
));
break;
}
if($page){
$url .= '&page={page}';
}
}
return $url;
}
//用户模块相关URL,只涉及 user-xxx 或者 my-xxx(为了兼容旧版本的插件使用该函数, 新的开发请使用 urls_model里面的该函数)
public function user_url($action = 'index', $control = 'user', $page = false, $extra = array()){
//使用相对URL
if(isset($this->cfg['url_path']) && !empty($this->cfg['url_path'])){
$this->cfg['weburl'] = $this->cfg['webdir'];
}
$allow_control = array('user', 'my');
if(!in_array($control, $allow_control)){
return '';
}
$s = '';
if($page){
$s .= $page ? '-page-{page}' : '';
}
// 附加参数
if($extra) {
foreach ($extra as $k=>$v){
$s .= '-'.$k.'-'.$v;
}
}
if(empty($_ENV['_config']['lecms_parseurl'])) {
return $this->cfg['weburl'].'index.php?'.$control.'-'.$action.$s.$_ENV['_config']['url_suffix'];
}else{
return $this->cfg['weburl'].$control.'-'.$action.$s.$_ENV['_config']['url_suffix'];
}
}
//获取模型的自定义字段(不执行格式化)
public function get_model_fields_by_mid($mid = 2){
if(!plugin_is_enable('models_filed')){
return array();
}
if(isset($this->data['models_field'.$mid]) && !empty($this->data['models_field'.$mid])) {
$models_field = $this->data['models_field'.$mid];
}else{
$models_field = $this->models_field->user_defined_field($mid);
$this->data['models_field'.$mid] = $models_field;
}
return $models_field;
}
// 自动生成缩略图
public function auto_pic($table = 'article', $uid = 1, $id = 0, $models = array()) {
$this->cms_content_attach->table = 'cms_'.$table.'_attach';
$pic_arr = $this->cms_content_attach->find_fetch(array('id'=>$id, 'uid'=>$uid, 'isimage'=>1), array(), 0, 1);
if($pic_arr){
$pic_arr = current($pic_arr);
$path = 'upload/'.$table.'/'.$pic_arr['filepath'];
$pic = image::thumb_name($path);
$src_file = ROOT_PATH.$path;
$dst_file = ROOT_PATH.$pic;
if( !is_file($dst_file) && $models ) {
image::thumb($src_file, $dst_file, $models['width'], $models['height'], $this->cfg['thumb_type'], $this->cfg['thumb_quality']);
return $path;
}else{
return $path;
}
}else{
return '';
}
}
/**
* 获取远程图片
* @param $table 表名
* @param $content 内容
* @param int $uid 用户ID
* @param int $cid 分类ID
* @param int $id 内容ID
* @param int $write_db 是否写入附件表
* @return string
*/
public function get_remote_img($table = 'article', &$content = '', $uid = 1, $cid = 0, $id = 0, $write_db = 1) {
if(empty($content)){
return '';
}
function_exists('set_time_limit') && set_time_limit(0);
$updir = 'upload/'.$table.'/';
$_ENV['_prc_err'] = 0;
$_ENV['_prc_arg'] = array(
'hosts'=>array('127.0.0.1', 'localhost', $_SERVER['HTTP_HOST'], $this->cfg['webdomain']),
'uid'=>$uid,
'cid'=>$cid,
'id'=>$id,
'maxSize'=>10000,
'upDir'=>ROOT_PATH.$updir,
'preUri'=>$this->cfg['webdir'].$updir, //相对图片地址,绝对图片地址用 weburl
'cfg'=>$this->cfg,
'write_db'=>$write_db
);
$this->cms_content_attach->table = 'cms_'.$table.'_attach';
$content = preg_replace_callback('#\
![]()
]*src=["\']((?:http|https|ftp)\://[^"\']+)["\'][^\>]*\>#iU', array($this, 'img_replace'), $content);
unset($_ENV['_prc_arg']);
return $_ENV['_prc_err'] ? lang('isremote_failed_tip_1').$_ENV['_prc_err'].lang('isremote_failed_tip_2') : '';
}
// 远程图片处理 (如果抓取失败则不替换)
// $conf 用到4个参数 hosts preUri cfg upDir
private function img_replace($mat) {
static $uris = array();
$uri = $mat[1];
$conf = &$_ENV['_prc_arg'];
if( !isset($conf['write_db']) ){
$conf['write_db'] = 1;
}
// 排除重复保存相同URL图片
if(isset($uris[$uri])) return str_replace($uri, $uris[$uri], $mat[0]);
// 根据域名排除本站图片
$urls = parse_url($uri);
if(in_array($urls['host'], $conf['hosts'])) return $mat[0];
$file = $this->cms_content_attach->remote_down($uri, $conf, (int)$conf['write_db']);
if($file) {
$uris[$uri] = $conf['preUri'].$file;
$cfg = $conf['cfg'];
// 是否添加水印
if(!empty($cfg['watermark_pos'])) {
image::watermark($conf['upDir'].$file, ROOT_PATH.'static/img/watermark.png', null, $cfg['watermark_pos'], $cfg['watermark_pct']);
}
return str_replace($uri, $uris[$uri], $mat[0]);
}else{
$_ENV['_prc_err']++;
return $mat[0];
}
}
}
Lecms 3.0.3 错误
错误信息
- 消息: [程序异常] : Class 'cms_content' not found
- 文件: /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/core.class.php
- 位置: 第449行
错误位置
| #445 | }
|
| #446 | }
|
| #447 |
|
| #448 | include $objfile;
|
| #449 | $mod = new $model();
|
| #450 | $_ENV['_models'][$modelname] = $mod;
|
| #451 |
|
| #452 | return $mod;
|
| #453 | }
|
| #454 |
|
基本信息
- 模型: /www/wwwroot/www.wanmingwang.com/lecms/model/
- 视图: /www/wwwroot/www.wanmingwang.com/view/qm_pro/
- 控制器: /www/wwwroot/www.wanmingwang.com/lecms/control/hl_control.class.php
- 日志目录: /www/wwwroot/www.wanmingwang.com/runcache/logs/
程序流程
- #0 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/control.class.php(10): core::model()
- #1 /www/wwwroot/www.wanmingwang.com/runcache/lecms_view/qm_pro,hl_eventno.htm.php(452): control->__get()
- #2 /www/wwwroot/www.wanmingwang.com/runcache/lecms_view/qm_pro,hl_eventno.htm.php(930): block_list()
- #3 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/view.class.php(25): include('/www/wwwroot/ww...')
- #4 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/control.class.php(23): view->display()
- #5 /www/wwwroot/www.wanmingwang.com/runcache/lecms_control/hl_control.class.php(788): control->display()
- #6 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/core.class.php(341): hl_control->eventno()
- #7 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/core.class.php(11): core::init_control()
- #8 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/xiunophp.php(100): core::init_start()
- #9 /www/wwwroot/www.wanmingwang.com/index.php(107): require('/www/wwwroot/ww...')
- #10 {main}
SQL
- #0 [time:0.0033s] SELECT * FROM le_runtime WHERE k='cfg' LIMIT 1
- #1 [time:0.0005s] SELECT url_alias_prefix FROM le_ai_qiming_config LIMIT 1
- #2 [time:0.0009s] SELECT mid FROM le_models
- #3 [time:0.0015s] SELECT * FROM le_models WHERE mid='1' OR mid='2' OR mid='3' OR mid='4' OR mid='5'
- #4 [time:0.0033s] SELECT * FROM le_runtime WHERE k='693aea0b1e1a8ca87c15cc17b077f245' LIMIT 1
- #5 [time:0.0005s] SELECT * FROM le_runtime WHERE k='4e808335710b4872d77ba9e8ab9626c6' LIMIT 1
- #6 [time:0.0003s] SELECT * FROM le_runtime WHERE k='1eb52b08622a6bf126e62160c96d7bec' LIMIT 1
- #7 [time:0.0009s] SELECT * FROM le_kv WHERE k='navigate' LIMIT 1
- #8 [time:0.0009s] SELECT * FROM le_runtime WHERE k='98a18ccbb886a3a1e7df57fa1400dd98' LIMIT 1
- #9 [time:0.0054s] SELECT * FROM le_runtime WHERE k='cate_3' LIMIT 1
- #10 [time:0.0067s] SELECT cid FROM le_category ORDER BY orderby ASC ,cid ASC
- #11 [time:0.0077s] SELECT * FROM le_category WHERE cid='1' OR cid='2' OR cid='3' OR cid='4' OR cid='5' OR cid='6' OR cid='7' OR cid='8' OR cid='9' OR cid='10' OR cid='11' OR cid='12' OR cid='13' OR cid='14' OR cid='15' OR cid='16' OR cid='17' OR cid='18' OR cid='19' OR cid='20' OR cid='21' OR cid='22' OR cid='23' OR cid='24' OR cid='25' OR cid='26' OR cid='28' OR cid='29' OR cid='30' OR cid='31' OR cid='32' OR cid='33' OR cid='34' OR cid='35' OR cid='36' OR cid='37' OR cid='38' OR cid='39' OR cid='40'
$_GET
- #control => hl
- #action => eventno
- #nian => 2134
- #yue => 7
- #ri => 26
- #eventpy => qiaoqian
$_POST
$_COOKIE
包含文件
- #0 /www/wwwroot/www.wanmingwang.com/index.php
- #1 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/xiunophp.php
- #2 /www/wwwroot/www.wanmingwang.com/lecms/config/config.inc.php
- #3 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/base.func.php
- #4 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/core.class.php
- #5 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/debug.class.php
- #6 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/log.class.php
- #7 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/model.class.php
- #8 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/view.class.php
- #9 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/lib/control.class.php
- #10 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/db/db.interface.php
- #11 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/db/db_pdo_mysql.class.php
- #12 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/cache/cache.interface.php
- #13 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/cache/cache_memcache.class.php
- #14 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/ext/network/Network__interface.php
- #15 /www/wwwroot/www.wanmingwang.com/lecms/config/plugin.inc.php
- #16 /www/wwwroot/www.wanmingwang.com/lecms/plugin/editor_um/conf.php
- #17 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_ai_qiming/conf.php
- #18 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_category_filter/conf.php
- #19 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_douhao_ai_article/conf.php
- #20 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/conf.php
- #21 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_links/conf.php
- #22 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_quming_pro/conf.php
- #23 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_quming_pro_backup/conf.php
- #24 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_title_pic/conf.php
- #25 /www/wwwroot/www.wanmingwang.com/lecms/plugin/models_filed/conf.php
- #26 /www/wwwroot/www.wanmingwang.com/runcache/misc.func.php
- #27 /www/wwwroot/www.wanmingwang.com/runcache/core_lang/zh-cn.php
- #28 /www/wwwroot/www.wanmingwang.com/runcache/lang/zh-cn.php
- #29 /www/wwwroot/www.wanmingwang.com/runcache/lecms_control/parseurl_control.class.php
- #30 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/runtime_model.class.php
- #31 /www/wwwroot/www.wanmingwang.com/runcache/lecms_control/hl_control.class.php
- #32 /www/wwwroot/www.wanmingwang.com/runcache/lecms_control/base_control.class.php
- #33 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/urls_model.class.php
- #34 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/models_model.class.php
- #35 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/hl_model.class.php
- #36 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/vendor/autoload.php
- #37 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/vendor/composer/autoload_real.php
- #38 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/vendor/composer/ClassLoader.php
- #39 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/vendor/composer/autoload_static.php
- #40 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/Solar.php
- #41 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/Lunar.php
- #42 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/LunarYear.php
- #43 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/util/ShouXingUtil.php
- #44 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/LunarMonth.php
- #45 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/util/LunarUtil.php
- #46 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/util/SolarUtil.php
- #47 /www/wwwroot/www.wanmingwang.com/lecms/plugin/le_hl/lib/src/SolarMonth.php
- #48 /www/wwwroot/www.wanmingwang.com/runcache/lecms_view/qm_pro,hl_eventno.htm.php
- #49 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/kv_model.class.php
- #50 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/category_model.class.php
- #51 /www/wwwroot/www.wanmingwang.com/runcache/lecms_model/cms_content_model.class.php
- #52 /www/wwwroot/www.wanmingwang.com/lecms/xiunophp/tpl/exception.php
其他信息
- 请求路径: /huangli/2134-7-26-qiaoqian.html
- 当前时间: 2026-04-13 01:07:00
- 当前网协: 216.73.216.168
- 运行时间: 0.6135
- 内存开销: 3.69 MB