$lbutx=rand(1,57); $lbuty=rand(1,17); $game_login_u=rawurlencode($game_login); $game_pass_u=rawurlencode($game_pass); $html=file_get_contents($url.'index.php'); $html=str_replace('"','',$html); $html=str_replace("'",'',$html); $html=str_replace('>',' >',$html); $html_2=str_replace(' ','',$html); $text_01='<input'; $text_1=explode($text_01,$html); $text_2=explode('<form',$html); $text_3=explode('>',$text_2); $text_12=explode('name=',$text_3); $text_13=explode(' ',$text_12); $text_14=explode('action=',$text_3); $text_15=explode(' ',$text_14); $f_forma_name=$text_13; $f_forma_action=$text_15; $no_error_1=substr_count($html,$text_01); while($no_error_1 >= $key){ $html_str2=explode('>',$text_1); $html_str=$html_str2; $text_4=explode('name=',$html_str); $text_5=explode(' ',$text_4); $text_6=explode('type=',$html_str); $text_7=explode(' ',$text_6); $text_8=explode('value=',$html_str); $text_9=explode(' ',$text_8); $text_10=explode($f_forma_name.'.'.$text_5.'.value=',$html_2); $text_11=explode(';',$text_10); $f_name=$text_5; $f_type=$text_7; $f_value=$text_9; $f_java_value=$text_11; $limit_1=substr_count($html,$f_forma_name.'.'.$f_name.'.value'); $limit_2=substr_count($html_str,'Логин'); $limit_3=substr_count($html_str,'Имя персонажа'); if($data_form_auth!='' and $znak!='&'){$znak='&';}; if($f_type=='password'){$data_form_auth.=$znak.''.$f_name.'='.$game_pass_u;} elseif(($limit_2 > 0 || $limit_3 > 0) and $f_type=='text'){$data_form_auth.=$znak.$f_name.'='.$game_login_u;} elseif($limit_1==2){$data_form_auth.=$znak.$f_name.'='.$f_java_value;} elseif($f_type=='image' and $f_name=="lbut"){$data_form_auth.=$znak.'lbut.x='.$lbutx.'&lbut.y='.$lbuty;} elseif($f_type=='hidden'){$data_form_auth.=$znak.$f_name.'='.$f_value;}; ++$key; };