.$this->setting['day_prefix']; $nian_arr = array( '2020'=>$url_prefix."/2020-{$month}".$_ENV['_config']['url_suffix'], '2021'=>$url_prefix."/2021-{$month}".$_ENV['_config']['url_suffix'], '2022'=>$url_prefix."/2022-{$month}".$_ENV['_config']['url_suffix'], '2023'=>$url_prefix."/2023-{$month}".$_ENV['_config']['url_suffix'], '2024'=>$url_prefix."/2024-{$month}".$_ENV['_config']['url_suffix'], '2025'=>$url_prefix."/2025-{$month}".$_ENV['_config']['url_suffix'], '2026'=>$url_prefix."/2026-{$month}".$_ENV['_config']['url_suffix'], '2027'=>$url_prefix."/2027-{$month}".$_ENV['_config']['url_suffix'], '2028'=>$url_prefix."/2028-{$month}".$_ENV['_config']['url_suffix'], '2029'=>$url_prefix."/2029-{$month}".$_ENV['_config']['url_suffix'] ); $this->assign('nian_arr', $nian_arr); $yue_arr = array( '1'=>$url_prefix."/{$year}-1".$_ENV['_config']['url_suffix'], '2'=>$url_prefix."/{$year}-2".$_ENV['_config']['url_suffix'], '3'=>$url_prefix."/{$year}-3".$_ENV['_config']['url_suffix'], '4'=>$url_prefix."/{$year}-4".$_ENV['_config']['url_suffix'], '5'=>$url_prefix."/{$year}-5".$_ENV['_config']['url_suffix'], '6'=>$url_prefix."/{$year}-6".$_ENV['_config']['url_suffix'], '7'=>$url_prefix."/{$year}-7".$_ENV['_config']['url_suffix'], '8'=>$url_prefix."/{$year}-8".$_ENV['_config']['url_suffix'], '9'=>$url_prefix."/{$year}-9".$_ENV['_config']['url_suffix'], '10'=>$url_prefix."/{$year}-10".$_ENV['_config']['url_suffix'], '11'=>$url_prefix."/{$year}-11".$_ENV['_config']['url_suffix'], '12'=>$url_prefix."/{$year}-12".$_ENV['_config']['url_suffix'] ); $this->assign('yue_arr', $yue_arr); $hl = $this->hl->get_yue($year, $month); $this->assign('hl', $hl); $seo_find_variable = array('{webname}', '{year}', '{month}'); $seo_replace_variable = array($this->_cfg['webname'], $year, $month); if(isset($this->setting['yue_seo_title_rule']) && !empty($this->setting['yue_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['yue_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$year}年{$month}月黄道吉日-".$this->_cfg['webname']; } if(isset($this->setting['yue_seo_keywords_rule']) && !empty($this->setting['yue_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['yue_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$year}年{$month}月黄道吉日"; } if(isset($this->setting['yue_seo_description_rule']) && !empty($this->setting['yue_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['yue_seo_description_rule']); }else{ $this->_cfg['seo_description'] = ""; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_yue.htm'; $this->display($tpl); } //某年的日历 public function nian_rili() { $this->setting = isset($this->_cfg['le_hl']) ? $this->_cfg['le_hl'] : array(); $this->_var['topcid'] = -100; $year = R('nian', 'G'); if(!$year){$year=date('Y',time());} if($year != date('Y',time())){ $this->_var['topcid'] = 0; } $nn = R('yue', 'G'); if(!$nn){$nn=date('n',time());} $this->assign('nn',$nn); $navtitle = "{$year}年日历"; $this->assign('navtitle', $navtitle); $this->assign('nian',$year); $this->assign('yy',$year); $hl = $this->hl->nian_rili($year); $this->assign('hl', $hl); $seo_find_variable = array('{webname}', '{year}'); $seo_replace_variable = array($this->_cfg['webname'], $year); if(isset($this->setting['year_seo_title_rule']) && !empty($this->setting['year_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['year_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$year}年日历全年表-".$this->_cfg['webname']; } if(isset($this->setting['year_seo_keywords_rule']) && !empty($this->setting['year_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['year_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$year}年日历全年表"; } if(isset($this->setting['year_seo_description_rule']) && !empty($this->setting['year_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['year_seo_description_rule']); }else{ $this->_cfg['seo_description'] = ""; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_nian_rili.htm'; $this->display($tpl); } //某年节气详情 public function nian_jieqi() { $this->setting = isset($this->_cfg['le_hl']) ? $this->_cfg['le_hl'] : array(); $this->_var['topcid'] = 0; $year = R('nian', 'G'); if(!$year){$year=date('Y',time());} $jieqipy = R('jieqipy', 'G'); if(!$jieqipy){core::error404();} $jieqiarr = isset($this->jieqiarr[$jieqipy]) ? $this->jieqiarr[$jieqipy] : array(); if(!$jieqiarr){core::error404();} $jieqi = $jieqiarr['title']; $this->assign('jieqiarr',$jieqiarr); $this->assign('jieqipy',$jieqipy); if($year != date('Y',time())){ $this->_var['topcid'] = 0; } $navtitle = "{$year}年{$jieqi}"; $this->assign('navtitle', $navtitle); $this->assign('nian',$year); $hl = $this->hl->nian_jieqi($year, $jieqiarr); $this->assign('hl', $hl); $seo_find_variable = array('{webname}', '{year}', '{jieqi}'); $seo_replace_variable = array($this->_cfg['webname'], $year, $jieqi); if(isset($this->setting['jieqi_seo_title_rule']) && !empty($this->setting['jieqi_seo_title_rule'])){ $this->_cfg['titles'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['jieqi_seo_title_rule']); }else{ $this->_cfg['titles'] = "{$year}年{$jieqi}是几月几号几点几分-".$this->_cfg['webname']; } if(isset($this->setting['jieqi_seo_keywords_rule']) && !empty($this->setting['jieqi_seo_keywords_rule'])){ $this->_cfg['seo_keywords'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['jieqi_seo_keywords_rule']); }else{ $this->_cfg['seo_keywords'] = "{$jieqi}是{$year}的几月几日,{$jieqi}开始时间"; } if(isset($this->setting['jieqi_seo_description_rule']) && !empty($this->setting['jieqi_seo_description_rule'])){ $this->_cfg['seo_description'] = str_replace($seo_find_variable, $seo_replace_variable, $this->setting['jieqi_seo_description_rule']); }else{ $this->_cfg['seo_description'] = ""; } $this->assign('cfg', $this->_cfg); $this->assign('cfg_var', $this->_var); $GLOBALS['run'] = &$this; $_ENV['_theme'] = &$this->_cfg['theme']; $tpl = 'hl_nian_jieqi.htm'; $this->display($tpl); } // 2025-3-jiehun.html public function yuejiri() { $this->setting = isset($this->_cfg['le_hl']) ? $this->_cfg['le_hl'] : array(); $this->_var['topcid'] = 0; $year = R('nian', 'G'); if(!$year){$year=date('Y',time());} $yue = $month = R('yue', 'G'); if(!$yue){core::error404();} $eventpy = R('eventpy', 'G'); if(!$eventpy){core::error404();} $sxpy = R('sx', 'G'); if($sxpy) { $csxz = $this->shengxiaoarr[$sxpy]['hanzi']; if (!$csxz) { core::error404(); } }else{ $csxz = ''; } $eventarr = isset($this->eventarr[$eventpy]) ? $this->eventarr[$eventpy] : array(); if(!$eventarr){core::error404();} $event = $eventarr['event']; $this->assign('eventarr',$eventarr); $navtitle = "{$year}年{$yue}月{$event}吉日"; $this->assign('navtitle', $navtitle); $this->assign('nian',$year); $this->assign('yue',$yue); $this->assign('eventpy',$eventpy); $this->assign('sxpy',$sxpy); $this->assign('csxz',$csxz); $url_prefix = $this->_cfg['webdir'].$this->setting['day_prefix']; $nian_arr = array( '2020'=>$url_prefix."/2020-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2021'=>$url_prefix."/2021-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2022'=>$url_prefix."/2022-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2023'=>$url_prefix."/2023-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2024'=>$url_prefix."/2024-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2025'=>$url_prefix."/2025-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2026'=>$url_prefix."/2026-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2027'=>$url_prefix."/2027-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2028'=>$url_prefix."/2028-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'], '2029'=>$url_prefix."/2029-{$month}-{$eventpy}".$_ENV['_config']['url_suffix'] ); $this->assign('nian_arr', $nian_arr); $yue_arr = array( '1'=>$url_prefix."/{$year}-1-{$eventpy}".$_ENV['_config']['url_suffix'], '2'=>$url_prefix."/{$year}-2-{$eventpy}".$_ENV['_config']['url_suffix'], '3'=>$url_prefix."/{$year}-3-{$eventpy}".$_ENV['_config']['url_suffix'], '4'=>$url_prefix."/{$year}-4-{$eventpy}".$_ENV['_config']['url_suffix'], '5'=>$url_prefix."/{$year}-5-{$eventpy}".$_ENV['_config']['url_suffix'], '6'=>$url_prefix."/{$year}-6-{$eventpy}".$_ENV['_config']['url_suffix'], '7'=>$url_prefix."/{$year}-7-{$eventpy}".$_ENV['_config']['url_suffix'], '8'=>$url_prefix."/{$year}-8-{$eventpy}".$_ENV['_config']['url_suffix'], '9'=>$url_prefix."/{$year}-9-{$eventpy}".$_ENV['_config']['url_suffix'], '10'=>$url_prefix."/{$year}-10-{$eventpy}".$_ENV['_config']['url_suffix'], '11'=>$url_prefix."/{$year}-11-{$eventpy}".$_ENV['_config']['url_suffix'], '12'=>$url_prefix."/{$year}-12-{$eventpy}".$_ENV['_config']['url_suffix'] ); $this->assign('yue_arr', $yue_arr); $event_arr = array( 'lingzheng'=>array( 'title'=>'领证', 'url'=>$url_prefix."/{$year}-{$month}-lingzheng".$_ENV['_config']['url_suffix'] ), 'dinghun'=>array( 'title'=>'订婚', 'url'=>$url_prefix."/{$year}-{$month}-dinghun".$_ENV['_config']['url_suffix'] ), 'chuxing'=>array( 'title'=>'出行', 'url'=>$url_prefix."/{$year}-{$month}-chuxing".$_ENV['_config']['url_suffix'] ), 'lifa'=>array( 'title'=>'理发', 'url'=>$url_prefix."/{$year}-{$month}-lifa".$_ENV['_config']['url_suffix'] ), 'jisi'=>array( 'title'=>'祭祀', 'url'=>$url_prefix."/{$year}-{$month}-jisi".$_ENV['_config']['url_suffix'] ), 'jiehun'=>array( 'title'=>'结婚', 'url'=>$url_prefix."/{$year}-{$month}-jiehun".$_ENV['_config']['url_suffix'] ), 'anchuang'=>array( 'title'=>'安床', 'url'=>$url_prefix."/{$year}-{$month}-anchuang".$_ENV['_config']['url_suffix'] ), 'kaigong'=>array( 'title'=>'开工', 'url'=>$url_prefix."/{$year}-{$month}-kaigong".$_ENV['_config']['url_suffix'] ), 'kaiye'=>array( 'title'=>'开业', 'url'=>$url_prefix."/{$year}-{$month}-kaiye".$_ENV['_config']['url_suffix'] ), 'tiche'=>array( 'title'=>'提车', 'url'=>$url_prefix."/{$year}-{$month}-tiche".$_ENV['_config']['url_suffix'] ), 'potu'=>array( 'title'=>'破土', 'url'=>$url_prefix."/{$year}-{$month}-potu".$_ENV['_config']['url_suffix'] ), 'qiaoqian'=>array( 'title'=>'乔迁', 'url'=>$url_prefix."/{$year}-{$month}-qiaoqian".$_ENV['_config']['url_suffix'] ), 'xietu'=>array( 'title'=>'谢土', 'url'=>$url_prefix."/{$year}-{$month}-xietu".$_ENV['_config']['url_suffix'] ), 'xiufen'=>array( 'title'=>'修坟', 'url'=>$url_prefix."/{$year}-{$month}-xiufen".$_ENV['_config']['url_suffix'] ), 'zhuangxiu'=>array( 'title'=>'装修', 'url'=>$url_prefix."/{$year}-{$month}-zhuangxiu".$_ENV['_config']['url_suffix'] ), 'banjia'=>array( 'title'=>'搬家', 'url'=>$url_prefix."/{$year}-{$month}-banjia".$_ENV['_config']['url_suffix'] ), 'anmen'=>array( 'title'=>'安门', 'url'=>$url_prefix."/{$year}-{$month}-anmen".$_ENV['_config']['url_suffix'] ), 'huiqinyou'=>array( 'title'=>'会亲友', 'url'=>$url_prefix."/{$year}-{$month}-huiqinyou".$_ENV['_config']['url_suffix'] ), 'anzang'=>array( 'title'=>'安葬', 'url'=>$url_prefix."/{$year}-{$month}-anzang".$_ENV['_config']['url_suffix'] ), 'dongtu'=>array( 'title'=>'动土', 'url'=>$url_prefix."/{$year}-{$month}-dongtu".$_ENV['_config']['url_suffix'] ) ); $this->assign('event_arr', $event_arr); $sx_arr = array( 'shu'=>array( 'title'=>'鼠', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-shu".$_ENV['_config']['url_suffix'] ), 'niu'=>array( 'title'=>'牛', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-niu".$_ENV['_config']['url_suffix'] ), 'hu'=>array( 'title'=>'虎', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-hu".$_ENV['_config']['url_suffix'] ), 'tu'=>array( 'title'=>'兔', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-tu".$_ENV['_config']['url_suffix'] ), 'long'=>array( 'title'=>'龙', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-long".$_ENV['_config']['url_suffix'] ), 'she'=>array( 'title'=>'蛇', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-she".$_ENV['_config']['url_suffix'] ), 'ma'=>array( 'title'=>'马', 'url'=>$url_prefix."/{$year}-{$month}-{$eventpy}-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 lang[error]

lang[error_info]

lang[error_line]

lang[basic_trace]

lang[program_flow]

SQL

$_GET

$_POST

$_COOKIE

lang[include_file]

lang[other_trace]