1
DobePhat
line 76 of checklogin.php possible fix
  • 2003/10/29 5:07

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Xoops 2.0.3to 2.0.3

I used to not have a problem with login, would go straight to whatever news or forum topic I was reading before I logged in. Now it redirects me to the index.php.

I think the culprit is line 76 of checklogin.php

if (!empty($HTTP_POST_VARS['xoops_redirect']) && !strpos($HTTP_POST_VARS['xoops_redirect'], 'register')) {

is this a redirect problem I have now?
this line is very different from the last one I had because of the "strpos" addition and is the only place Ive been able to isolate so far....

I dont use a module for my start page Ive selected "None"
And I still can figure out why we get kicked back to the index and not the forum or news topic like when I log on to this site.

Any help greatly appreciated!

2
DobePhat
Re: line 76 of User.php
  • 2003/11/2 17:38

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


grrrrrr
xoops redirect sux! Occurs everytime we do an upgrade...
and there is always some new weird way to fix. (note:this must be php related not xoops, perhaps even related to IIS?!)
grrrrrr

3
onokazu
Re: line 76 of User.php
  • 2003/11/2 18:39

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Ok, change the line as it was before in 2.0.3. For now, I do not have any idea why it is not working on your server.

4
DobePhat
Re: line 76 of checklogin
  • 2003/11/2 19:07

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


will restore some of the lines from my previous version and let you know if it works,
It may not of course..but well see...
(BTW: this problem has to be on MY end somewhere because everything else is really smooth)
Thanks!

(No wonder no one replied to this...I had the worng title...Im referring to checklogin.php not user! DOH! )

5
DobePhat
Re: line 76 of checklogin-fixed temp
  • 2003/11/2 19:58

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


it works now?!
Re: in 2.0.5 version
lines 76-77 (on my editor)

check login version php1.15


if (!empty($HTTP_POST_VARS['xoops_redirect']) && !strpos($HTTP_POST_VARS['xoops_redirect'], 'register')) {



Changed back to
checklogin phpversion 1.10
if (isset($HTTP_POST_VARS['xoops_redirect'])) {
$parsed = parse_url(XOOPS_URL);



---login check
dont know why I didnt try this sooner...this solves all my problems with redirect while loging in and viewing a news or forum topic. -Thanks!!

NOTE:this may have to do with a hack I have long forgotten about....so if you are not having problems dont try this fix..and always make a backup.

Login

Who's Online

234 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 234


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits