------------------------------------------------------------- */ /* returns obfuscated text */ function obfuscate_text($string) { // returns javascript code $new_string = str_rot13($string); $new_string = str_replace('@', '@', $new_string); // swap @ for the html character code $new_string = str_replace('"', '\\"', $new_string); // escape doublequotes $new_string = str_replace('.', '\056', $new_string); // swap the dots with javascript . characters $result=''; return $result; } /* Given an email address, creates a nice obfuscated email style address */ function obfuscate_email($email) { $string = ''.$email.''; return obfuscate_text($string); } ?>