1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- define('INSTALLDIR', dirname(__DIR__, 3));
- define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
- $helptext = <<<END_OF_UPDATECOUNTS_HELP
- updatecounts.php [options]
- Update the notice and user counts cached in the database.
- END_OF_UPDATECOUNTS_HELP;
- require_once INSTALLDIR.'/scripts/commandline.inc';
- $userCounts = Sitemap_user_count::getAll();
- $noticeCounts = Sitemap_notice_count::getAll();
- echo "Done.\n";
|