function encode_email($email, $name = '', $class = '') {
if (empty($name)) $name = $email;
//$name = static_lib::html_uml($name);
$email = preg_replace("/\"/","\\\"",$email);
$class = 'class="'.$class.'"';
if ($name != $email) $fullmail = "$name ";
else $fullmail = $email;
$old = "document.write('$name')";
$output = "";
for ($i=0; $i < strlen($old); $i++) {
$output = $output . '%' . bin2hex(substr($old,$i,1));
}
return " // */\n // ]]>
This email address is protected from spam bots. You need JavaScript enabled to view it.
";
}