-ma".$_ENV['_config']['url_suffix'] ), 'yang'=>array( 'title'=>'羊', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-yang".$_ENV['_config']['url_suffix'] ), 'hou'=>array( 'title'=>'猴', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-hou".$_ENV['_config']['url_suffix'] ), 'ji'=>array( 'title'=>'鸡', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-ji".$_ENV['_config']['url_suffix'] ), 'gou'=>array( 'title'=>'狗', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-gou".$_ENV['_config']['url_suffix'] ), 'zhu'=>array( 'title'=>'猪', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-zhu".$_ENV['_config']['url_suffix'] ) ); $this->assign('sx_arr', $sx_arr); $hl = $this->hl->yuejiri($year, $month, $eventarr, $csxz); $this->assign('hl', $hl); $seo_find_variable = array('{webname}', '{year}', '{month}', '{event}'); $seo_replace_variable = array($this->_cfg['webname'], $year, $yue, $event); if(isset($this->setting['yuejiri_seo_title_rule']) && !empty($this->setting['yuejiri_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['yuejiri_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$year}年{$yue}月{$event}吉日一览表-".$this->_cfg['webname']; } if(isset($this->setting['yuejiri_seo_keywords_rule']) && !empty($this->setting['yuejiri_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['yuejiri_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$year}年{$yue}月{$event}吉日一览表"; } if(isset($this->setting['yuejiri_seo_description_rule']) && !empty($this->setting['yuejiri_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['yuejiri_seo_description_rule']); }else{ $this->_cfg['seo_description'] = "{$year}年{$yue}月{$event}吉日一览表"; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_yuejiri.htm'; $this->display($tpl); } //2025-3-21-jiehun.html 某日某黄历是否合适 public function eventno() { $this->setting = isset($this->_cfg['le_hl']) ? $this->_cfg['le_hl'] : array(); $this->_var['topcid'] = 0; $eventpy = R('eventpy', 'G'); $nian = R('nian', 'G'); $yue = R('yue', 'G'); $ri = R('ri', 'G'); if(!$eventpy || !$nian || !$yue || !$ri){ core::error404(); } $eventarr = isset($this->eventarr[$eventpy]) ? $this->eventarr[$eventpy] : array(); if(!$eventarr){core::error404();} $event = $eventarr['event']; $navtitle = "{$nian}年{$yue}月{$ri}日是否适合{$event}"; $this->assign('navtitle', $navtitle); $this->assign('eventarr', $eventarr); $this->assign('eventpy', $eventpy); $this->assign('nian', $nian); $this->assign('yue', $yue); $this->assign('ri', $ri); $hl = $this->hl->eventno($nian, $yue, $ri, $eventarr); $this->assign('hl', $hl); $seo_find_variable = array('{webname}', '{year}', '{month}', '{day}', '{event}'); $seo_replace_variable = array($this->_cfg['webname'], $nian, $yue, $ri, $event); if(isset($this->setting['eventno_seo_title_rule']) && !empty($this->setting['eventno_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['eventno_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$nian}年{$yue}月{$event}吉日一览表-".$this->_cfg['webname']; } if(isset($this->setting['eventno_seo_keywords_rule']) && !empty($this->setting['eventno_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['eventno_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$nian}年{$yue}月{$event}吉日一览表"; } if(isset($this->setting['eventno_seo_description_rule']) && !empty($this->setting['eventno_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['eventno_seo_description_rule']); }else{ $this->_cfg['seo_description'] = "{$nian}年{$yue}月{$event}吉日一览表"; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_eventno.htm'; $this->display($tpl); } //今日财神方位 public function caishen() { $this->setting = isset($this->_cfg['le_hl']) ? $this->_cfg['le_hl'] : array(); $this->_var['topcid'] = -1; $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->caishen($year, $month, $day, $hh); $this->assign('hl', $hl); $shichenarr = array( '00:00-00:59','01:00-02:59','03:00-04:59','05:00-06:59','07:00-08:59','09:00-10:59', '11:00-12:59','13:00-14:59','15:00-16:59','17:00-18:59','19:00-20:59','21:00-22:59', '23:00-23:59' ); $this->assign('shichenarr', $shichenarr); $seo_find_variable = array('{webname}', '{year}', '{month}', '{day}'); $seo_replace_variable = array($this->_cfg['webname'], $year, $month, $day); if(isset($this->setting['caishen_seo_title_rule']) && !empty($this->setting['caishen_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['caishen_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$year}年{$month}月{$day}日财神方位-".$this->_cfg['webname']; } if(isset($this->setting['caishen_seo_keywords_rule']) && !empty($this->setting['caishen_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['caishen_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$year}年{$month}月{$day}日财神方位"; } if(isset($this->setting['caishen_seo_description_rule']) && !empty($this->setting['caishen_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['caishen_seo_description_rule']); }else{ $this->_cfg['seo_description'] = "{$year}年{$month}月{$day}日财神方位"; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_caishen.htm'; $this->display($tpl); } //今日吉时 public function jishi() { $this->setting = isset($this->_cfg['le_hl']) ? $this->_cfg['le_hl'] : array(); $this->_var['topcid'] = -1; $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

包含文件

其他信息