#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $shortoptions = 'u::'; $longoptions = array('start-user-id::'); $helptext = << --start-user-id= User ID to start after. Default is all. END_OF_TRIM_HELP; require_once INSTALLDIR.'/scripts/commandline.inc'; $id = null; if (have_option('u')) { $id = get_option_value('u'); } else if (have_option('--start-user-id')) { $id = get_option_value('--start-user-id'); } else { $id = null; } $user = new User(); if (!empty($id)) { $user->whereAdd('id > ' . $id); } $cnt = $user->find(); while ($user->fetch()) { Notice_inbox::gc($user->id); }