Page 1 of 1

Oh Scotty ^.^

Posted: Sun Jan 23, 2005 2:36 am
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 /biggrin.gif\' class=\'bbc_emoticon\' alt=\':D\' /> just an idea

us3rX /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />

Oh Scotty ^.^

Posted: Sun Jan 23, 2005 2:53 am
by Tami
Like the ones hiding on a proxy /bigwink.gif\' class=\'bbc_emoticon\' alt=\';)\' />

Oh Scotty ^.^

Posted: Sun Jan 23, 2005 11:05 am
by Scott
Huh? I\'m so lost <_<

Oh Scotty ^.^

Posted: Sun Jan 23, 2005 6:54 pm
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 /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />

Oh Scotty ^.^

Posted: Sun Jan 23, 2005 9:41 pm
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. /head_hurts_kr.gif\' class=\'bbc_emoticon\' alt=\'(ow)\' /> You might find a invision mod for something like this - could give that a try.