Oh Scotty ^.^

Moderators: Moderator, Global Moderator

Post Reply
us3rX
Hero Member
Hero Member
Posts: 1194
Joined: Thu May 06, 2004 6:11 am

Oh Scotty ^.^

Post by us3rX »

[code]<?php
<?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\'];
       }
   }
}

?>

?>[/code]

you might be able to use that for the \"Online Users\" so the admins can see the \"true\" ip of a user <img src=\'http://www.killanet.net/forum3/public/s ... iggrin.gif\' class=\'bbc_emoticon\' alt=\':D\' /> just an idea

us3rX <img src=\'http://www.killanet.net/forum3/public/s ... /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />
[align=center]

Image

"Time is never wasted, when your wasted all the time" ~ Radio Dj/Unknown Source

"Death is the inevitable end to the suffering of the living." ~Unknown

"You were born an original. Don't die a copy" ~Murdoc Niccals

[/align]
Tami
Administrator
Administrator
Posts: 10892
Joined: Sun Apr 25, 2004 1:05 pm

Oh Scotty ^.^

Post by Tami »

Like the ones hiding on a proxy <img src=\'http://www.killanet.net/forum3/public/s ... igwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />
Image

[color=\"#41211C\"]It takes years to build up trust and only seconds to destroy it

[/color]
Scott
Administrator
Administrator
Posts: 1651
Joined: Sun Apr 25, 2004 1:08 pm

Oh Scotty ^.^

Post by Scott »

Huh? I\'m so lost <_<
us3rX
Hero Member
Hero Member
Posts: 1194
Joined: Thu May 06, 2004 6:11 am

Oh Scotty ^.^

Post by us3rX »

like on the admin online user list... how it displays the user name(ip) that script will make their true ip show, so incase they are behind a proxy?

us3rX <img src=\'http://www.killanet.net/forum3/public/s ... /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />
[align=center]

Image

"Time is never wasted, when your wasted all the time" ~ Radio Dj/Unknown Source

"Death is the inevitable end to the suffering of the living." ~Unknown

"You were born an original. Don't die a copy" ~Murdoc Niccals

[/align]
Scott
Administrator
Administrator
Posts: 1651
Joined: Sun Apr 25, 2004 1:08 pm

Oh Scotty ^.^

Post by Scott »

Eek, that would work - except ipb has a session db instead of the $_SESSION array, which would mean editing numerous files which would break the forum. <img src=\'http://www.killanet.net/forum3/public/s ... rts_kr.gif\' class=\'bbc_emoticon\' alt=\'(ow)\' /> You might find a invision mod for something like this - could give that a try.
Post Reply

Return to “Uber Coffee Room”