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 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: PHP Disguise

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

    Latest Awards:

    Default PHP Disguise

    Okay, Ive made this script for people who use proxies in school and dont want the school to know what the site is all about.

    It was inspired by Dentafrice, who originally used it for his proxy, so ive decided to make my own version of it.

    Basically, The use must refresh the page 4 times to get onto the actual proxy. If the user has not refreshed the page, it will show up a message of your choice.

    Code:
    PHP Code:
    <?php
    ob_start
    ();
     
    /*
    CONFIG
    */
     
    $message "Sorry, This website is not currently open!"#Message to show to users who havent refreshed.
     
    /*
    DONT EDIT BELOW
    */
     
    if($_COOKIE["refresh"]!=3)
    {
    if(isset(
    $_COOKIE["refresh"]))
    {
    $ref_value $_COOKE["refresh"] + 1;
    setcookie("refresh",$ref_value,time()+3600);
    die(
    "$message");
    }
    else
    {
    setcookie("refresh","1",time()+3600);
    die(
    "$message");
    }
    }
    ?>
    Its just a simple script and simply include it in every page you wish to protect in this way.

    Hope you enjoy

    Havent tested for errors yet, so if anybody finds any, just tell me

    Moved by Agesilaus (Forum Moderator) from Design and Development: Please post in the correct forum next time.
    Last edited by Agesilaus; 14-12-2007 at 06:17 AM.
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Nice i can use this!,
    Dose anyone know of a very very good free proxy?
    Dan

    [EDIT: It dosent work http://www.masterhostuk.com/v7/testttt.php sould come up with hello]
    Last edited by Luno1599; 12-12-2007 at 05:48 PM.


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

    Latest Awards:

    Default

    *Originally by Danny/Luckyrare
    *Already been posted many times
    *Your code is wrong

  4. #4
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Have u got a link for the other post?
    Dan


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

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    *Originally by Danny/Luckyrare
    *Already been posted many times
    *Your code is wrong

    * Sorry, i thought it was Denta's for some reason..
    * Ive never seen it posted before
    * Please post a suggestion on how to fix?

    EDIT:

    PHP Code:
    <?php
    ob_start
    ();
     
    /*
    CONFIG
    */
     
    $message "Sorry, This website is not currently open!"#Message to show to users who havent refreshed.
     
    /*
    DONT EDIT BELOW
    */
     
    if($_COOKIE["refresh"]!=3)
    {
    if(isset(
    $_COOKIE["refresh"]))
    {
    $ref_value $_COOKIE["refresh"] + 1;
    setcookie("refresh",$ref_value,time()+3600);
    die(
    "$message");
    }
    else
    {
    setcookie("refresh","1",time()+3600);
    die(
    "$message");
    }
    }
    ?>
    Sorry, Missed out an "I" in cookie.
    Last edited by MrCraig; 12-12-2007 at 07:26 PM.
    Coming and going...
    Highers are getting the better of me

  6. #6
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

  7. #7
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Ive seen this loads before, and there are far better ones anyway
    Chippiewill.


  8. #8
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Correction (Danny/Luckyrare) was the one to use this I never had a proxy although I did write a small script in Danny's post that seemed a little easier to use

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

    Latest Awards:

    Default

    I know lol

    For some reason i always get mixed up between you and danny

    And its not really that hard to use, All you have to do is edit the message variable to what you want to display it, then include the script

    Thanks for your comments anyways =]
    Coming and going...
    Highers are getting the better of me

  10. #10
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Nice idea actually, never would have thought of it myself. I'd be using sessions as oppose to cookies however, although that really is just an individual preference I guess.

Page 1 of 3 123 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
  •