1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
- $helptext = <<<ENDOFHELP
- USAGE: initialize_fave_tallys.php
- Offline script to initialize notice fave tallys
- ENDOFHELP;
- require_once INSTALLDIR.'/scripts/commandline.inc';
- $notice = new Notice();
- $notice->find();
- while ($notice->fetch()) {
- Fave_tally::ensureTally($notice->id);
- }
|