Нужен программист

Nascent Nascent   13.04.2013 15:46   351  
 Уважаемые программисты, ниже представлен код в нем ошибку выдает, помогите исправить ее, пожалуйста))))
   }    public function logout(){        preg_match("/name=\"autheticity_token\" type=\"hidden\" value=\"([^\"]+)\"/", $this -> ajax("http://twitter.com/"), $auth);        $this -> ajax("http://mobile.twitter.com/session", "_method=delete&authenticity_token=" . urlencode($auth[1]))    }

Ответы на вопрос (15) Написать ответ
shift196 shift196   13.04.2013 15:53
Мда, тупо кусок кода
Не о чем не говорит
Можно конкретней ?
0
Jevgenijs Jevgenijs   13.04.2013 15:54
); } в конеце
0
Jevgenijs Jevgenijs   13.04.2013 15:54
*конце
0
Jevgenijs Jevgenijs   13.04.2013 15:57
...urlencode($auth[1])); }
0
menaligente menaligente   13.04.2013 16:52
+1
0
Apple68 Apple68   13.04.2013 15:59
Лучшеб весь кусок кода дал и сказал, какая именно ошибка
0
Nascent Nascent   13.04.2013 16:02
<?phperror_reporting(0);header("Content-Type: text/html; charset=UTF-8");class twit{ public function ajax($url, $post){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie"); curl_setopt($ch, CURLOPT_COOKIEJAR, ""); if($post){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $pst); } $res = curl_exec($ch); curl_close($ch); return $res; } public function getDetals($text){ $arr = array(); preg_match("/name=\"authenticity_token\" type=\"hidden\" value=\"([^<>]+)\"/", $text, $auth); preg_match("/ptcha\/(.*)gi'/", $text, $cap); $arr["auth"] = urlencode($auth[1]); $arr["captccoe"] = $cap[1]; $arr["captcha_img"] = "http://mobile.twitter.com/signup/captcha/" . $cap[1] . ".gif"; return $arr; } public function logout(){ preg_match("/name=\"autheticity_token\" type=\"hidden\" value=\"([^\"]+)\"/", $this -> ajax("http://twitter.com/"), $auth); $this -> ajax("http://mobile.twitter.com/session", "_method=delete&authenticity_token=" . urlencode($auth[1])) } public function makeAccount($fname, $name, $pass, $auth, $img, cap){ $uname .= "_" . substr(md5(uniqid()), 0, 5; $post = "authenticity_token=$auth&oauth_signup_client[fullname]=$fname&oauth_signup_client[screen_name]=$uname&oauth_signup_client[email]=&oauth_signup_client[password]=$pass&captcha_method=2&captcha_challenge_field=$img&captcha_response_field=$cap"; $acc = $this -> ajax("https://mobile.twitter.com/signup", $post); if(preg_match_all("/class=\"fieldWithErrors\">([^<>]+)</", $acc, $error)){ foreach($err as $error[1]){ echo "Error: " . $err . "\n"; return false; } }else{ echo $uname . ":" . $pass . "\n"; return true; } } public function makeForm($arr){ $auth = $arr["auth"]; $cap = $arr["captcha_code"]; $img = $arr["captcha_img"]; return <<<_HTML_<tr><td class="lab">Captcha Image: </td><td><input type="hidden" name="auth[]" value="$auth"> <input type="hidden" name="captcha_code[]" value="$cap"> <img src="$img" /></td></tr><tr><td class="lab">Captcha: </td><td><input type="text" name="captcha[]" /></td></tr>_HTML_; }}echo <<<_HTML_http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>http://a1.twimg.com/a/1284159889/images/favicon.ico" rel="shortcut icon" type="image/x-icon" /><title>Twitter Mass Account Maker</title><meta name="keywords" content="twitter, twitter account,mass twitter, mass maker, twitter account creator, twitter creator, mass twitter, twitter fake profile, profile maker"> <meta name="description" content="this is a free tool, which helps you to create mass twitter account with some simple clicks, you just need to fill the captcha and the accounts will be created for you" /> </had><body><style>@font-face { font-family: 'FifontLight'; src: url('fifont-webfont.eot'); src: url('fifont-webfont.woff') format('woff'), url('fifont-webfont.ttf') format('truetype'), url('fifont-webfont.svg#webfontiggd3xRd') format('svg'); font-weight: normal; font-style: normal; }body{margin: 0; background-image:url(main_bg.png);}h1{color:#999999; font-size:40px; font-family:"FifontLight"; font-style:italic;margin: 0 0 10px 0;}#main_u{ width:997px; height:60px; background:url(main_cont.png) 0 0;}#main_c{ width:897px; height:auto; background:url(main_cen.png) 0 0; padding:0px 50px 50px; text-align:center;}#main_b{ width:897px; height:60px; background:url(main_cont.png) 0 60px; padding:0px 50px 0; }.capt{background:#f5f5f5; border-bottom:1px solid #464646; border-left:3px solid #9c9c9c; padding:5px; margin:3px 10px}input[type=text], input[type=password]{ font-size:21px; color:#6a6a6a;padding:3px; border:1px solid #bdc7d8; width:317px; color:#969696; font-family:Verdana; font-size:11px}input[type=text]:focus, input[type=password]:focus {color:#000;}#footer{ border-top:1px solid #ddd; color:#bfbfbf; text-align:right; font-size:10px; font-family:Verdana; padding:2px;}.lab{color:#999999;font-size:10px; font-family:Verdana; padding:2px; text-align:right;}</style><center>
<div id="main_u"></div><div id="main_c"><center>
<img border="0" src="/twitter/logo.png" align="center">
_HTML_;$twit = new twit();$twit -> logout();
if(isset($_POST['nm'])){ num = $_POST['nm']; eco <<<_TML_<form action="index.php" method="post"><table><tr><td class="lb">Your Full Name: </td><td><input type="text" name="fullname" /></td></tr><tr><td class="lb">Desired Username Prefix <small>(random characters will be added)</small>: </td><td><input type="text" name="username" /></td></tr><tr><td class="lb">Password for all Accounts: </td><td><input type="password" name="pass" /></td></tr>
_HTML_;//authenticity_token=wPFxH0L7R/Zpsk=&oauth_signup_client[fullname]=&oauth_signup_client[screen_name]=&oent[email]=Mastermaniac&oauth_signup_client[password]=gfxl0v3r&captcha_method=2&captcha_challenge_field=1284388049Tae17d9a088c7a9253e12957e3c4ce4ac4dd6188&captcha_response_field= $twit = new twit(); for($i = 0;$i < $num;$i++){ $text = $twit -> ajax("https://mobile.twitter.com/signup"); $details = $twit -> etDetails($txt); if($details["auth"] != ""){ echo $twit -> makeForm($details); } flush(); } echo <<<_HTML_<tr><th colspan="2"><br /><input type="sumit" value="Create $um Twitter accounts!" /></th></tr></table></center></form></div></body></html>_HTML_;}elseif(isset(_POST['username'])){ $twt = new twit(); $uname = $_POST['username']; $pss = $_POST['pass']; $fame = $_POST['fullname']; $auth = $_POST['auth']; $img = $_POST['captcha_code']; $cp = $_POST['captcha']; $cn = 0; echo <<<_HTML_<div style='border:1px dashed #2F6FAB;padding:5px;background-color:#F9F9F9;'><pre style='margin:0px;padding:1em;width:97%;font-size:12px'>_HTML_; for($i = 0;$i < count($cap);$i++){ $bol = $twt -> makeAccount($fnme, $name, $pss, $auh[$i], $img[$i], $cap$i]); if($bol == true) { $cn += 1; } $twit -> logout(); flush(); } echo "\n\nMade $cn accounts!</pre></div>";}else{ echo <<<HTML_<form action="index.php" method="post"><table><tr><td class="lab">Number of accounts to be made: </td><td><input type="text" name="num" /></td></tr><tr><th colspan="2"><br /><input type="submit" value="Create Twitter accounts!" /></th></tr></table></form>_HTML_;}echo <<<_HTML_</div><div id="main_b"> <div id="footer">&copy; F-aQ.info</div></div></body></html>_HTML_;?>
33 строчка
-1
Nascent Nascent   13.04.2013 16:04
БЛИН, В НОТЕПАДИ ОН БОЛЕЕ КРАСИВЕЙ ВЫГЛЯДИТ И ПО НОТЕПАДУ 33 СТРОЧКА
0
shift196 shift196   13.04.2013 16:13
pastebin.com не слышали?
0
Nascent Nascent   13.04.2013 16:15
неа
0
shift196 shift196   13.04.2013 16:15
))
0
sfg1503 sfg1503   13.04.2013 16:59
public function makeAccount($fname, $name, $pass, $auth, $img, cap)
cap без доллара
0
sfg1503 sfg1503   13.04.2013 17:03
после $this -> ajax("http://mobile.twitter.com/session", "_method=delete&authenticity_token=" . urlencode($auth[1]))
ставим ";"
0
sfg1503 sfg1503   13.04.2013 17:05
$uname .= "_" . substr(md5(uniqid()), 0, 5;
перед точкой с запятой ставим скобку
0

Войдите, чтобы написать ответ
Вход Регистрация