mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Convert some constants to enums
This commit is contained in:
parent
06425d3dd6
commit
ee7c8343dd
52 changed files with 282 additions and 268 deletions
|
@ -54,31 +54,8 @@ define('EMAIL_SMTP_USERNAME', get_cfg_var('se.secrets.postmark.username'));
|
|||
const EMAIL_SMTP_HOST = 'smtp.postmarkapp.com';
|
||||
const EMAIL_POSTMARK_STREAM_BROADCAST = 'the-standard-ebooks-newsletter';
|
||||
|
||||
const REST = 0;
|
||||
const WEB = 1;
|
||||
|
||||
const GET = 'GET';
|
||||
const POST = 'POST';
|
||||
const COOKIE = 'COOKIE';
|
||||
const SESSION = 'SESSION';
|
||||
|
||||
const HTTP_VAR_INT = 0;
|
||||
const HTTP_VAR_STR = 1;
|
||||
const HTTP_VAR_BOOL = 2;
|
||||
const HTTP_VAR_DEC = 3;
|
||||
const HTTP_VAR_ARRAY = 4;
|
||||
|
||||
const HTTP_GET = 0;
|
||||
const HTTP_POST = 1;
|
||||
const HTTP_PATCH = 2;
|
||||
const HTTP_PUT = 3;
|
||||
const HTTP_DELETE = 4;
|
||||
const HTTP_HEAD = 5;
|
||||
|
||||
const AVERAGE_READING_WORDS_PER_MINUTE = 275;
|
||||
|
||||
const PAYMENT_CHANNEL_FA = 0;
|
||||
|
||||
const FA_FEE_PERCENT = 0.87;
|
||||
|
||||
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