tobitaz

remover.php ada proxy

Jan 15th, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1.       <?php
  2.  
  3. include("proxy.php");
  4. //ubah nama file yg ko nak untuk simpan token
  5. $tokenko = "token.txt";
  6. $proxystatus = "on";
  7.  
  8. $f = file_get_contents($tokenko);
  9.  
  10. $geto = preg_split('/(\r?\n)+/', $f);
  11.       foreach($geto as $phc)
  12. {
  13.        //cek token invalid
  14.        $k = tobitaz("graph.facebook.com/me/likes?access_token=".$phc, $proxystatus);
  15.        
  16.  
  17.        $check = strripos($k, "OAuthException");
  18.  
  19.       if($check === false)
  20.        {
  21. $hidup.= $phc."\n";
  22.        }
  23.        else
  24.        {
  25.        
  26.        
  27.        }
  28. }
  29.  
  30.  
  31.        $fop = fopen($tokenko, "w+");
  32.                   fwrite($fop, $hidup);
  33.                   fclose($fop);
  34.  
  35. echo "token has been refrashed";
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment