$year = R('nian', 'G'); if(!$year){$year=date('Y',time());} $month = R('yue', 'G'); if(!$month){$month=date('n',time());} $day = R('ri', 'G'); if(!$day){$day=date('j',time());} $hh = date('H',time()); $this->assign('yy', $year); $this->assign('nn', $month); $this->assign('jj', $day); $date1 = $year.'年'.$month.'月'.$day.'日'; $this->assign('date1', $date1); $hl = $this->hl->jishi($year, $month, $day, $hh); $this->assign('hl', $hl); $seo_find_variable = array('{webname}', '{year}', '{month}', '{day}'); $seo_replace_variable = array($this->_cfg['webname'], $year, $month, $day); if(isset($this->setting['jishi_seo_title_rule']) && !empty($this->setting['jishi_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['jishi_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$year}年{$month}月{$day}日吉时查询-{$year}年{$month}月{$day}日时辰吉凶查询-".$this->_cfg['webname']; } if(isset($this->setting['jishi_seo_keywords_rule']) && !empty($this->setting['jishi_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['jishi_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$year}年{$month}月{$day}日吉时查询,{$year}年{$month}月{$day}日时辰吉凶查询"; } if(isset($this->setting['jishi_seo_description_rule']) && !empty($this->setting['jishi_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['jishi_seo_description_rule']); }else{ $this->_cfg['seo_description'] = "{$year}年{$month}月{$day}日吉时查询,{$year}年{$month}月{$day}日时辰吉凶查询"; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_jishi.htm'; $this->display($tpl); } // 阳历转阴历 public function yangtoyin() { $arr['data'] = array(); $nian = R('year', 'P'); $yue = R('month', 'P'); $ri = R('day', 'P'); if(!$nian || !$yue || !$ri){ E(1, '缺少参数', '', $arr); } $jss = $this->hl->yangtoyin($nian, $yue, $ri); if(!$jss){ E(1, '转换失败', '', $arr); } $arr['data'] = $jss; E(0, 'ok', '', $arr); } // 阴历转阳历 public function yintoyang() { $arr['data'] = array(); $nian = R('year', 'P'); $yue = R('month', 'P'); $ri = R('day', 'P'); if(!$nian || !$yue || !$ri){ E(1, '缺少参数', '', $arr); } $jss = $this->hl->yintoyang($nian, $yue, $ri); if(!$jss){ E(1, '转换失败', '', $arr); } $arr['data'] = $jss; E(0, 'ok', '', $arr); } } Lecms 3.0.3 错误

错误信息

错误位置

基本信息

程序流程

SQL

$_GET

$_POST

$_COOKIE

包含文件

其他信息