Re: Autologin 2.2
List posts in the topic
Re: Autologin 2.2
msg# 1.1.1.1.1.2.1.1.1.1
I read the document a hundred times. I added a line in the mainfile.php, copies the two autologin files in include und changed one system block file.
Then I have the remember me checkbox, but when I check it no cookie will be set.
The following code in the autologin.php is never been executed:
if( empty( $_SESSION['xoopsUserId'] ) && isset( $_COOKIE['autologin_uname'] ) || @$_SERVER['SCRIPT_FILENAME'] == XOOPS_ROOT_PATH.'/user.php' ) {
include XOOPS_ROOT_PATH . '/include/autologin_main.php' ;
} else if( empty( $_SERVER['SCRIPT_FILENAME'] ) && stristr( $_SERVER['REQUEST_URI'] , '/user.php' ) ) {
$_SERVER['SCRIPT_FILENAME'] = XOOPS_ROOT_PATH.'/user.php' ;
include XOOPS_ROOT_PATH . '/include/autologin_main.php' ;
}
so I never reach the autologin_main.php.
NetRacer
Votes:14
Average:4.29
Posts tree