strtotime('November 15, ' . gmdate('Y')) || time() < strtotime('January 7, ' . gmdate('Y'))); define('DONATION_ALERT_ON', rand(1, 4) == 2); // No trailing slash on any of the below constants. const SITE_URL = 'https://standardebooks.org'; const SITE_ROOT = '/standardebooks.org'; const WEB_ROOT = SITE_ROOT . '/web/www'; const REPOS_PATH = SITE_ROOT . '/ebooks'; const TEMPLATES_PATH = SITE_ROOT . '/web/templates'; const MANUAL_PATH = WEB_ROOT . '/manual'; const EBOOKS_DIST_PATH = WEB_ROOT . '/ebooks/'; const GITHUB_SECRET_FILE_PATH = SITE_ROOT . '/config/secrets/se-vcs-bot@github.com'; // Set in the GitHub organization global webhook settings. const GITHUB_WEBHOOK_LOG_FILE_PATH = '/var/log/local/webhooks-github.log'; // Must be writable by `www-data` Unix user. // If we get GitHub push requests featuring these repos, silently ignore instead of returning an error. const GITHUB_IGNORED_REPOS = ['tools', 'manual', 'web'];