if (empty($_REQUEST["n"])) { header("location:verification.php");; } if($_SERVER["HTTP_HOST"] == "bridgeweb.dyndns.org" || $_SERVER["HTTP_HOST"] == "192.168.1.120" ){ $url='http://bridgeweb.dyndns.org/works/Grammaradvisor/sitio/pdf/certificate.php'; }else{ $url='http://www.grammaradvisor.com/pdf/certificate.php'; } $n = $_REQUEST["n"]; $s =$_REQUEST["s"]; function pr($matriz) { echo "
"; print_r($matriz); echo ""; } function get_rnd_iv($iv_len){ $iv = ''; while ($iv_len-- > 0) { $iv .= chr(mt_rand() & 0xff); } return $iv; } function web360_decrypt($enc_text, $password, $iv_len = 16){ $enc_text = base64_decode(rawurldecode($enc_text)); $n = strlen($enc_text); $i = $iv_len; $plain_text = ''; $iv = substr($password ^ substr($enc_text, 0, $iv_len), 0, 512); while ($i < $n) { $block = substr($enc_text, $i, 16); $plain_text .= $block ^ pack('H*', md5($iv)); $iv = substr($block . $iv, 0, 512) ^ $password; $i += 16; } return preg_replace('/\\x13\\x00*$/', '', $plain_text); } $decryptName= web360_decrypt($s, 'web360', 5); $decryptId = web360_decrypt($n, 'web360', 5); ?>
|