Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/hosting/localhost/spam.php on line 20 <?php set_time_limit(0); $USER = 'yaaaaa'; $PASS = 'faasxanaas!'; $COMMENTS = array('cananm') //Login pe filelist.ro $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/takelogin.php"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"); $date = array( $username' = 'yaaaaa' , $password' => 'faasxanaas' ); curl_setopt($ch, CURLOPT_POSTFIELDS, $date); $output = curl_exec($ch); curl_close($ch); //Ia sursa RSS $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/rss.php"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"); $rss = curl_exec($ch); curl_close($ch); $rss = str_replace("<link>http://filelist.ro/</link>","",$rss); $ids = array(); while (substr_count($rss, '<link>') > 0) { $link = substr($rss,strpos($rss,'<link>') + 6,strpos($rss,'</link>')-(strpos($rss,'<link>') + 6)); $single = str_replace("http://filelist.ro/details.php?id=","",str_replace("&hit=1","",$l ink)); array_push($ids,$single); $rss = str_replace('<link>' . $link . '</link>','',$rss); } foreach ($ids as $id) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/comment.php?action=add&tid=$id"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"); $valsrc = curl_exec($ch); curl_close($ch); $pos1 = strpos($valsrc,'<input type="hidden" name="validator" value="') + 45; $pos2 = strpos($valsrc,'"/>',$pos1); $validator = substr($valsrc,$pos1,$pos2-$pos1); $rnd = rand(0,count($COMMENTS) - 1); $comtext = $COMMENTS[$rnd]; //Posteaza comment-ul, random $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/comment.php?action=add"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"); $date = array( 'tid' => $id, 'text' => $comtext, 'validator' => $validator ); curl_setopt($ch, CURLOPT_POSTFIELDS, $date); $output = curl_exec($ch); curl_close($ch); } echo 'Sent.'; ?> Stie cineva ce problema este? Ps: mai exista Spammer Filelist?