function filterSlaveInfoInNight(&$contents)
{
    foreach ($contents as $i => $content)
    {
        if (isNight() && isSlaveInfo($content))
        {
            unset($contents[$i]);
        }

    }
}
 protected function _initialize()
 {
     parent::_initialize();
     //TODO:只获取全局通用的配置
     $this->getConfig();
     $seo = array('title' => C('WEBSITE_TITLE'), 'keywords' => C('WEBSITE_KEYWORDS'), 'description' => C('WEBSITE_DESCRIPTION'));
     $cfg = array('owner' => C('WEBSITE_OWNER'), 'statisticalcode' => C('WEBSITE_STATISTICAL_CODE'), 'theme' => getSkin(C('DEFAULT_SKIN')));
     //若是晚上 则固定为darkly样式
     if (isNight()) {
         $cfg['theme'] = "darkly";
     }
     //
     $this->assignVars($seo, $cfg);
 }
 public function assignPageVars()
 {
     $seo = array('title' => C('WEBSITE_TITLE'), 'keywords' => C('WEBSITE_KEYWORDS'), 'description' => C('WEBSITE_DESCRIPTION'));
     $cfg = array('owner' => C('WEBSITE_OWNER'), 'statisticalcode' => C('WEBSITE_STATISTICAL_CODE'), 'theme' => getSkin(C('DEFAULT_SKIN')));
     //若是晚上 则固定为darkly样式
     if (isNight()) {
         //			$cfg['theme'] = "darkly";
     }
     //
     $this->assignVars($seo, $cfg);
 }