Рональд01
перед строкой
CODE:
$return['IP_ADDRESS'] = preg_replace( "/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/", "\\1.\\2.\\3.\\4", $return['IP_ADDRESS'] ); //189 строка
вставь
CODE:
$br = 0;
$useragent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($useragent,"MSIE") != false) $br = 1;
if(strpos($useragent,"Opera") != false) $br = 2;
if(strpos($useragent,"Firefox") != false) $br = 3;
if(strpos($useragent,"Netscape") != false) $br = 4;
$return['BROWSER'] = $br;
потом после
CODE:
$onlinedata[$ip]['in'] = $where;
$onlinedata[$ip]['st'] = $exbb['sts']; //654 строка
вставь
CODE:
$onlinedata[$ip]['br'] = $vars['BROWSER'];
заменить
CODE:
$memberoutput[] = '<a href="profile.php?action=show&member='.$info['id'].'">'.$info['n'].'</a>';
на
CODE:
$memberoutput[] = ' <img src="im/images/'.$info['br'].'.png" alt="" title="Броузер пользователя"> <a href="profile.php?action=show&member='.$info['id'].'">'.$info['n'].'</a>';
должно работать |