Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: .htaccess

  1. #21
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    Ok this proably isnt the best style script for multi user login but:
    PHP Code:
    <?php
    session_start
    ();
    $_SESSION['name'] = $name;
    {
    $name $_POST['name'];
    $password $_POST['password'];

    $user test;
    $pass test;

    if((
    $name == $user) && ($pass == $password)){
    echo 
    "Your logged in";
    Header("Location: private.php");
    }else{
    echo 
    "Your details where wrong please try again!";
    }

    $user2 test2;
    $pass2 test2
    if((
    $name == $user2) && ($pass2 == $password)){
    echo 
    "Your logged in";
    Header("Location: private.php");
    }else{
    echo 
    "Your details where wrong please try again!";
    }
    }
    ?>
    that should work but because the password wont match with the original sort may not. I used a javascript redirect to get around it when I used this script. Instead of Header();


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  2. #22
    Join Date
    May 2005
    Posts
    826
    Tokens
    0

    Default

    Quote Originally Posted by splintercell!
    Ok this proably isnt the best style script for multi user login but:
    PHP Code:
    <?php
    session_start
    ();
    $_SESSION['name'] = $name;
    {
    $name $_POST['name'];
    $password $_POST['password'];

    $user test;
    $pass test;

    if((
    $name == $user) && ($pass == $password)){
    echo 
    "Your logged in";
    Header("Location: private.php");
    }else{
    echo 
    "Your details where wrong please try again!";
    }

    $user2 test2;
    $pass2 test2
    if((
    $name == $user2) && ($pass2 == $password)){
    echo 
    "Your logged in";
    Header("Location: private.php");
    }else{
    echo 
    "Your details where wrong please try again!";
    }
    }
    ?>
    that should work but because the password wont match with the original sort may not. I used a javascript redirect to get around it when I used this script. Instead of Header();


    So all I would do is keeping on adding the bit with the pass and all??

  3. #23
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    You just need to keep adding this bit with different variables
    $user2 = test2;
    $pass2 = test2;
    if(($name == $user2) && ($pass2 == $password)){
    echo "Your logged in";
    Header("Location: private.php");
    }else{
    echo "Your details where wrong please try again!";
    }


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  4. #24
    Join Date
    May 2005
    Posts
    826
    Tokens
    0

    Default

    Quote Originally Posted by splintercell!
    You just need to keep adding this bit with different variables
    $user2 = test2;
    $pass2 = test2;
    if(($name == $user2) && ($pass2 == $password)){
    echo "Your logged in";
    Header("Location: private.php");
    }else{
    echo "Your details where wrong please try again!";
    }

    Thanks!!!


    Will you please start a chat with me, just click my sig!!!

  5. #25
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by splintercell!
    Ok this proably isnt the best style script for multi user login but:
    PHP Code:
    <?php
    session_start
    ();
    $_SESSION['name'] = $name;
    {
    $name $_POST['name'];
    $password $_POST['password'];

    $user test;
    $pass test;

    if((
    $name == $user) && ($pass == $password)){
    echo 
    "Your logged in";
    Header("Location: private.php");
    }else{
    echo 
    "Your details where wrong please try again!";
    }

    $user2 test2;
    $pass2 test2
    if((
    $name == $user2) && ($pass2 == $password)){
    echo 
    "Your logged in";
    Header("Location: private.php");
    }else{
    echo 
    "Your details where wrong please try again!";
    }
    }
    ?>
    that should work but because the password wont match with the original sort may not. I used a javascript redirect to get around it when I used this script. Instead of Header();

    Woulnt be very secure, since its just redirecting and would be complty bypassable "/ plus wold be more efficant puting the username and passwords in a array then looping the rest of it "/.

  6. #26
    Join Date
    May 2005
    Posts
    826
    Tokens
    0

    Default

    Quote Originally Posted by Mentor
    Woulnt be very secure, since its just redirecting and would be complty bypassable "/ plus wold be more efficant puting the username and passwords in a array then looping the rest of it "/.

    Well the protected page is saying , UR NOT LOGGED IN , so how is it bypassable,

    So my login is http://login.spyonline.co.uk and then once I have logged in it goes to schoolbypass.com/proxy.php.

    Which you will find that has a you are not logged in.

    Am I wrong.

    Post back if I am

  7. #27
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    oh yea, it works, i thoght it was just the script, aka the page in question not checking session data etc etc

  8. #28
    Join Date
    May 2005
    Posts
    826
    Tokens
    0

    Default

    Quote Originally Posted by Mentor
    oh yea, it works, i thoght it was just the script, aka the page in question not checking session data etc etc

    NOOOO, I am tinkering with it, I tried to add another user and pass and its gone on one.

    can any of you help :@


    Edit:

    I am going to see if I can fix it

  9. #29
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    you have to place the password in an array then Its because the user and pass your putting in dosent match the other ones.


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  10. #30
    Join Date
    May 2005
    Posts
    826
    Tokens
    0

    Default

    Quote Originally Posted by splintercell!
    you have to place the password in an array then Its because the user and pass your putting in dosent match the other ones.


    Its fine now, all fixed

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •