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 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: .htaccess

  1. #11
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

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

    Default

    Quote Originally Posted by iRoss
    Thanks!!! +rep


    But it didnt really help

  3. #13
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    What's wrong with it? It looks ok to me?

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

    Default

    Quote Originally Posted by iRoss
    What's wrong with it? It looks ok to me?

    It just doesmt seem right,

    I need a simple login and a a little bit of code so you cant go to the files, but only throught the login.

    Can anyone help??

  5. #15
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    Yes, that's it.

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

    Default

    Quote Originally Posted by iRoss
    Yes, that's it.
    Hmmmmm, I will have another look.

    Are you sure that you cant use a .htacess??

    Just a user and passwrod will do, and to make multpal user names and pass's by editing the file

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

    Latest Awards:

    Default

    Ok here is the login bit
    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!";
    }
    }
    ?>
    and then in the file you want it to go to private.php in this case add this atthe top
    PHP Code:
    <?php
    session_start
    ();
    if (!
    $_SESSION['name']) {
        echo 
    "You aren't logged in.";
        include(
    "login_form.html");
        exit();
    }
    ?>


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

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

    Default

    Quote Originally Posted by splintercell!
    Hmmm Ill try and write you something not sure it will work though

    Anything at the moment is good,

    Or A javascript login.

    Then I little code that will stop people hotlinking the page so say I didnt want anyone coming to habbox.com I would put a code in the page and then they can only get in through the javascript login.

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

    Latest Awards:

    Default

    Also the login for is
    HTML Code:
    <form method="post" action="login.php">
    Name: <input name="name" type="text" /><br>
    Password: <input name="password" type="password" /><br>
    <input name="submit" value="Login" type="submit" />
    </form>


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

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

    Default

    Quote Originally Posted by splintercell!
    Also the login for is
    HTML Code:
    <form method="post" action="login.php">
    Name: <input name="name" type="text" /><br>
    Password: <input name="password" type="password" /><br>
    <input name="submit" value="Login" type="submit" />
    </form>

    OMG!!!!! Thank you !!!

    SOOOOO much, One more question, id I want to put more login details what do I do??


    I will be giving you furni for defo,!!

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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