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 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47
  1. #21
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Anderman
    Yea but its actually a good tutoriul for once
    love you too :s


    2 Tutorials pinned OMG!
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

  2. #22
    Join Date
    Mar 2005
    Location
    Dog House
    Posts
    1,000
    Tokens
    0

    Latest Awards:

    Default

    No need to thank me :p i only wanted help and still didnt get it

  3. #23
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    The tutorial has been updated with an easier way of using include ive added it underneath the old tut
    Last edited by xEnigmA; 03-08-2005 at 05:41 PM.
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

  4. #24
    Join Date
    Nov 2004
    Location
    Daventry, Northants
    Posts
    1,510
    Tokens
    0

    Latest Awards:

    Default

    Yay!
    I finnaly added includes to The-Pit
    ;D

    Thanks for the tut man

  5. #25
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    That new way i put is so much easier isnt it, ross strangely finds that one harder?
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

  6. #26
    Join Date
    Nov 2004
    Location
    Daventry, Northants
    Posts
    1,510
    Tokens
    0

    Latest Awards:

    Default

    I used the old one
    PHP Code:
    <?php 
    $_GET
    ['page'];   
    switch(
    $page

    case 
    "home"
    include(
    'home.php'); 
    break; 
    case 
    "news"
    include(
    'news.php'); 
    break; 
    case 
    "tutorials"
    include(
    'tutorials.php'); 
    break; 
    case 
    "contact"
    include(
    'contact.php'); 
    break; 
    case 
    "sitemap"
    include(
    'sitemap.php'); 
    break; 
    case 
    "admin"
    include(
    'admin.php'); 
    break; 
    default: 
    include(
    'home.php'); 
    break; 

    ?>
    That one

  7. #27
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    the other ones easier >:~D
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

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

    Latest Awards:

    Default

    No it's not . . . Maybe it's just the way you explained it? I don't know. But it doesn't look easier.
    REMOVED

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

  9. #29
    Join Date
    Jul 2004
    Location
    Habbo Newsie Office
    Posts
    352
    Tokens
    0

    Default

    PHP includes are sometimes used instead of iframes it makes another page appear as though it is actually on the page similar to iframes without all of the scrollbars right making a php include is pretty basic

    Sorry for asking this really stupid question but acording to this quote if ever my english got better it is saying that the php navigation took out the '' Iframes '' and place is content where it is but without having any code, its just simply adding the text were u want it? So if i am right u place the code like a simply text like cutenews thing (were u want it to be appear) and then where u place ur navigation u put the link that will activate the php page?

    But yeah it would be fun to clarifie this for me if u understand what i said, quite tired today, and yeah nice tutorial throught even if i dont get to much the difference between a php navigation and html navigation unless the coding is really different .
    ABC = Alway Be Careful
    Check out!
    Habbo Newsie

  10. #30
    Join Date
    Aug 2005
    Posts
    65
    Tokens
    0

    Default

    Bad way to go about it... A user could simply request ?page=../../etc/passwd and they could view it (UNIX)!
    Make sure you put
    PHP Code:
    include('news.php'); 
    as
    PHP Code:
    include('./path/to/news.php'); 
    otherwise expect your box to be exploited!

    Heres the code I use on all of my websites, you should use it too (remember to change the array $pages).
    If you have 50odd PHP pages you'll have a big *** PHP code, so heres a loop that will go through an array of pages and include them, also exploit safe.
    'name' => './path/to/file', etc.
    http://somesite.com/?i=name would load up path/to/file
    You can change $GET['x'] accordingly ?x=name
    PHP Code:
    <?php
         $default 
    './i/news.php';
         
    $pages = array('about' => './i/about.php','servers' => './i/servers.php','services' => './i/services.php');
         if(
    array_key_exists($_GET['i'], $pages))
         {
            foreach(
    $pages as $pageid => $pagename) {
            if(
    $_GET['i'] == $pageid && file_exists($pagename))
            {
              include 
    $pagename;
            }
            }
            } else {
              include 
    $default;
            }
    ?>

Page 3 of 5 FirstFirst 12345 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
  •