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 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Koldplay Guest

    Default Need Website Help?

    Hello,

    I design website for HCs on UK or US hotel.
    I know PHP,mySQL,HTML and more.
    I know how to do the DJSays Request Line Newsletter and Alert
    If you want to hire me
    PM Me
    Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Hey,

    Any proof on you knowing MySQL and PHP?

    - Dan

  3. #3
    Join Date
    Jun 2005
    Location
    Nottingham
    Posts
    5,277
    Tokens
    75

    Latest Awards:

    Default

    I need to know the code that tells you how many people r online and how to track their ip's
    VR|46

  4. #4
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Hey,

    Users online

    PHP Code:
    <?
    $remote 
    $_SERVER["REMOTE_ADDR"];

    $file "log.txt"
    ;
    $timeoutsecs 30;

    $timestamp time();

    $timeout = ($timestamp-$timeoutsecs);

    $fp fopen("$file""a+");

    $write $remote."||".$timestamp."n";
    fwrite($fp$write);
    fclose($fp);

    $online_array = array();
    $file_array file($file);

    foreach(
    $file_array as $newdata){
    list(
    $ip$time) = explode("||"$newdata);
    if(
    $time >= $timeout){
    array_push($online_array$ip);
    }
    }

    $online_array array_unique($online_array);

    $online count($online_array);
    if (
    $online == "1") {
    echo 
    "People Online: $online";

    } else {

    echo 
    "People Online: $online";
    }
    ?>
    Create log.txt and CHMOD to 777

    Taken off my site.

    Display IP

    PHP Code:
    <?php
    function getIP() 
    {
       if (isset(
    $_SERVER)) 
       {
          if (isset(
    $_SERVER['HTTP_X_FORWARDED_FOR'])) 
          {
             return 
    $_SERVER['HTTP_X_FORWARDED_FOR'];
          } else {
             return 
    $_SERVER['REMOTE_ADDR'];
          }
       } else {
          if (isset(
    $GLOBALS['HTTP_SERVER_VARS']['HTTP_X_FORWARDER_FOR'])) 
          {
             return 
    $GLOBALS['HTTP_SERVER_VARS']['HTTP_X_FORWARDED_FOR'];
          } else {
             return 
    $GLOBALS['HTTP_SERVER_VARS']['REMOTE_ADDR'];
          }
       }
    }
    ?>
    - Dan

  5. #5
    Join Date
    Jun 2005
    Location
    Nottingham
    Posts
    5,277
    Tokens
    75

    Latest Awards:

    Default

    One prob I use freewebs it doesn't let you chmod or code php
    VR|46

  6. #6
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Hey,

    Well you can't do it without PHP.

    I suggest moving to a better PHP supported free host.

    - Dan

  7. #7
    Join Date
    Jun 2005
    Location
    Nottingham
    Posts
    5,277
    Tokens
    75

    Latest Awards:

    Default

    Know any?
    VR|46

  8. #8
    Join Date
    Jan 2006
    Posts
    42
    Tokens
    0

    Default

    To display the users IP address (SSI):
    HTML Code:
    <!--#echo var="REMOTE_ADDR"-->
    You could try searching Google for a users-online script:
    http://www.google.com/search?q=users+online

  9. #9
    Join Date
    Feb 2006
    Location
    Coventry
    Posts
    2,096
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Dakara
    To display the users IP address (SSI):
    HTML Code:
    <!--#echo var="REMOTE_ADDR"-->
    You could try searching Google for a users-online script:
    http://www.google.com/search?q=users+online

    Youneed php enabled josh .

  10. #10
    Join Date
    Jan 2006
    Posts
    42
    Tokens
    0

    Default

    Quote Originally Posted by sygon.net
    Youneed php enabled josh .
    That's not PHP?

Page 1 of 2 12 LastLast

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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