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 12 of 12
  1. #11
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    If anyone wants it, here is a smaller updated one.

    PHP Code:
    <?php
    session_start
    ();
    /**
     * @website     InterStudios.co.uk
     * @author         James Rozee 
     */
    switch ( $_GET['cmd'] ) {
        case 
    'link':
            if ( 
    $_SESSION['url'] === '' ) {
                
    header'Location: http://google.co.uk' );
            }
            else {
                
    header'Location: http://' $_SESSION['url'] . '/' );
            }
            break;
        default:

            
    // Add images to the array below, you can have as many as you want. Btw its ur job 2 do the size enit fosho
            
            
    $images = array(
                array(
                
    'image.png' 'url2site.com'
            
    ) , array(
                
    'test.gif' 'url2site2.com'
            
    )
            );
            
            
    // Choose image to display!
            
    $image $images[array_rand$images )];
            
    $image_source $image[0]; // url 2 img
            
    $image_url $image[1]; // url 2 link
            
            
    $file = @file_get_contents($image_source); // Read the file, get the contents.
            
    $img imagecreatefromstring($file);      // Create the image from the string
            
            
    header("Content-type: image/png");  // Lets use PNG, it's better.
            
    imagepng($img);  
            
    imagedestroy($img);
            
            
    $_SESSION['url'] = $image_url// Set the link session.
    }

  2. #12
    Join Date
    May 2008
    Posts
    910
    Tokens
    0

    Default

    Quote Originally Posted by Protege View Post
    In their TOS, it says they don't allow a banner exchange (I basically revised it after some-what-****-of-a-josh put **** on his acc) I also think the "random" is not that random, seems always to hit number #1
    (That's not me btw {Luckily ahah.})

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
  •