Commit 95539119 authored by vogelor's avatar vogelor
Browse files

Improved Theme-Handling (nor every user can have its own theme)

parent bb30da92
......@@ -203,6 +203,10 @@ class app {
if(isset($_SESSION['s']['user']) && $this->auth->has_clients($_SESSION['s']['user']['userid'])) {
$this->tpl->setVar('is_reseller', 1);
}
/* Show username */
if(isset($_SESSION['s']['user'])) {
$this->tpl->setVar('cpuser', $_SESSION['s']['user']['username']);
}
}
} // end class
......
......@@ -152,7 +152,11 @@ class login_index {
$app->plugin->raiseEvent('login',$this);
echo 'HEADER_REDIRECT:'.$_SESSION['s']['module']['startpage'];
/*
* We need LOGIN_REDIRECT instead of HEADER_REDIRECT to load the
* new theme, if the logged-in user has another
*/
echo 'LOGIN_REDIRECT:'.$_SESSION['s']['module']['startpage'];
exit;
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment