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 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Apr 2006
    Location
    Salford
    Posts
    2,108
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
                                 <?
    if ($_SESSION['username'] = '".$username."'); {
    echo(
    "member stuff.");
    }
    include_once 
    "login.html"
    ?>

  2. #12
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    PHP Code:
                                 <?
    if ($_SESSION['username'] = '".$username."'); {
    echo(
    "member stuff.");
    }
    include_once 
    "login.html"
    ?>
    How's that going to work Assasinator...?

  3. #13
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    invent your code = http://zetolic.com/ still shows login.
    Last edited by Colin-Roberts; 03-02-2008 at 07:44 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  4. #14
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    remove the include("login.html"); bit then..

    EDIT:

    PHP Code:
    <?php
    session_start
    (); // If this is the full document you require session_start
     
    if ($_SESSION['username'] == $username)
    {
     
        echo(
    "member stuff.");
     
    }
    else
    include(
    "login.html");
     
    ?>
    Should work.
    Coming and going...
    Highers are getting the better of me

  5. #15
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    PHP Code:
    <?php
    session_start
    (); // If this is the full document you require session_start

    if ( isset( $_SESSION["username"] ) && $_SESSION['username'] == $username && !empty( $_SESSION["username"] ) )
    {

        echo(
    "member stuff.");

    }
    else
    {

        include(
    "login.html");

    }

    ?>
    Simple...
    Last edited by Invent; 03-02-2008 at 07:47 PM.

  6. #16
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    still shows login.html below it
    I'm confused.
    Last edited by Colin-Roberts; 03-02-2008 at 07:48 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  7. #17
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Simon,
    Surely you dont need the isset bit, If it contains the username then of course its going to be set?
    Coming and going...
    Highers are getting the better of me

  8. #18
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    PHP Code:
    <?php
    session_start
    (); // If this is the full document you require session_start

    if ( isset( $_SESSION["username"] ) && $_SESSION['username'] == $username && !empty( $_SESSION["username"] ) )
    {

        echo(
    "member stuff.");

    }
    else
    {

        include(
    "login.html");

    }

    ?>
    That'll DEFINATELY work...

    Surely you dont need the isset bit, If it contains the username then of course its going to be set?
    Actually, you probably do need it...

    If the session ISN'T set then the value will be blank/null. If the $username variable isn't set (logged out) then it'll be blank/null. Using isset will stop it showing the members stuff if the session doesn't exists.
    Last edited by Invent; 03-02-2008 at 07:49 PM.

  9. #19
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    now even if i'm logged in it doesn't show the members links oh well.
    Last edited by Colin-Roberts; 03-02-2008 at 07:58 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


Page 2 of 2 FirstFirst 12

Posting Permissions

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