no commit message

This commit is contained in:
雨中磐石
2024-10-18 15:27:40 +08:00
parent 9a2a3a2c8a
commit 559c388ea0
103 changed files with 2021 additions and 783 deletions

View File

@@ -59,6 +59,7 @@ abstract class mainAction{
$this->display = true;
$this->initMysql();
$this->initConstruct();
$this->getTheme();
$this->initProject();
$this->initAction();
}
@@ -124,6 +125,27 @@ abstract class mainAction{
|| $this->rock->iswebbro(2))$showheader = 0; //隐藏头部
if($this->get('showheader')=='true')$showheader = 1;
$this->assign('showheader', $showheader);
$nowtime = $this->getsession('nowtime');
if(!$nowtime || getconfig('systype')=='dev'){
$nowtime = time();
$this->rock->setsession('nowtime', $nowtime);
}
$this->assign('nowtime', $nowtime);
}
//主题颜色处理
public function getTheme()
{
$theme = $this->get('apptheme');
if($theme){
$this->rock->setsession('apptheme', $theme);
}else{
$theme = $this->getsession('apptheme');
}
if($theme)$theme = '#'.$theme.'';
if(!$theme || strlen($theme)!=7)$theme = getconfig('apptheme', '#1389D3'); //默认颜色
$this->assign('apptheme', $theme);
return substr($theme, 1);
}
public function setSmartyData()