Zaznacze linie po ktorych zmianie/dodaniu sie posypalo... wczesniej bylo bdb;]
<?php include("2.php"); //od tad $tlo = $_GET[tlo]; }else{ $tlo = 0; } //do tad $nick = $_GET['n']; $pass = $_GET['p']; $cookie = getCookies($nick,$pass); //od tad if($tlo = 1){ } if($_GET['log'] = 1){ } //do tad $liczba = 1; while($liczba <= 16){ $afsf = 1; do{ $ch = curl_init('http://www.fotka.pl/online.php?e=l&f[plec]=k&f[woj]='.$liczba.'&page='.$afsf); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2 )'); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $dane = curl_exec($ch); curl_close($ch); preg_match_all('|<div style="float:left;margin-right:.5em;margin-bottom:1.2em;margin-top:.2em;text-align:center;width:8.87em;"><a href="http://www.fotka.pl/profil/(.*)/"><img src="|U', $dane, $matches); foreach($matches[1] as $a){ $przegladnij = curl_init('http://www.fotka.pl/profil/'.$a.'/'); curl_setopt($przegladnij, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2 )'); curl_setopt($przegladnij, CURLOPT_HEADER, 1); curl_setopt($przegladnij, CURLOPT_COOKIE, $cookie); curl_setopt($przegladnij, CURLOPT_RETURNTRANSFER, 1); $dane = curl_exec($przegladnij); curl_close($przegladnij); if($tlo == 0){ //TO $ileProfili++; //od tad } if($_GET['log'] == 1){ file_put_contents($name,$a."\n"); } } if($tlo == 0){//do tad }//to $afsf++; $liczbunia = 24*$afsf; }while($liczbunia <= $matches2[1][0]); if($tlo == 0){//TO echo "KONIEC wojewodztwa nr $liczba<br><br><br> przegladnieto ok. $liczbunia profili z wojewudztwa nr $liczba <br><br><br> Poczatek wojewodztwa!"; }//TO //od tad if($_GET['log'] == 1){ file_put_contents($name,"\n\n\n\n\n\n\n\n\n\n\n Przegladnieto wojewudztwo nr $liczba\n\n\n\n\n\n"); } //do tad $liczba++; } do{ $ch = curl_init('http://www.fotka.pl/online.php?e=l&f[plec]=k&f[woj]=99&page='.$afsf); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2 )'); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $dane = curl_exec($ch); curl_close($ch); preg_match_all('|<div style="float:left;margin-right:.5em;margin-bottom:1.2em;margin-top:.2em;text-align:center;width:8.87em;"><a href="http://www.fotka.pl/profil/(.*)/"><img src="|U', $dane, $matches); $liczbunia2 = 24*$afsf; foreach($matches[1] as $a){ $przegladnij = curl_init('http://www.fotka.pl/profil/'.$a.'/'); curl_setopt($przegladnij, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2 )'); curl_setopt($przegladnij, CURLOPT_HEADER, 1); curl_setopt($przegladnij, CURLOPT_COOKIE, $cookie); curl_setopt($przegladnij, CURLOPT_RETURNTRANSFER, 1); $dane = curl_exec($przegladnij); curl_close($przegladnij); if($tlo == 0){//TO }//TO //od tad if($_GET['log'] == 1){ file_put_contents($name,$a."\n"); } //do tad $ileProfili++; } $afsf++; }while($liczbunia2 <= $matches3[1][0]); if($tlo == 0){//to echo "KONIEC ZAGRANICY<br><br><br> przegladnieto ok. $liczbunia2 profili za granica <br><br><br> Poczatek wojewodztwa!<br><br><br> Przegladnieto $ileProfili profili na fotka.pl"; }//to //od tad if($_GET['log'] == 1){ file_put_contents($name,"\n\n\n\n\n\n\n\n\n\n\n Przegladnieto zagranica\n\n\n\n\n\n Przegladnieto $ileProfili profili na fotka.pl"); } //do tad ?>
Od tego czasu skrypt nie wywala zadnych bledow ale nie zwraca wynikow ani nie zapisuje logow:/
Zauwazylem ze skrypt sie loguje do fotka.pl wiec dalej musi byc blad;]