Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('twitteroauth/twitteroauth.php');
- require_once('start.php');
- $open=opendir($tem);
- while($file=readdir($open)){
- if($file != '.' && $file != '..'){
- $con[]=explode('_',$file);
- }
- for($i=0;$i<count($con);$i++){
- $nusbol = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $con[$i][1], $con[$i][2]);
- $tusbol = $nusbol->get('account/verify_credentials');
- if(!$tusbol->name){
- $ho[]=1;
- unlink($tem.'/'.$file);
- }else{
- $mo[]=1;
- }
- }
- }
- echo '<title> Refresh Humu </title>';
- echo 'Token Modar = '.count($ho).'<hr>
- Token Idup = '.count($mo).'<hr>
- Jumlah Humu = '.jumlahhumu($tem);
- function jumlahhumu($dir){
- $x=opendir($dir);
- while($y=readdir($x)){
- if($y != '.' && $y != '..'){ $n[]=$y;}
- }
- closedir($x);
- return count($n);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement