Menu ▾ ▴

#3 ?admin is b0rked...

open
nobody
None
8
2006-08-05
2006-08-05
Pi
No

the login panel was borked... couldn't login... after
spending some great deal of time combing the code ive
found the problem within an include file.

\includes\para.inc.php

line 98 currently reads:
else if(isset($admin)) {

but it should read:
else if(isset($_GET['admin'])) {

a simple coding error if one is going too quickly...
hope this helps everyone out a bit :)

(this erorr is specific to osqdb-v0.1.alpha as far as i
can tell)

Discussion

  • Pi

    Pi - 2006-08-05
    • priority: 5 --> 8
    • status: open --> open-fixed
     
  • Pi

    Pi - 2006-08-05

    Logged In: YES
    user_id=996000

    i got hastey in this fix... it seems to show the form if i
    do this, but nothing further, upon deeper look into the code
    im finding some possible problems with the sessions include
    file.

    is this right?

    if(isset($pwd2)){ $pwd=md5($pwd2); }
    if(!isset($uid)) { $loggedin = false; }

    should it not read

    if(isset($_POST['pwd2'])){ $pwd=md5($_POST['pwd2']); }
    if(!isset($_POST['uid'])) { $loggedin = false; }

    need advise from original coding team, im willing to help
    with repairs but this seems confusing to me. not sure of the
    coding style that is being used.

     
  • Pi

    Pi - 2006-08-05
    • summary: ?admin is b0rked... fix listed within --> ?admin is b0rked...
    • status: open-fixed --> open
     
  • zoru

    zoru - 2006-12-31

    Logged In: YES
    user_id=1680180
    Originator: NO

    this is how i did it..

    $uid = $_POST['uid'];
    $pwd2 = $_POST['pwd2'];
    $pwd=md5($pwd2);

    and it works... well not 100% because i have to input my login credentials twice so it logs you in but i think thats another story.

     

Log in to post a comment.