error("This script is not intended to be run manually, it is called from backfill_threaded.py.")); } else if (isset($argv[1])) { // Create the connection here and pass $nntp = new NNTP(); if ($nntp->doConnect() !== true) { exit($c->error("Unable to connect to usenet.")); } $pieces = explode(' ', $argv[1]); if (isset($pieces[1]) && $pieces[1] == 1) { $functions = new Functions(); $functions->backfillAllGroups($nntp, $pieces[0]); } else if (isset($pieces[1]) && $pieces[1] == 2) { $tmux = new Tmux(); $count = $tmux->get()->backfill_qty; $functions = new Functions(); $functions->backfillPostAllGroups($nntp, $pieces[0], $count, $type = ''); } $nntp->doQuit(); }