Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
95539119
Commit
95539119
authored
May 04, 2010
by
vogelor
Browse files
Improved Theme-Handling (nor every user can have its own theme)
parent
bb30da92
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/app.inc.php
View file @
95539119
...
...
@@ -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
...
...
interface/web/login/index.php
View file @
95539119
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment