mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Define some constants to make HTTP input code less wordy
This commit is contained in:
parent
ee7c8343dd
commit
110c091a7b
36 changed files with 87 additions and 86 deletions
|
@ -44,6 +44,12 @@ const ARTWORK_IMAGE_MINIMUM_HEIGHT = 300;
|
|||
const CAPTCHA_IMAGE_HEIGHT = 72;
|
||||
const CAPTCHA_IMAGE_WIDTH = 230;
|
||||
|
||||
// These are defined for convenience, so that getting HTTP input isn't so wordy
|
||||
const GET = HttpVariableSource::Get;
|
||||
const POST = HttpVariableSource::Post;
|
||||
const SESSION = HttpVariableSource::Session;
|
||||
const COOKIE = HttpVariableSource::Cookie;
|
||||
|
||||
define('NO_REPLY_EMAIL_ADDRESS', get_cfg_var('se.secrets.email.no_reply_address'));
|
||||
define('ADMIN_EMAIL_ADDRESS', get_cfg_var('se.secrets.email.admin_address'));
|
||||
define('EDITOR_IN_CHIEF_EMAIL_ADDRESS', get_cfg_var('se.secrets.email.editor_in_chief_address'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue