PEAK XOOPS - Re: Autologin 2.2 in englishin japanese

Re: Autologin 2.2

List posts in the topic

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1
depth:
9
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/11 6:42
netracer  二等兵   Posts: 4
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

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!