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
lolo888
ISPConfig 3
Commits
9540ba40
Commit
9540ba40
authored
Nov 27, 2013
by
Till Brehm
Browse files
Fixed PHP syntax errors in app.inc.php.
parent
8d178ee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/app.inc.php
View file @
9540ba40
...
...
@@ -71,9 +71,9 @@ class app {
/* check if user wants to stay logged in */
if
(
isset
(
$_POST
[
's_mod'
])
&&
isset
(
$_POST
[
's_pg'
])
&&
$_POST
[
's_mod'
]
==
'login'
&&
$_POST
[
's_pg'
]
==
'index'
&&
isset
(
$_POST
[
'stay'
])
&&
$_POST
[
'stay'
]
==
'1'
)
{
/* check if staying logged in is allowed */
$
app
->
uses
(
'ini_parser'
);
$tmp
=
$
app
->
db
->
queryOneRecord
(
'SELECT config FROM sys_ini WHERE sysini_id = 1'
);
$tmp
=
$
app
->
ini_parser
->
parse_ini_string
(
stripslashes
(
$tmp
[
'config'
]));
$
this
->
uses
(
'ini_parser'
);
$tmp
=
$
this
->
db
->
queryOneRecord
(
'SELECT config FROM sys_ini WHERE sysini_id = 1'
);
$tmp
=
$
this
->
ini_parser
->
parse_ini_string
(
stripslashes
(
$tmp
[
'config'
]));
if
(
!
isset
(
$tmp
[
'misc'
][
'session_allow_endless'
])
||
$tmp
[
'misc'
][
'session_allow_endless'
]
!=
'y'
)
{
$this
->
session
->
set_timeout
(
$tmp
[
'value'
]);
session_set_cookie_params
((
$tmp
[
'value'
]
*
60
)
+
300
);
// make the cookie live 5 minutes longer
...
...
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