diff options
| author | Jakub Senko <jakubsenko@gmail.com> | 2016-03-18 10:56:14 +0100 |
|---|---|---|
| committer | Jakub Senko <jakubsenko@gmail.com> | 2016-03-18 10:56:14 +0100 |
| commit | 46c79bbe901d31e93d321a8de46696d3ac277cd5 (patch) | |
| tree | 9e8e76021ad31be8e53fa1aa3883657a378d0f36 /phpBB/includes/constants.php | |
| parent | eca4726f3c2fda312b3150b7b252a300d4603fbe (diff) | |
| download | forums-46c79bbe901d31e93d321a8de46696d3ac277cd5.tar forums-46c79bbe901d31e93d321a8de46696d3ac277cd5.tar.gz forums-46c79bbe901d31e93d321a8de46696d3ac277cd5.tar.bz2 forums-46c79bbe901d31e93d321a8de46696d3ac277cd5.tar.xz forums-46c79bbe901d31e93d321a8de46696d3ac277cd5.zip | |
[ticket/9435] Convert bbcode magic numbers to constants
PHPBB3-9435
Diffstat (limited to 'phpBB/includes/constants.php')
| -rw-r--r-- | phpBB/includes/constants.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php index 3a186fd892..5c192d9676 100644 --- a/phpBB/includes/constants.php +++ b/phpBB/includes/constants.php @@ -183,6 +183,21 @@ define('BBCODE_UID_LEN', 8); // Number of core BBCodes define('NUM_CORE_BBCODES', 12); +// BBCode IDs +define('BBCODE_QUOTE_ID', 0); +define('BBCODE_B_ID', 1); +define('BBCODE_I_ID', 2); +define('BBCODE_URL_ID', 3); +define('BBCODE_IMG_ID', 4); +define('BBCODE_SIZE_ID', 5); +define('BBCODE_COLOR_ID', 6); +define('BBCODE_U_ID', 7); +define('BBCODE_CODE_ID', 8); +define('BBCODE_LIST_ID', 9); +define('BBCODE_EMAIL_ID', 10); +define('BBCODE_FLASH_ID', 11); +define('BBCODE_ATTACH_ID', 12); + // BBCode hard limit define('BBCODE_LIMIT', 1511); |
