Home
Hide Email php function
- Details
4. The code
The "hide_email()" PHP function is only 9 lines of code:
function hide_email($email)
{ $character_set = '+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz';
$key = str_shuffle($character_set); $cipher_text = ''; $id = 'e'.rand(1,999999999);
for ($i=0;$i<strlen($email);$i+=1) $cipher_text.= $key[strpos($character_set,$email[$i])];
$script = 'var a="'.$key.'";var b=a.split("").sort().join("");var c="'.$cipher_text.'";var d="";';
$script.= 'for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));';
$script.= 'document.getElementById("'.$id.'").innerHTML="<a href=\\"mailto:"+d+"\\">"+d+"</a>"';
$script = "eval(\"".str_replace(array("\\",'"'),array("\\\\",'\"'), $script)."\")";
$script = '<script type="text/javascript">/*<![CDATA[*/'.$script.'/*]]>*/</script>';
return '<span id="'.$id.'">[javascript protected email address]</span>'.$script;
}
Install and uninstall programs in windows
- Details
How to determine your windows memory
- Details
Here is a short video on 2 good ways to get your windows system RAM
(when you click play, the video area might go blank for just a few seconds)Adding allow all or overrides to a Blue Quarts Config
- Details
Blue Quarts
Adding allow all or overrides to a Blue Quarts Config
edit:
/etc/httpd/confs/httpd.conf
got to the end where lines are added for each host.
add this under the include line for the site.
example blelow of httpd.conf:
include blah......blach... /vhost/site10
<Directory /home/.sites/48/site10/web>
Options All AllowOverride All
</Directory>
Page 30 of 40