ok then, would this run into problems because i commented out some of the code
Code:
function online_guestname()
{
global $user;
$host = array(
'Inktomi' => '141.185.209',
'Inktomi' => '169.207.238',
'Inktomi' => '199.177.18.9',
'Inktomi' => '202.212.5.',
'Inktomi' => '203.255.234.',
'Inktomi' => '209.1.12',
'Inktomi' => '209.1.13.',
'Inktomi' => '209.1.38',
'Inktomi' => '209.131.',
'Inktomi' => '209.185.122',
'Inktomi' => '209.185.141',
'Inktomi' => '209.185.143',
'Inktomi' => '209.67.206.',
'Inktomi' => '210.150.10',
'Inktomi' => '210.150.25',
'Inktomi' => '211.169.241.21',
'Inktomi' => '213.216.143.',
'Inktomi' => '216.155.200',
'Inktomi' => '216.155.204.40',
'Inktomi' => '216.198.200.123',
'Inktomi' => '216.239.193.',
'Inktomi' => '216.32.237.',
'Inktomi' => '62.172.199.',
'Inktomi' => '62.27.59.245',
'Inktomi' => '64.75.36.',
'Inktomi' => '66.196.65',
'Inktomi' => '66.196.73',
'Inktomi' => '66.196.74',
'Inktomi' => '66.196.78',
'Inktomi' => '66.196.81.',
'Inktomi' => '66.196.90.',
'Inktomi' => '66.196.97',
'Inktomi' => '66.196.99.',
//original
'Inktomi' => '66.196.72.',
'Alta Vista' => '216.39.48.',
'Google' => '216.239.46.',
//end original
'Google' => '164.71.1.',
'Google' => '192.51.44.',
'Google' => '207.88.29.130',
'Google' => '209.185.',
'Google' => '210.131.75.',
'Google' => '212.105.61.249',
'Google' => '216.239.45.4',
'Google' => '62.27.59.227',
'Google' => '63.83.186.67',
'Google' => '64.68.8',
'Google' => '64.208.32.',
'Google' => '64.208.36',
'Google' => '64.208.37',
'Infoseek' => '195.145.119.',
'Infoseek' => '198.5.208.',
'Infoseek' => '198.5.210.',
'Infoseek' => '202.33.250.',
'Infoseek' => '204.162.96.',
'Infoseek' => '204.162.97.',
'Infoseek' => '204.162.98.',
'Infoseek' => '204.202.132.19.',
'Infoseek' => '205.226.201.',
'Infoseek' => '205.226.203.',
'Infoseek' => '205.226.204.',
'Infoseek' => '206.3.30.',
'Infoseek' => '210.155.157.',
'Infoseek' => '210.155.159.',
'Infoseek' => '210.236.233.',
'Infoseek' => '211.13.222.230.',
'Infoseek' => '211.18.214.194.',
'Infoseek' => '212.185.44.',
'Excite' => '198.3.103',
'Excite' => '199.172.148.',
'Excite' => '199.172.149.',
'Excite' => '199.172.152.',
'Excite' => '199.172.153.',
'Excite' => '199.172.156.',
'Excite' => '199.172.157.',
'Excite' => '204.62.245.',
'Excite' => '216.131.41.',
'Lycos' => '166.48.225.254',
'Lycos' => '202.232.118.',
'Lycos' => '206.79.171',
'Lycos' => '207.77.90',
'Lycos' => '207.77.91.184',
'Lycos' => '208.146.26',
'Lycos' => '208.146.27.',
'Lycos' => '209.202.192.',
'Lycos' => '209.202.193',
'Lycos' => '209.202.194.',
'Lycos' => '209.202.240.',
'Lycos' => '209.67.228',
'Lycos' => '209.67.229',
'Lycos' => '211.51.63.4',
'Lycos' => '64.89.33',
'NorthernLight' => '195.228.240.177',
'NorthernLight' => '204.166.111.29',
'NorthernLight' => '205.181.75.',
'NorthernLight' => '208.219.77',
'NorthernLight' => '216.34.102',
'NorthernLight' => '216.34.109.',
'NorthernLight' => '64.95.79.',
'Alta Vista' => '128.177.24',
'Alta Vista' => '194.112.94.',
'Alta Vista' => '194.201.146.',
'Alta Vista' => '194.221.84.',
'Alta Vista' => '194.51.33.',
'Alta Vista' => '204.123.13.',
'Alta Vista' => '204.123.2',
'Alta Vista' => '204.123.9',
'Alta Vista' => '204.152.190',
'Alta Vista' => '204.152.191',
'Alta Vista' => '205.229.83.18',
'Alta Vista' => '208.185.243.148',
'Alta Vista' => '208.221.32',
'Alta Vista' => '208.221.35',
'Alta Vista' => '209.247.40.246',
'Alta Vista' => '209.73.16',
'Alta Vista' => '209.73.174.',
'Alta Vista' => '212.187.213.',
'Alta Vista' => '212.187.226',
'Alta Vista' => '212.187.227',
'Alta Vista' => '216.39.48.',
'Alta Vista' => '216.39.50',
'Alta Vista' => '216.198.200.',
'Alta Vista' => '64.152.75',
);
foreach( $host as $name => $ip )
{
if ( stristr( $user['host'] , $ip ) )
{
return '<highlight>' . $name . '</highlight>';
}
}
return 'Guest';
}