File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ public function __construct() {
7171 /* check if user wants to stay logged in */
7272 if (isset ($ _POST ['s_mod ' ]) && isset ($ _POST ['s_pg ' ]) && $ _POST ['s_mod ' ] == 'login ' && $ _POST ['s_pg ' ] == 'index ' && isset ($ _POST ['stay ' ]) && $ _POST ['stay ' ] == '1 ' ) {
7373 /* check if staying logged in is allowed */
74- $ app ->uses ('ini_parser ' );
75- $ tmp = $ app ->db ->queryOneRecord ('SELECT config FROM sys_ini WHERE sysini_id = 1 ' );
76- $ tmp = $ app ->ini_parser ->parse_ini_string (stripslashes ($ tmp ['config ' ]));
74+ $ this ->uses ('ini_parser ' );
75+ $ tmp = $ this ->db ->queryOneRecord ('SELECT config FROM sys_ini WHERE sysini_id = 1 ' );
76+ $ tmp = $ this ->ini_parser ->parse_ini_string (stripslashes ($ tmp ['config ' ]));
7777 if (!isset ($ tmp ['misc ' ]['session_allow_endless ' ]) || $ tmp ['misc ' ]['session_allow_endless ' ] != 'y ' ) {
7878 $ this ->session ->set_timeout ($ tmp ['value ' ]);
7979 session_set_cookie_params (($ tmp ['value ' ] * 60 ) + 300 ); // make the cookie live 5 minutes longer
You can’t perform that action at this time.
0 commit comments