mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
do not use session function if session not set
There is no session on the login page. So don't try to call functions from the session. Also set a different color of the header menu if a user switch has been done
This commit is contained in:
parent
dd6be4e690
commit
a54a10dbe0
|
@ -51,10 +51,21 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
|
||||||
echo '<script type="text/javascript" src="../styles/bootstrap/noty/themes/default.js"></script>'."\n";
|
echo '<script type="text/javascript" src="../styles/bootstrap/noty/themes/default.js"></script>'."\n";
|
||||||
|
|
||||||
echo '<link rel="shortcut icon" href="../styles/'.$this->theme.'/favicon.ico" type="image/x-icon"/>'."\n";
|
echo '<link rel="shortcut icon" href="../styles/'.$this->theme.'/favicon.ico" type="image/x-icon"/>'."\n";
|
||||||
|
if($this->params['session'] && $this->params['session']->getSu()) {
|
||||||
|
?>
|
||||||
|
<style type="text/css">
|
||||||
|
.navbar-inverse .navbar-inner {
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#882222), to(#111111));
|
||||||
|
background-image: webkit-linear-gradient(top, #882222, #111111);
|
||||||
|
background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
echo "<title>".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."</title>\n";
|
echo "<title>".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."</title>\n";
|
||||||
echo "</head>\n";
|
echo "</head>\n";
|
||||||
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
|
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
|
||||||
if($flashmsg = $this->params['session']->getSplashMsg()) {
|
if($this->params['session'] && $flashmsg = $this->params['session']->getSplashMsg()) {
|
||||||
$this->params['session']->clearSplashMsg();
|
$this->params['session']->clearSplashMsg();
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user