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.1
depth:
10
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/12 6:15
GIJOE  ÀèǤ·³Áâ   Posts: 4110
OK.
You can research the cause by editing autologin.php

var_dump( $_SERVER['SCRIPT_FILENAME'] , $_SERVER['REQUEST_URI'] , XOOPS_ROOT_PATH ) ; // insert temporary
exit ; // insert temporary

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' ;
}
You can find the reason easily.
After this, remove the 2 lines.
Votes:1 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!