#!/usr/bin/env php . /** * @package GNUsocial * @copyright 2010 StatusNet, Inc. * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ define('INSTALLDIR', dirname(__DIR__, 3)); define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $shortoptions = 'i:n:au'; $longoptions = array('id=', 'nickname=', 'all', 'universe'); $helptext = <<find()) { while ($sn->fetch()) { $server = $sn->getServerName(); GNUsocial::init($server); // Different queue manager, maybe! $qm = QueueManager::get(); $qm->enqueue(1, 'sitesum'); } } } else { $qm = QueueManager::get(); // enqueue summary for user or all users try { $user = getUser(); $qm->enqueue($user->id, 'usersum'); } catch (NoUserArgumentException $nuae) { $qm->enqueue(1, 'sitesum'); } }