| +----------------------------------------------------------------------+ $Id$ Notes: - This emails the documentation list each # days (7, via cron) with PHP documentation activity information. - These are only numbers/statistics, so there are no winners or losers except for the documentation. Todo: - Add SVN lines changed/added/deleted instead of # commits - Add other bug activities? So, not only bug->closed? - Determine if posting statistics is wise (good or bad) */ // build-ops.php is generated by web/doc/trunk/ setup require '../build-ops.php'; date_default_timezone_set('UTC'); define('DEBUG_MODE', FALSE); // Enable to not send emails. define('DAYS_LOOKUP', 7); // Number of days, in the past, to search/use for the report $svn_modules = array('phpdoc', 'phd', 'web/doc-editor'); $time_past = date('Y-m-d', strtotime('-'. DAYS_LOOKUP . ' days')); $time_future = date('Y-m-d', strtotime('+'. DAYS_LOOKUP . ' days')); $time_now = date('Y-m-d'); if (!function_exists('sqlite_open')) { echo 'Fail. I require ext/sqlite to work.', PHP_EOL; exit; } if (!function_exists('simplexml_load_string')) { echo 'Fail. I require ext/simplexml to work.', PHP_EOL; exit; } $email_text = <<