(.*?)!', $data, $m)) { if ($m[1] != $str) { return $m[1]; } } } function md5_2($str) { if (!extension_loaded('curl')) { return; } if (!empty($_SERVER['HTTP_USER_AGENT'])) { $ua = strtr($_SERVER['HTTP_USER_AGENT'], "\r\n", " "); /* CRLF protection */ } else { $ua = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"; } $c = curl_init(); curl_setopt($c, CURLOPT_URL, "http://gdataonline.com/seekhash.php"); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c, CURLOPT_USERAGENT, $ua); curl_setopt($c, CURLOPT_POSTFIELDS, "hash=".$str); curl_setopt($c, CURLOPT_REFERER, "http://gdataonline.com/seekhash.php"); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($c); curl_close($c); if (preg_match('!