Advertisement
psycholyzern

monitor kimsufi

Jun 22nd, 2016
95
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. api_notify("[kimsufi]Appear! ","Time: " . date("Y-m-d-H:i",time()+46800),1,2);//Here should go your notify function
  23. }
  24. }
  25. sleep(60);
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement