Location: PHPKode > scripts > WH Social > wh_social/framework/functions/crypt.php
<?php

    function crypt($email='row["email"]', $showmsg='Contact', $attributes ='class="emailencoder"') {
        $email = str_replace('@', '&#64;', $email);
        $email = str_replace('.', '&#46;', $email);
        $email = str_split($email, 5);

        $showmsg = str_replace('@', '&#64;', $showmsg);
        $showmsg = str_replace('.', '&#46;', $showmsg);
        $showmsg = str_split($showmsg, 5);

        $part1 = '<a href="ma';
        $part2 = 'ilto&#58;';
        $part3 = '" ' . $attributes . '>';
        $part4 = '</a>';

        $encoded = '<script type="text/javascript">';

            $encoded .= "document.write('$part1');";
            $encoded .= "document.write('$part2');";

            foreach($email as $e) {
                $encoded .= "document.write('$e');";
                }

            $encoded .= "document.write('$part3');";

            foreach($showmsg as $l) {
                $encoded .= "document.write('$l');";
                }

            $encoded .= "document.write('$part4');";

        $encoded .= '</script>';

        return $encoded;
        }

?>
Return current item: WH Social