mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Initial commit
This commit is contained in:
commit
28c8a3f0ba
136 changed files with 13350 additions and 0 deletions
33
lib/Constants.php
Normal file
33
lib/Constants.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?
|
||||
const EBOOKS_PER_PAGE = 12;
|
||||
const SORT_NEWEST = 'newest';
|
||||
const SORT_AUTHOR_ALPHA = 'author-alpha';
|
||||
|
||||
const GET = 0;
|
||||
const POST = 1;
|
||||
const COOKIE = 2;
|
||||
|
||||
const HTTP_VAR_INT = 0;
|
||||
const HTTP_VAR_STR = 1;
|
||||
const HTTP_VAR_BOOL = 2;
|
||||
const HTTP_VAR_DEC = 3;
|
||||
|
||||
const SOURCE_PROJECT_GUTENBERG = 0;
|
||||
const SOURCE_HATHI_TRUST = 1;
|
||||
const SOURCE_WIKISOURCE = 2;
|
||||
const SOURCE_INTERNET_ARCHIVE = 3;
|
||||
const SOURCE_GOOGLE_BOOKS = 4;
|
||||
const SOURCE_OTHER = 5;
|
||||
|
||||
const AVERAGE_READING_WORDS_PER_MINUTE = 275;
|
||||
|
||||
// No trailing slash on any of the below constants.
|
||||
const SITE_URL = 'https://standardebooks.org';
|
||||
const SITE_ROOT = '/standardebooks.org';
|
||||
const TEMPLATES_PATH = SITE_ROOT . '/templates';
|
||||
const REPOS_PATH = SITE_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.
|
||||
const GITHUB_IGNORED_REPOS = ['tools', 'manual', 'web']; // If we get GitHub push requests featuring these repos, silently ignore instead of returning an error.
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue