PDA

View Full Version : Resolving Ip addresses question


sjim
11-14-2007, 07:43 PM
In the control panel under all username comments.
The ip addresses show up as mine. to the admins.

My host uses a cluster and a code change is necessary in the class core file for v bulletin to resolve them. The file needs to be changed to this

function fetch_ip()
{
return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP']

Can you tell me what file needs to be ammended in the arcade?
Thanks in advance for any assistance.

MrZeropage
11-16-2007, 05:36 PM
open /arcade/functions/functions.php and look for $addrs[] = $_SERVER['REMOTE_ADDR'];
$addrs[] = $HTTP_PROXY_USER;
$addrs[] = $REMOTE_ADDR;
$return['IP_ADDRESS'] = $this->select_var( $addrs );
If you adapt it there and get it working, this will be used all over the arcade :)