scriptlog:core:bootstrap:common
lib/common.php
Source: lib/common.php · 79 lines, ~661 statements · namespace: (global) · `declare(strict_types=1)`: no
Constants
| Name | Value / expression | Line |
|---|---|---|
('DS', DIRECTORY_SEPARATOR | define('DS', DIRECTORY_SEPARATOR) | 3 |
('APP_TITLE', 'Scriptlog' | define('APP_TITLE', 'Scriptlog') | 4 |
('APP_CODENAME', 'Maleo Senkawor' | define('APP_CODENAME', 'Maleo Senkawor') | 5 |
('APP_VERSION', '1.8.2' | define('APP_VERSION', '1.8.2') | 6 |
('API_VERSION', 'v1' | define('API_VERSION', 'v1') | 7 |
('APP_ROOT', dirname(dirname(FILE)) . DS | define('APP_ROOT', dirname(dirname(FILE)) . DS) | 8 |
('APP_ADMIN', 'admin' | define('APP_ADMIN', 'admin') | 9 |
('APP_PUBLIC', 'public' | define('APP_PUBLIC', 'public') | 10 |
('APP_LIBRARY', 'lib' | define('APP_LIBRARY', 'lib') | 11 |
('APP_CACHE', false | define('APP_CACHE', false) | 12 |
('APP_CACHE_DIR', APP_ROOT . APP_PUBLIC . DS . 'cache' . DS | define('APP_CACHE_DIR', APP_ROOT . APP_PUBLIC . DS . 'cache' . DS) | 13 |
('APP_CACHE_LIFETIME', 3600 | define('APP_CACHE_LIFETIME', 3600) | 14 |
('APP_FILE_SIZE', 1_048_576 | define('APP_FILE_SIZE', 1_048_576) | 15 |
('APP_IMAGE', APP_PUBLIC . DS . 'files' . DS . 'pictures' . DS | define('APP_IMAGE', APP_PUBLIC . DS . 'files' . DS . 'pictures' . DS) | 16 |
('APP_IMAGE_LARGE', APP_IMAGE . 'large' . DS | define('APP_IMAGE_LARGE', APP_IMAGE . 'large' . DS) | 17 |
('APP_IMAGE_MEDIUM', APP_IMAGE . 'medium' . DS | define('APP_IMAGE_MEDIUM', APP_IMAGE . 'medium' . DS) | 18 |
('APP_IMAGE_SMALL', APP_IMAGE . 'small' . DS | define('APP_IMAGE_SMALL', APP_IMAGE . 'small' . DS) | 19 |
('APP_AUDIO', APP_PUBLIC . DS . 'files' . DS . 'audio' . DS | define('APP_AUDIO', APP_PUBLIC . DS . 'files' . DS . 'audio' . DS) | 20 |
('APP_VIDEO', APP_PUBLIC . DS . 'files' . DS . 'video' . DS | define('APP_VIDEO', APP_PUBLIC . DS . 'files' . DS . 'video' . DS) | 21 |
('APP_DOCUMENT', APP_PUBLIC . DS . 'files' . DS . 'docs' . DS | define('APP_DOCUMENT', APP_PUBLIC . DS . 'files' . DS . 'docs' . DS) | 22 |
('APP_THEME', APP_PUBLIC . DS . 'themes' . DS | define('APP_THEME', APP_PUBLIC . DS . 'themes' . DS) | 23 |
('APP_PLUGIN', APP_ADMIN . DS . 'plugins' . DS | define('APP_PLUGIN', APP_ADMIN . DS . 'plugins' . DS) | 24 |
('APP_DEVELOPMENT', true | define('APP_DEVELOPMENT', true) | 25 |
('MESSAGE_BADREQUEST', “400 Bad Request” | define('MESSAGE_BADREQUEST', “400 Bad Request”) | 27 |
('MESSAGE_UNPLEASANT_ATTEMPT', “Sorry, unpleasant attempt detected” | define('MESSAGE_UNPLEASANT_ATTEMPT', “Sorry, unpleasant attempt detected”) | 28 |
('MESSAGE_UNKNOWN_DNS', “Unknown DNS records that signal the server accepts emails” | define('MESSAGE_UNKNOWN_DNS', “Unknown DNS records that signal the server accepts emails”) | 29 |
('MESSAGE_WEAK_PASSWORD', “Password requires at least 8 characters with lowercase, uppercase letters, numbers and special characters” | define('MESSAGE_WEAK_PASSWORD', “Password requires at least 8 characters with lowercase, … | 30 |
('MESSAGE_INVALID_FULLNAME', “Please enter a valid fullname” | define('MESSAGE_INVALID_FULLNAME', “Please enter a valid fullname”) | 31 |
('MESSAGE_INVALID_SELECTBOX', “Please choose the available value provided” | define('MESSAGE_INVALID_SELECTBOX', “Please choose the available value provided”) | 32 |
('MESSAGE_INVALID_EMAILADDRESS', “Please enter a valid email address” | define('MESSAGE_INVALID_EMAILADDRESS', “Please enter a valid email address”) | 33 |
('MAX_FILES', 10000 | define('MAX_FILES', 10000) | 34 |
('MAX_SIZE', 1_000_000_000 | define('MAX_SIZE', 1_000_000_000) | 35 |
('MAX_RATIO', 10 | define('MAX_RATIO', 10) | 36 |
('READ_LENGTH', 1024 | define('READ_LENGTH', 1024) | 37 |
('COOKIE_CONSENT_LIFETIME_DAYS', 180 | define('COOKIE_CONSENT_LIFETIME_DAYS', 180) | 38 |
('COOKIE_CONSENT_VERSION', '1' | define('COOKIE_CONSENT_VERSION', '1') | 39 |
('SCRIPTLOG', hash_hmac('sha256', APP_TITLE . ':' . APP_CODENAME . mt_rand(1, 1000), hash('sha256', uniqid() . 'M4Le053Nk4WoR!@#{>}>01[:+]-07|=_$%^&*(id)')) | define('SCRIPTLOG', hash_hmac('sha256', APP_TITLE . ':' . APP_CODENAME . mt_rand(1, 1000)… | 40 |
Generated by 'tools/gendoc'.
scriptlog/core/bootstrap/common.txt · Last modified: by admin
