$ming2arr = $this->qm_kangxi->find_fetch(array('hanzi'=>$ming2), array('id' => 1), 0, 1); if($ming2arr){ $ming2arr = current($ming2arr); $v['ming2_wuxing'] = $ming2arr['wuxing']; $v['ming2_yisi'] = $ming2arr['yisi'] ? $ming2arr['yisi'] : '美好'; $v['ming2_yuyi'] = $ming2arr['yuyi'] ? $ming2arr['yuyi'] : '吉祥如意'; $v['ming2_jieshi'] = $ming2arr['jieshi'] ? $ming2arr['jieshi'] : '出自诗词'; }else{ $v['ming2_wuxing'] = '木'; $v['ming2_yisi'] = '美好'; $v['ming2_yuyi'] = '吉祥如意'; $v['ming2_jieshi'] = '出自诗词'; } } $v['xing_wuxing'] = $_show['xing_wuxing']; } $_show['list'] = $list_arr; $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['_show'] = &$_show; $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $this->display($tpl); }else{ // 正常格式:具体的名字 - 使用 mingzi_show.htm 模板 //名 不能大于2个字 if(_strlen($_GET['ming']) > 2){ core::error404(); } $_show = $this->qm_xing->find_fetch(array('xing'=>$_GET['xing']), array(), 0, 1); if( empty($_show) ) core::error404(); $_show = current($_show); $_show['xingming'] = $_GET['xing'].$_GET['ming']; $_show['ming'] = $_GET['ming']; $times_data = $this->qm_xingming_times->xingming_times($_show['xingming']); $_show['dateline'] = isset($times_data['dateline']) ? $times_data['dateline'] : $_ENV['_time']; $_show['lasttime'] = isset($times_data['lasttime']) ? $times_data['lasttime'] : $_ENV['_time']; $_show['date'] = date('Y-m-d H:i',$_show['dateline']); if(isset($this->_cfg['url_path']) && !empty($this->_cfg['url_path'])) { $_show['absolute_url'] = $this->_cfg['webroot'].$this->urls->qm_ming_url($_GET['xing'], $_GET['ming']); }else{ $_show['absolute_url'] = $this->urls->qm_ming_url($_GET['xing'], $_GET['ming']); } $_show['pic'] = $this->_cfg['weburl'].'mingzi/pic/'.urlencode($_show['xingming']).'.jpg'; $this->_var['topcid'] = $this->_baijiaxing_cid; // SEO 相关 $this->_cfg['titles'] = "{$_show['xingming']}名字打分-{$_show['xingming']}名字的含义解析-{$this->_cfg['webname']}"; $this->_cfg['seo_keywords'] = "{$_show['xingming']}名字的含义,{$_show['xingming']}名字打分,{$_show['xingming']}名字解析,{$_show['xingming']}名字怎么样,{$_show['xingming']}名字好不好"; $this->_cfg['seo_description'] = "{$this->_cfg['webname']}提供{$_show['xingming']}名字打分评分解析,专业的深度解析{$_show['xingming']}名字的含义,让您更加了解这个{$_show['xingming']}名字背后所包含的深刻含义。"; $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['_show'] = &$_show; $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'mingzi_show.htm'; $this->display($tpl); } } public function mingzipic(){ $_GET['xingming'] = urldecode($_GET['xingming']); if( empty($_GET['xingming']) || _strlen($_GET['xingming']) > 4 ){ exit(); } if (isset($_SERVER['http_IF_MODIFIED_SINCE'])) { header('Last-Modified: '.$_SERVER['HTTP_IF_MODIFIED_SINCE'],true,304); exit(); } $title = $_GET['xingming']; $font = PLUGIN_PATH."le_quming_pro/static/MSYH.otf"; //字体,需要使用微软雅黑 宋 Lecms 3.0.3 lang[error]

lang[error_info]

lang[error_line]

lang[basic_trace]

lang[program_flow]

SQL

$_GET

$_POST

$_COOKIE

lang[include_file]

lang[other_trace]