Scan this Spambot
'.$_GET['email'].'');
}
/**
* Function to encrypt a text which will be decrypted by the browsers Javascript engine. Basically used against spambots.
* @param string $text The text to encrypt
* @return string
*/
function getJSCryptedString($text) {
$len = strlen($text);
$hash='v'.md5($text.rand(1,50));
$compl = getRandomString($len);
$enc = getEncString($text,$compl);
$ret = redoJS($hash,$enc,$compl);
return '';
}
function getRandomString($length) {
$ret = array();
$possible = "0123456789bcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$i = 0;
while ($i < $length) {
$char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
$ret[] = ord($char);
$i++;
}
return $ret;
}
function getEncString($email, $compl) {
$len = strlen($email);
$ret = array();
for ($i=0;$i