Exemple #1
0
             $cron->store_cron_log(1, sizeof($follow_now) . ' ' . $u_txt . $cron_txts[14], $follow_now);
         }
         if ($dm_count > 0) {
             if ($dm_count == 1) {
                 $d_txt = $cron_txts[15];
             } else {
                 $d_txt = $cron_txts[16];
             }
             $cron->store_cron_log(1, $dm_count . ' ' . $d_txt . $cron_txts[17], '');
         }
     }
     //End of auto follow back
 }
 //Now logging is complete, delete any users not seen to prevent them being
 //logged on next run
 $cron->delete_unseen_ids();
 //Try and lookup cached user ids we've stored
 //Check remaining API requests
 $rate_con = $cron->get_remaining_hits();
 $req_total = $rate_con['ul_remaining'];
 for ($i = 1; $i <= 2; $i++) {
     //Get users
     $uncached_users = array();
     $uncached_users = $cron->get_uncached_users($i);
     $user_total = sizeof($uncached_users);
     //Loop and build
     if ($req_total > 0 and $user_total > 0) {
         $uncached_users_split = array();
         $uncached_users_split = array_chunk($uncached_users, TWITTER_API_USER_LOOKUP, true);
         foreach ($uncached_users_split as $this_user_array) {
             $pass_ids = "";