6d5 < $gbcol="0,0,255"; 8,38d6 < < function server_remote_addr() { < global $gbcol; < $rma = $_SERVER['REMOTE_ADDR']; < $ua = strtolower($_SERVER['HTTP_USER_AGENT']); < $uas=explode('.', str_replace('::1','65.254.95.247',$rma)); // 65.254.93.32 < < if (sizeof($uas) >= 3) { < $gbcol='' . ($uas[0] % 256); < $gbcol.=',' . ($uas[1] % 256); < $gbcol.=',' . (($uas[2] + $uas[(-1 + sizeof($uas))]) % 256); < } < < // you can add different browsers with the same way .. < if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua)) < $rma = '000000'.$rma; < elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua)) < $rma = '00000'.$rma; < elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua)) < $rma = '0000'.$rma; < elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua)) < $rma = '000'.$rma; < elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua)) < $rma = '00'.$rma; < elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua)) < $rma = '0'.$rma; < return str_replace(":", "_", $rma); < } < < < server_remote_addr(); 142,145d109 < < } else { < echo ''; < exit;