//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]; } else { $f_txt1 = $cron_txts[3]; } if ($c2 == 1) { $f_txt2 = $cron_txts[4]; } else { $f_txt2 = $cron_txts[5]; } $cron->store_cron_log(1, $c1 . ' ' . $f_txt1 . $cron_txts[6], ''); $cron->store_cron_log(1, $c2 . ' ' . $f_txt2 . $cron_txts[6], ''); //Update user to indicate first pass done $cron->set_first_pass_done_db();