del
[Only registered and activated users can see links. Click Here To Register...]Quote:
PHP Code:function decode_ip($enc_ip) {
$ip_pop = explode('.', chunk_split($enc_ip, 2, '.'));
return hexdec($ip_pop[0]). '.' . hexdec($ip_pop[1]) . '.' . hexdec($ip_pop[2]) . '.' . hexdec($ip_pop[3]);
}
PHP scriptwriters should find this very usefulPHP Code:$getCharsIp = decode_ip( bin2hex( $getCharsName["user_ip_addr"] ) );
//Get the IP out of the database and put it in $encrypted_ip
$decrypted_ip = long2ip(bindec($encrypted_ip));