Menu

#21 How to fix the forgetful login problem

open
nobody
None
5
2003-08-01
2003-08-01
No

Hi

the reason why so many people have been having
problems
with not being able to remain loged in (getting loged out
after
trying to do anything), is because nphp is using an un
initialised query in its get statement

to fix it only requires 2 files to be altered, the nphpd.php
needs
to have the following lines changed

at line 199, it should read

if(isset($QUERY_STRING))
{
$temporary_array = explode("&",$QUERY_STRING);
$temporary_array2 = explode("=", $temporary_array
[0]);
$nphp_common["qstring"] = $temporary_array2[0];

unset($temporary_array[0]);
unset($temporary_array2[0]);
}

and then all the links in nhtml.php need ot have ?post, ?
users,
and all the other links changed to ?post=1, ?users=1, ?
main=1, etc

doing that will fix that nasty login problem

later
Clayton Smith

Discussion

  • Clayton Smith

    Clayton Smith - 2003-08-01

    Logged In: YES
    user_id=832850

    Attachment contines 2 fixed files

     
  • Clayton Smith

    Clayton Smith - 2003-08-01

    A small patch

     
  • Nobody/Anonymous

    Logged In: NO

    Your patch works great!
    Everything works exept the usage of the settingspage.
    I can't change my settings:-(

     

Log in to post a comment.