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 13 of 13
  1. #11

    Default

    What errors are you enountering ?

    Perhaps your host doesnt have GD enabled.
    Managing Director
    Atomic Network Productions Ltd.
    The best in custom coding solutions.

  2. #12
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Last edited by :Blob; 27-10-2006 at 10:51 PM.

  3. #13
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Here is the background you need:
    Code:
    http://www.****************/uploads/6e629385ed.jpg
    PHP Code:
    <?php 
    session_start
    (); 
    // make a string with all the characters that we  

    // want to use as the verification code 
    $alphanum  "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

    // generate the verication code  
    $rand substr(str_shuffle($alphanum), 05); 

    // choose a background image 
    $bgNum 1

    // create an image object using the chosen background 
    $image imagecreatefromjpeg("background$bgNum.jpg"); 

    $textColor imagecolorallocate ($image25500);  

    // write the code on the background image 
    imagestring ($image558,  $rand$textColor);  
         
    // create the hash for the verification code 

    // and put it in the session 
    $_SESSION['image_random_value'] = md5($rand); 
         
    // send several headers to make sure the image is not cached   
       
    // taken directly from the PHP Manual 
         
    // Date in the past  
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");  

    // always modified  
    header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");  

    // HTTP/1.1  
    header("Cache-Control: no-store, no-cache, must-revalidate");  
    header("Cache-Control: post-check=0, pre-check=0"false);  

    // HTTP/1.0  
    header("Pragma: no-cache");      


    // send the content type header so the image is displayed properly 
    header('Content-type: image/jpeg'); 

    // send the image to the browser 
    imagejpeg($image); 

    // destroy the image to free up the memory 
    imagedestroy($image); 
    ?>

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
  •