Advertisement
hawkjohn7

kimsufi alerte

Jun 22nd, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. function httpget($address,$timeout=3)
  4. {
  5. $context = stream_context_create(array(
  6. 'http' => array(
  7. 'timeout' => $timeout
  8. )
  9. ));
  10.  
  11. return file_get_contents($address,0,$context);
  12. }
  13.  
  14.  
  15. while(true)
  16. {
  17. $content=httpget('https://www.kimsufi.com/en/order/kimsufi.cgi?hard=162sk42',10);
  18. if($content)
  19. {
  20. if(strpos($content,'est invalide')==false)
  21. {
  22. $msg = "kimsufi Appear! Time: " . date("Y-m-d-H:i") . time();
  23. mail("your_email@address.com","Kimsufi avilable",$msg);
  24. }
  25. }
  26. sleep(60);
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement