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 4 of 4 FirstFirst 1234
Results 31 to 32 of 32
  1. #31
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    PHP Code:
    <?php
     
    $page 
    $_GET"page" ]; // Change this for whatever you want the word after "?" be. (EG, using "page" you will do "?page=blah").
     
    $args = array( ".""http""www""/""\\" ); // This stops people from getting files in other directories.
    $page str_replace$args""$page );
     
    if( isset( 
    $page ) && trim$page ) != "" )
    {
     
        include( 
    $page '.php' );
     
    {
    elseif( !isset( 
    $page ) && trim$page ) == "" )
    {
     
        include( 
    "main.php" ); // This is the page that will be shown if you don't specify to load another page.
     
    }
    else
    {
     
        include( 
    "404.php" ); // This is the page that will be shown if the page specified to load doesn't exist.
     
    }
     
    ?>
    Just another method
    You typo'd it I think...
    After include( $page . '.php' ); you put another opening bracket. Shouldn't it be a closing?

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

    Latest Awards:

    Default

    Yeah, thanks.
    Fixed my post

Page 4 of 4 FirstFirst 1234

Posting Permissions

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