Advertisement
akurczyk

Untitled

Aug 24th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. <?php
  2. $przegladarka = 'Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1';
  3.  
  4. $uchwyt = curl_init();
  5. curl_setopt($uchwyt, CURLOPT_URL, 'http://www.krolestwa.com/ConnexionKC.php');
  6. curl_setopt($uchwyt, CURLOPT_POST, 1);
  7. curl_setopt($uchwyt, CURLOPT_POSTFIELDS, 'login=frode&password=pedal123');
  8. curl_setopt($uchwyt, CURLOPT_USERAGENT, $przegladarka);
  9. curl_setopt($uchwyt, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/cookie.txt');
  10. curl_setopt($uchwyt, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/cookie.txt');
  11. //curl_setopt($uchwyt, CURLOPT_RETURNTRANSFER, 1);
  12. //curl_setopt($uchwyt, CURLOPT_HEADER, 1);
  13. curl_setopt($uchwyt, CURLOPT_FOLLOWLOCATION, 1);
  14. curl_exec($uchwyt);
  15.  
  16. /*$uchwyt = curl_init();
  17. curl_setopt($uchwyt, CURLOPT_URL, 'http://www.krolestwa.com/Action.php?action=338&n=728&t=mine');
  18. curl_setopt($uchwyt, CURLOPT_POST, 1);
  19. curl_setopt($uchwyt, CURLOPT_POSTFIELDS, 'Mine728=1&submit=travail');
  20. curl_setopt($uchwyt, CURLOPT_USERAGENT, $przegladarka);
  21. curl_setopt($uchwyt, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/cookie.txt');
  22. curl_setopt($uchwyt, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/cookie.txt');
  23. curl_setopt($uchwyt, CURLOPT_RETURNTRANSFER, 1);
  24. curl_setopt($uchwyt, CURLOPT_HEADER, 1);
  25. curl_setopt($uchwyt, CURLOPT_FOLLOWLOCATION, 1);
  26. echo curl_exec($uchwyt);*/
  27.  
  28. $uchwyt = curl_init();
  29. curl_setopt($uchwyt, CURLOPT_URL, 'http://www.krolestwa.com/Action.php?action=154&r=1');
  30. curl_setopt($uchwyt, CURLOPT_USERAGENT, $przegladarka);
  31. curl_setopt($uchwyt, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/cookie.txt');
  32. curl_setopt($uchwyt, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/cookie.txt');
  33. curl_setopt($uchwyt, CURLOPT_RETURNTRANSFER, 1);
  34. curl_setopt($uchwyt, CURLOPT_HEADER, 1);
  35. curl_setopt($uchwyt, CURLOPT_FOLLOWLOCATION, 1);
  36. echo curl_exec($uchwyt);
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement