PEAK XOOPS - Autologin 2.2 in englishin japanese

Autologin 2.2

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum

question Autologin 2.2

msg# 1
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/31 14:21
bonehead  企霹始   Posts: 5
Ok, I have been trying to figure this out for awhile now and cant seem to get it working. I have copied over the files and made the changes where I needed to with the other two files.

I have the remember me box up and can check. When the cookie is placed it has an experation of "End of session" so when I close my session and then restart a session I have to log in again.

Any suggestions?

Thanks..
Votes:2 Average:5.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/9/1 12:41
GIJOE  黎扦烦菱   Posts: 4110
Quote:
I have the remember me box up and can check. When the cookie is placed it has an experation of "End of session" so when I close my session and then restart a session I have to log in again.

End of session means that the cookies for autologin will be deleted when you close the browser.

Votes:8 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2005/9/2 16:04
bonehead  企霹始   Posts: 5
I understand that, but I cant figure out as to why the cookies are set for end of session. The earlier versions of auto login worked great, but for some reason, I can not get the 2.2 one to work. It doesnt set the cookie for 30 days, or whatever the default is suppose to be. It is always just end of session.
Votes:12 Average:0.83

question Re: Autologin 2.2

msg# 1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2005/9/3 18:06
GIJOE  黎扦烦菱   Posts: 4110
I'm sorry that I can't support you.
Cookie problem is hard to be solved by other than admin.

I believe my autologin hack for 2.2 will work, if you don't miss some necessary methods.
Votes:1 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/9/18 5:11
bonehead  企霹始   Posts: 5
Thanks for the response. I will keep working on it. It is odd, that I do get the PHPSESSID cookie that expires at end of session, but I can not get the autologin_uname and autologin_pass cookies to show up.

I know it is checking for the autologin.php file, cause if I rename it, it does show errors, that it is looking for it in debug mode. It seems that is has a problem with the autologin_main.php file. It doesnt error out, it is just doesnt place the cookies from that file. Odd.. Anyway, thanks for the hacks, and hopefully I will be able to get this figured out.
Votes:7 Average:8.57

question Re: Autologin 2.2

msg# 1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2005/9/25 1:21
comflash2  企霹始   Posts: 3
i got that problem too...
Votes:14 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2005/10/5 5:19
Kizum  企霹始   Posts: 1
I have this hack installed and it works better than any previous autologin version. There's only one small problem that I can't find a solution. When an user enters an invalid user name which can't be found in the database, the error message in the redirect page displays 3 lines after the submission.

1. Incorrect Login! (_US_INCORRECTLOGIN)
2. Success
3. Sorry, no corresponding user info was found.(_ER_US_SORRYNOTFOUND)

Seems the "Success" message in the second line is displayed in the wrong place. Any way to get rid of it?
Votes:18 Average:5.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2
Previous post - Next post | Parent - Children.1 | Posted on 2005/12/18 20:31
netracer  企霹始   Posts: 4
Quote:
bonehead wrote:
Thanks for the response. I will keep working on it. It is odd, that I do get the PHPSESSID cookie that expires at end of session, but I can not get the autologin_uname and autologin_pass cookies to show up.

I know it is checking for the autologin.php file, cause if I rename it, it does show errors, that it is looking for it in debug mode. It seems that is has a problem with the autologin_main.php file. It doesnt error out, it is just doesnt place the cookies from that file. Odd.. Anyway, thanks for the hacks, and hopefully I will be able to get this figured out.

Hi

has this problem been solved yet. I just installed the auto-login hack und the autologin cookies will not be set.

In this forum all cookies are proberly set.

Thanks
NetRacer
Votes:9 Average:8.89

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1
Previous post - Next post | Parent - Children.1 | Posted on 2005/12/22 11:19
GIJOE  黎扦烦菱   Posts: 4110
Although I don't understand the real reason autologin-hack for 2.2.x can't work, I've just modified it.

It will work with some servers does not set $_SERVER['SCRIPT_FILENAME'] ...
Votes:8 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/11 3:04
netracer  企霹始   Posts: 4
Hi and sorry for my late response, but I couldn't remember in which forum I asked this question.

Since I still have the problem and still looking for a solution I ended up here again.

The cookies are not set. And other den that, my forum never reaches the autologin_main.php. I downloaded the newest loginhack without any success.

Please help.

NetRacer
Votes:7 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/11 5:13
GIJOE  黎扦烦菱   Posts: 4110
Read the document again.
Else I can't help you, sorry.
Votes:15 Average:4.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1
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

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1
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

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/19 5:30
bonehead  企霹始   Posts: 5
Wahoo. Got this to work finally. After doing the above, the script path for root was different than the Xoops root path. It seems the script path began one more folder deep than the root path I had. So I changed the root path to match and everything works great now. Very odd, but it works now! Thanks for the help everyone.
Votes:14 Average:4.29

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/19 7:21
charpress  企霹始   Posts: 3
I'm trying to picture what you did since I have the same problem. Are you saying the include statements are referring to a wrong folder? In other words, this:

'/include/autologin_main.php'

is what you changed?
Votes:8 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 .2 | Posted on 2006/2/19 16:06
bonehead  企霹始   Posts: 5
I had to change my define('XOOPS_ROOT_PATH', in main.php file to the same path that was being shown from var_dump( $_SERVER['SCRIPT_FILENAME'] .

var_dump( $_SERVER['SCRIPT_FILENAME'] was showing this, '/kunden/homepages/14/d94942082/htdocs as the root path, but my Xoops Root Path in Main.php was this '/homepages/14/d94942082/htdocs . See how the /kunden is missing from the Xoops root path. So I opened my main.php file and changed the Xoops root path to match and it started working. I did have to redo my gallery, because of the root path change messed that up, but only took a couple minutes.
Votes:1 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/2/21 20:17
netracer  企霹始   Posts: 4
Hi

same problem with me.
$_SERVER['SCRIPT_FILENAME'] and XOOPS_ROOT_PATH were different.

One was /customer/domain and the oder was /www/domain

Strange ...

Well thanks to all.

NetRacer
Votes:15 Average:4.67

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/22 7:39
charpress  企霹始   Posts: 3
Where on earth is "/kunden" coming from?

I get that too from var_dump.

I'm a bit uneasy about changing my mainfile.php root directory to get a login hack to work.
Votes:8 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/22 9:21
charpress  企霹始   Posts: 3
Adding "/kunden" to the mainfile.php root path makes autologin work, but then you start seeing other problems. For example, if you try and use the native Xoops search function you get:

XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run

So, on the whole I don't think the autologin hack is going to work in many applications. I know it doesn't on two separate severs I have tried.
Votes:8 Average:8.75

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/23 4:40
GIJOE  黎扦烦菱   Posts: 4110
I'm sorry that this site is not for supporting novices.
ask it to www.xoops.org
Votes:9 Average:8.89

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/23 20:46
GlaDiaC  企霹始   Posts: 4
Hi,

I have a strange problem with autologin. We switched to a new server (Apache 2.0.55, PHP 4.4.2, APC 3.0.8) and now autologin doesn't work any more. Coockies are created and read the right way.

I tracked it down till

$_POST['pass'] = $blw->decryptString( $old_encpass ) ;

After this line $_POST['pass'] is a string of strange cryptic ascii chars.
Votes:13 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/24 3:10
GIJOE  黎扦烦菱   Posts: 4110
You can try to replace any encrypt-decrypt routines.
eg) blowfish in PEAR
Votes:30 Average:0.00

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/24 6:13
GlaDiaC  企霹始   Posts: 4
You're right, it works using MCRYPT_BLOWFISH...

http://www.linux-games.net/uploads/tmp/autologin_main.php.txt

This version uses mcrypt if availiable.

Thanks,

-- gladiac
Votes:11 Average:9.09

question Re: Autologin 2.2

msg# 1.1.1.1.1.2.1.1.1.1.1.1.1.1.2.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/4/2 22:46
GlaDiaC  企霹始   Posts: 4
Votes:14 Average:5.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!