Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
8b5ccd30
Commit
8b5ccd30
authored
Jun 08, 2008
by
tbrehm
Browse files
Fixed a problem with the logout when the php session has ended.
parent
30348f16
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/auth.inc.php
View file @
8b5ccd30
...
...
@@ -94,7 +94,8 @@ class auth {
public
function
check_module_permissions
(
$module
)
{
// Check if the current user has the permissions to access this module
if
(
!
stristr
(
$_SESSION
[
"s"
][
"user"
][
"modules"
],
$module
))
{
header
(
"Location: ../index.php"
);
echo
"LOGIN_REDIRECT:/index.php"
;
//header("Location: ../index.php");
exit
;
}
}
...
...
interface/web/js/scrigo.js
View file @
8b5ccd30
...
...
@@ -46,6 +46,9 @@ function submitLoginForm(formname) {
loadContent
(
parts
[
1
]);
//redirect = parts[1];
//window.setTimeout('loadContent(redirect)', 1000);
}
else
if
(
o
.
responseText
.
indexOf
(
'
LOGIN_REDIRECT:
'
)
>
-
1
)
{
// Go to the login page
document
.
location
.
href
=
'
index.php
'
;
}
else
{
document
.
getElementById
(
'
pageContent
'
).
innerHTML
=
o
.
responseText
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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