Пример #1
0
             $this_limit = $rate_con[$this_op . '_remaining'];
         }
         //Work out throttle
         if ($content->{$this_op_var} > $this_limit * TWITTER_API_LIST_FW) {
             //Work out worst case throttle time
             if ($this_limit != 0) {
                 $throt_time = (int) (900 / $this_limit) + 1;
             } else {
                 $throt_time = 1;
             }
             $cron->set_throttle_time($throt_time, $this_op);
         }
         //End of foreach op type
     }
     //Set table flags
     $cron->clear_table_flags();
     $c1 = $cron->store_fw_fr_list('fw');
     $c2 = $cron->store_fw_fr_list('fr');
     if ($cron->get_fr_fw_issue() == 1) {
         $cron->store_cron_log(1, $cron_txts[1], '');
         $cron->set_first_pass_done(666);
     }
 } else {
     //Can't connect to this account so set flag to skip stages below
     $cron->set_first_pass_done(666);
 }
 //Log number of followers on first pass
 if ($cron->get_first_pass_done() == 0) {
     //Correct text - don't just add s to help multi language support later
     if ($c1 == 1) {
         $f_txt1 = $cron_txts[2];