PageRenderTime 48ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/core/constant_inc.php

https://github.com/twolfy/mbtoo
PHP | 490 lines | 319 code | 79 blank | 92 comment | 0 complexity | 9bf53a75c088309e3770c3ff2aba11ac MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. # MantisBT - a php based bugtracking system
  3. # MantisBT is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, either version 2 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # MantisBT is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
  15. define( 'MANTIS_VERSION', '1.2.0a3' );
  16. # --- constants -------------------
  17. # magic numbers
  18. define( 'ON', 1 );
  19. define( 'OFF', 0 );
  20. define( 'AUTO', 3 );
  21. define( 'BAD', 0 );
  22. define( 'GOOD', 1 );
  23. # PHP-related constants
  24. define( 'PHP_CLI', 0 );
  25. define( 'PHP_CGI', 1 );
  26. # installation
  27. define( 'CONFIGURED_PASSWORD', "______" );
  28. # error types
  29. define( 'ERROR', E_USER_ERROR );
  30. define( 'WARNING', E_USER_WARNING );
  31. define( 'NOTICE', E_USER_NOTICE );
  32. # access levels
  33. define( 'ANYBODY', 0 );
  34. define( 'VIEWER', 10 );
  35. define( 'REPORTER', 25 );
  36. define( 'UPDATER', 40 );
  37. define( 'DEVELOPER', 55 );
  38. define( 'MANAGER', 70 );
  39. define( 'ADMINISTRATOR', 90 );
  40. define( 'NOBODY', 100 );
  41. define( 'DEFAULT_ACCESS_LEVEL', -1 );
  42. # This is used in add user to project
  43. # status
  44. define( 'NEW_', 10 );
  45. # NEW seems to be a reserved keyword
  46. define( 'FEEDBACK', 20 );
  47. define( 'ACKNOWLEDGED', 30 );
  48. define( 'CONFIRMED', 40 );
  49. define( 'ASSIGNED', 50 );
  50. define( 'RESOLVED', 80 );
  51. define( 'CLOSED', 90 );
  52. # resolution
  53. define( 'OPEN', 10 );
  54. define( 'FIXED', 20 );
  55. define( 'REOPENED', 30 );
  56. define( 'UNABLE_TO_DUPLICATE', 40 );
  57. define( 'NOT_FIXABLE', 50 );
  58. define( 'DUPLICATE', 60 );
  59. define( 'NOT_A_BUG', 70 );
  60. define( 'SUSPENDED', 80 );
  61. define( 'WONT_FIX', 90 );
  62. # priority
  63. define( 'NONE', 10 );
  64. define( 'LOW', 20 );
  65. define( 'NORMAL', 30 );
  66. define( 'HIGH', 40 );
  67. define( 'URGENT', 50 );
  68. define( 'IMMEDIATE', 60 );
  69. # severity
  70. define( 'FEATURE', 10 );
  71. define( 'TRIVIAL', 20 );
  72. define( 'TEXT', 30 );
  73. define( 'TWEAK', 40 );
  74. define( 'MINOR', 50 );
  75. define( 'MAJOR', 60 );
  76. define( 'CRASH', 70 );
  77. define( 'BLOCK', 80 );
  78. # reproducibility
  79. define( 'REPRODUCIBILITY_ALWAYS', 10 );
  80. define( 'REPRODUCIBILITY_SOMETIMES', 30 );
  81. define( 'REPRODUCIBILITY_RANDOM', 50 );
  82. define( 'REPRODUCIBILITY_HAVENOTTRIED', 70 );
  83. define( 'REPRODUCIBILITY_UNABLETODUPLICATE', 90 );
  84. define( 'REPRODUCIBILITY_NOTAPPLICABLE', 100 );
  85. # project view_state
  86. define( 'VS_PUBLIC', 10 );
  87. define( 'VS_PRIVATE', 50 );
  88. # direction
  89. define( 'ASCENDING', 101 );
  90. define( 'DESCENDING', 102 );
  91. # unread status
  92. define( 'READ', 201 );
  93. define( 'UNREAD', 202 );
  94. # login methods
  95. define( 'PLAIN', 0 );
  96. define( 'CRYPT', 1 );
  97. define( 'CRYPT_FULL_SALT', 2 );
  98. define( 'MD5', 3 );
  99. define( 'LDAP', 4 );
  100. define( 'BASIC_AUTH', 5 );
  101. define( 'HTTP_AUTH', 6 );
  102. # file upload methods
  103. define( 'DISK', 1 );
  104. define( 'DATABASE', 2 );
  105. define( 'FTP', 3 );
  106. # show variable values
  107. define( 'BOTH', 0 );
  108. define( 'SIMPLE_ONLY', 1 );
  109. define( 'ADVANCED_ONLY', 2 );
  110. define( 'SIMPLE_DEFAULT', 3 );
  111. define( 'ADVANCED_DEFAULT', 4 );
  112. # news values
  113. define( 'BY_LIMIT', 0 );
  114. define( 'BY_DATE', 1 );
  115. # all projects
  116. define( 'ALL_PROJECTS', 0 );
  117. # all users
  118. define( 'ALL_USERS', 0 );
  119. # no user
  120. define( 'NO_USER', 0 );
  121. # history constants
  122. define( 'NORMAL_TYPE', 0 );
  123. define( 'NEW_BUG', 1 );
  124. define( 'BUGNOTE_ADDED', 2 );
  125. define( 'BUGNOTE_UPDATED', 3 );
  126. define( 'BUGNOTE_DELETED', 4 );
  127. define( 'DESCRIPTION_UPDATED', 6 );
  128. define( 'ADDITIONAL_INFO_UPDATED', 7 );
  129. define( 'STEP_TO_REPRODUCE_UPDATED', 8 );
  130. define( 'FILE_ADDED', 9 );
  131. define( 'FILE_DELETED', 10 );
  132. define( 'BUGNOTE_STATE_CHANGED', 11 );
  133. define( 'BUG_MONITOR', 12 );
  134. define( 'BUG_UNMONITOR', 13 );
  135. define( 'BUG_DELETED', 14 );
  136. define( 'BUG_ADD_SPONSORSHIP', 15 );
  137. define( 'BUG_UPDATE_SPONSORSHIP', 16 );
  138. define( 'BUG_DELETE_SPONSORSHIP', 17 );
  139. define( 'BUG_ADD_RELATIONSHIP', 18 );
  140. define( 'BUG_DEL_RELATIONSHIP', 19 );
  141. define( 'BUG_CLONED_TO', 20 );
  142. define( 'BUG_CREATED_FROM', 21 );
  143. define( 'CHECKIN', 22 );
  144. define( 'BUG_REPLACE_RELATIONSHIP', 23 );
  145. define( 'BUG_PAID_SPONSORSHIP', 24 );
  146. define( 'TAG_ATTACHED', 25 );
  147. define( 'TAG_DETACHED', 26 );
  148. define( 'TAG_RENAMED', 27 );
  149. define( 'PLUGIN_HISTORY', 100 );
  150. # bug revisions
  151. define( 'REV_ANY', 0 );
  152. define( 'REV_DESCRIPTION', 1 );
  153. define( 'REV_STEPS_TO_REPRODUCE', 2 );
  154. define( 'REV_ADDITIONAL_INFO', 3 );
  155. define( 'REV_BUGNOTE', 4 );
  156. # bug relationship constants
  157. define( 'BUG_DUPLICATE', 0 );
  158. define( 'BUG_RELATED', 1 );
  159. define( 'BUG_DEPENDANT', 2 );
  160. define( 'BUG_BLOCKS', 3 );
  161. define( 'BUG_HAS_DUPLICATE', 4 );
  162. # error messages
  163. define( 'ERROR_GENERIC', 0 );
  164. define( 'ERROR_SQL', 1 );
  165. define( 'ERROR_REPORT', 3 );
  166. define( 'ERROR_NO_FILE_SPECIFIED', 4 );
  167. define( 'ERROR_FILE_DISALLOWED', 5 );
  168. define( 'ERROR_NO_DIRECTORY', 6 );
  169. define( 'ERROR_DUPLICATE_FILE', 9 );
  170. define( 'ERROR_DUPLICATE_PROJECT', 10 );
  171. define( 'ERROR_EMPTY_FIELD', 11 );
  172. define( 'ERROR_PROTECTED_ACCOUNT', 12 );
  173. define( 'ERROR_ACCESS_DENIED', 13 );
  174. define( 'ERROR_UPLOAD_FAILURE', 15 );
  175. define( 'ERROR_FTP_CONNECT_ERROR', 16 );
  176. define( 'ERROR_HANDLER_ACCESS_TOO_LOW', 17 );
  177. define( 'ERROR_PAGE_REDIRECTION', 18 );
  178. define( 'ERROR_INVALID_REQUEST_METHOD', 19 );
  179. define( 'ERROR_INVALID_SORT_FIELD', 20 );
  180. # ERROR_CONFIG_*
  181. define( 'ERROR_CONFIG_OPT_NOT_FOUND', 100 );
  182. define( 'ERROR_CONFIG_OPT_INVALID', 101 );
  183. define( 'ERROR_CONFIG_OPT_CANT_BE_SET_IN_DB', 102 );
  184. # ERROR_GPC_*
  185. define( 'ERROR_GPC_VAR_NOT_FOUND', 200 );
  186. define( 'ERROR_GPC_ARRAY_EXPECTED', 201 );
  187. define( 'ERROR_GPC_ARRAY_UNEXPECTED', 202 );
  188. define( 'ERROR_GPC_NOT_NUMBER', 203 );
  189. # ERROR_LANG_*
  190. define( 'ERROR_LANG_STRING_NOT_FOUND', 300 );
  191. # ERROR_DB_*
  192. define( 'ERROR_DB_CONNECT_FAILED', 400 );
  193. define( 'ERROR_DB_QUERY_FAILED', 401 );
  194. define( 'ERROR_DB_SELECT_FAILED', 402 );
  195. define( 'ERROR_DB_FIELD_NOT_FOUND', 403 );
  196. # ERROR_FILE_*
  197. define( 'ERROR_FILE_TOO_BIG', 500 );
  198. define( 'ERROR_FILE_NOT_ALLOWED', 501 );
  199. define( 'ERROR_FILE_DUPLICATE', 502 );
  200. define( 'ERROR_FILE_INVALID_UPLOAD_PATH', 503 );
  201. define( 'ERROR_FILE_NO_UPLOAD_FAILURE', 504 );
  202. define( 'ERROR_FILE_MOVE_FAILED', 505 );
  203. # ERROR_BUGNOTE_*
  204. define( 'ERROR_BUGNOTE_NOT_FOUND', 600 );
  205. # ERROR_PROJECT_*
  206. define( 'ERROR_PROJECT_NOT_FOUND', 700 );
  207. define( 'ERROR_PROJECT_NAME_NOT_UNIQUE', 701 );
  208. define( 'ERROR_PROJECT_NAME_INVALID', 702 );
  209. define( 'ERROR_PROJECT_RECURSIVE_HIERARCHY', 703 );
  210. # ERROR_USER_*
  211. define( 'ERROR_USER_NAME_NOT_UNIQUE', 800 );
  212. define( 'ERROR_USER_NOT_FOUND', 801 );
  213. define( 'ERROR_USER_PREFS_NOT_FOUND', 802 );
  214. define( 'ERROR_USER_CREATE_PASSWORD_MISMATCH', 803 );
  215. define( 'ERROR_USER_PROFILE_NOT_FOUND', 804 );
  216. define( 'ERROR_USER_NAME_INVALID', 805 );
  217. define( 'ERROR_USER_DOES_NOT_HAVE_REQ_ACCESS', 806 );
  218. define( 'ERROR_USER_REAL_MATCH_USER', 807 );
  219. define( 'ERROR_USER_CHANGE_LAST_ADMIN', 808 );
  220. define( 'ERROR_USER_REAL_NAME_INVALID', 809 );
  221. define( 'ERROR_USER_BY_NAME_NOT_FOUND', 810 );
  222. define( 'ERROR_USER_BY_ID_NOT_FOUND', 811 );
  223. # ERROR_AUTH_*
  224. define( 'ERROR_AUTH_INVALID_COOKIE', 900 );
  225. # ERROR_NEWS_*
  226. define( 'ERROR_NEWS_NOT_FOUND', 1000 );
  227. # ERROR_BUG_*
  228. define( 'ERROR_BUG_NOT_FOUND', 1100 );
  229. define( 'ERROR_BUG_DUPLICATE_SELF', 1101 );
  230. define( 'ERROR_BUG_RESOLVED_ACTION_DENIED', 1102 );
  231. define( 'ERROR_BUG_REVISION_NOT_FOUND', 1150 );
  232. // @@@ obsolete, remove after lang files are sync'd
  233. define( 'ERROR_BUG_READ_ONLY_ACTION_DENIED', 1103 );
  234. # ERROR_EMAIL_*
  235. define( 'ERROR_EMAIL_INVALID', 1200 );
  236. define( 'ERROR_EMAIL_DISPOSABLE', 1201 );
  237. # ERROR_CUSTOM_FIELD_*
  238. define( 'ERROR_CUSTOM_FIELD_NOT_FOUND', 1300 );
  239. define( 'ERROR_CUSTOM_FIELD_NAME_NOT_UNIQUE', 1301 );
  240. define( 'ERROR_CUSTOM_FIELD_IN_USE', 1302 );
  241. define( 'ERROR_CUSTOM_FIELD_INVALID_VALUE', 1303 );
  242. define( 'ERROR_CUSTOM_FIELD_INVALID_DEFINITION', 1304 );
  243. # ERROR_LDAP_*
  244. define( 'ERROR_LDAP_AUTH_FAILED', 1400 );
  245. define( 'ERROR_LDAP_SERVER_CONNECT_FAILED', 1401 );
  246. define( 'ERROR_LDAP_UPDATE_FAILED', 1402 );
  247. define( 'ERROR_LDAP_USER_NOT_FOUND', 1403 );
  248. define( 'ERROR_LDAP_EXTENSION_NOT_LOADED', 1404 );
  249. # ERROR_CATEGORY_*
  250. define( 'ERROR_CATEGORY_DUPLICATE', 1500 );
  251. define( 'ERROR_CATEGORY_NO_ACTION', 1501 );
  252. define( 'ERROR_CATEGORY_NOT_FOUND', 1502 );
  253. define( 'ERROR_CATEGORY_NOT_FOUND_FOR_PROJECT', 1503 );
  254. # ERROR_VERSION_*
  255. define( 'ERROR_VERSION_DUPLICATE', 1600 );
  256. define( 'ERROR_VERSION_NOT_FOUND', 1601 );
  257. # ERROR_SPONSORSHIP_*
  258. define( 'ERROR_SPONSORSHIP_NOT_ENABLED', 1700 );
  259. define( 'ERROR_SPONSORSHIP_NOT_FOUND', 1701 );
  260. define( 'ERROR_SPONSORSHIP_AMOUNT_TOO_LOW', 1702 );
  261. define( 'ERROR_SPONSORSHIP_HANDLER_ACCESS_LEVEL_TOO_LOW', 1703 );
  262. define( 'ERROR_SPONSORSHIP_ASSIGNER_ACCESS_LEVEL_TOO_LOW', 1704 );
  263. define( 'ERROR_SPONSORSHIP_SPONSOR_NO_EMAIL', 1705 );
  264. # ERROR RELATIONSHIP
  265. define( 'ERROR_RELATIONSHIP_ALREADY_EXISTS', 1800 );
  266. define( 'ERROR_RELATIONSHIP_ACCESS_LEVEL_TO_DEST_BUG_TOO_LOW', 1801 );
  267. define( 'ERROR_RELATIONSHIP_NOT_FOUND', 1802 );
  268. define( 'ERROR_RELATIONSHIP_SAME_BUG', 1803 );
  269. # ERROR_LOST_PASSWORD_*
  270. define( 'ERROR_LOST_PASSWORD_NOT_ENABLED', 1900 );
  271. define( 'ERROR_LOST_PASSWORD_CONFIRM_HASH_INVALID', 1901 );
  272. define( 'ERROR_LOST_PASSWORD_NO_EMAIL_SPECIFIED', 1902 );
  273. define( 'ERROR_LOST_PASSWORD_NOT_MATCHING_DATA', 1903 );
  274. define( 'ERROR_SIGNUP_NOT_MATCHING_CAPTCHA', 1904 );
  275. define( 'ERROR_LOST_PASSWORD_MAX_IN_PROGRESS_ATTEMPTS_REACHED', 1905 );
  276. # ERROR_FILTER_*
  277. define( 'ERROR_FILTER_NOT_FOUND', 2000 );
  278. define( 'ERROR_FILTER_TOO_OLD', 2001 );
  279. # ERROR_TWITTER_*
  280. define( 'ERROR_TWITTER_NO_CURL_EXT', 2100 );
  281. # ERROR_TAG_*
  282. define( 'ERROR_TAG_NOT_FOUND', 2200 );
  283. define( 'ERROR_TAG_DUPLICATE', 2201 );
  284. define( 'ERROR_TAG_NAME_INVALID', 2202 );
  285. define( 'ERROR_TAG_NOT_ATTACHED', 2203 );
  286. define( 'ERROR_TAG_ALREADY_ATTACHED', 2204 );
  287. # ERROR_TOKEN_*
  288. define( 'ERROR_TOKEN_NOT_FOUND', 2300 );
  289. # ERROR_EVENT_*
  290. define( 'ERROR_EVENT_UNDECLARED', 2400 );
  291. # ERROR_PLUGIN *
  292. define( 'ERROR_PLUGIN_NOT_REGISTERED', 2500 );
  293. define( 'ERROR_PLUGIN_ALREADY_INSTALLED', 2501 );
  294. define( 'ERROR_PLUGIN_PAGE_NOT_FOUND', 2502 );
  295. define( 'ERROR_PLUGIN_UPGRADE_FAILED', 2503 );
  296. define( 'ERROR_PLUGIN_GENERIC', 2599 );
  297. # ERROR_COLUMNS_*
  298. define( 'ERROR_COLUMNS_DUPLICATE', 2600 );
  299. define( 'ERROR_COLUMNS_INVALID', 2601 );
  300. # ERROR_SESSION_*
  301. define( 'ERROR_SESSION_HANDLER_INVALID', 2700 );
  302. define( 'ERROR_SESSION_VAR_NOT_FOUND', 2701 );
  303. define( 'ERROR_SESSION_NOT_VALID', 2702 );
  304. # ERROR_FORM_*
  305. define( 'ERROR_FORM_TOKEN_INVALID', 2800 );
  306. # Status Legend Position
  307. define( 'STATUS_LEGEND_POSITION_TOP', 1 );
  308. define( 'STATUS_LEGEND_POSITION_BOTTOM', 2 );
  309. define( 'STATUS_LEGEND_POSITION_BOTH', 3 );
  310. # Filter Position
  311. define( 'FILTER_POSITION_NONE', 0 );
  312. define( 'FILTER_POSITION_TOP', 1 );
  313. define( 'FILTER_POSITION_BOTTOM', 2 );
  314. define( 'FILTER_POSITION_BOTH', 3 );
  315. // FILTER_POSITION_TOP | FILTER_POSITION_BOTTOM (bitwise OR)
  316. # Flags for settings E-mail categories
  317. define( 'EMAIL_CATEGORY_PROJECT_CATEGORY', 1 );
  318. # Custom Field types
  319. define( 'CUSTOM_FIELD_TYPE_STRING', 0 );
  320. define( 'CUSTOM_FIELD_TYPE_NUMERIC', 1 );
  321. define( 'CUSTOM_FIELD_TYPE_FLOAT', 2 );
  322. define( 'CUSTOM_FIELD_TYPE_ENUM', 3 );
  323. define( 'CUSTOM_FIELD_TYPE_EMAIL', 4 );
  324. define( 'CUSTOM_FIELD_TYPE_CHECKBOX', 5 );
  325. define( 'CUSTOM_FIELD_TYPE_LIST', 6 );
  326. define( 'CUSTOM_FIELD_TYPE_MULTILIST', 7 );
  327. define( 'CUSTOM_FIELD_TYPE_DATE', 8 );
  328. define( 'CUSTOM_FIELD_TYPE_RADIO', 9 );
  329. # Meta filter values
  330. define( 'META_FILTER_MYSELF', -1 );
  331. define( 'META_FILTER_NONE', - 2 );
  332. define( 'META_FILTER_CURRENT', - 3 );
  333. define( 'META_FILTER_ANY', 0 );
  334. # Versions
  335. define( 'VERSION_ALL', null );
  336. define( 'VERSION_FUTURE', 0 );
  337. define( 'VERSION_RELEASED', 1 );
  338. # Contexts for bug summary
  339. define( 'SUMMARY_CAPTION', 1 );
  340. define( 'SUMMARY_FIELD', 2 );
  341. define( 'SUMMARY_EMAIL', 3 );
  342. # bugnote types
  343. define( 'BUGNOTE', 0 );
  344. define( 'REMINDER', 1 );
  345. define( 'TIME_TRACKING', 2 );
  346. # token types
  347. define( 'TOKEN_UNKNOWN', 0 );
  348. define( 'TOKEN_FILTER', 1 );
  349. define( 'TOKEN_GRAPH', 2 );
  350. define( 'TOKEN_LAST_VISITED', 3 );
  351. define( 'TOKEN_AUTHENTICATED', 4 );
  352. define( 'TOKEN_COLLAPSE', 5 );
  353. define( 'TOKEN_USER', 1000 );
  354. # token expirations
  355. define( 'TOKEN_EXPIRY', 60 * 60 );
  356. # Default expiration of 60 minutes ( 3600 seconds )
  357. define( 'TOKEN_EXPIRY_LAST_VISITED', 24 * 60 * 60 );
  358. define( 'TOKEN_EXPIRY_AUTHENTICATED', 5 * 60 );
  359. define( 'TOKEN_EXPIRY_COLLAPSE', 365 * 24 * 60 * 60 );
  360. # config types
  361. define( 'CONFIG_TYPE_INT', 1 );
  362. define( 'CONFIG_TYPE_STRING', 2 );
  363. define( 'CONFIG_TYPE_COMPLEX', 3 );
  364. # Control types for date custom fields.
  365. define( 'CUSTOM_FIELD_DATE_ANY', 0 );
  366. define( 'CUSTOM_FIELD_DATE_NONE', 1 );
  367. define( 'CUSTOM_FIELD_DATE_BETWEEN', 2 );
  368. define( 'CUSTOM_FIELD_DATE_ONORBEFORE', 3 );
  369. define( 'CUSTOM_FIELD_DATE_BEFORE', 4 );
  370. define( 'CUSTOM_FIELD_DATE_ON', 5 );
  371. define( 'CUSTOM_FIELD_DATE_AFTER', 6 );
  372. define( 'CUSTOM_FIELD_DATE_ONORAFTER', 7 );
  373. # custom field types
  374. define( 'CUSTOM_FIELD_TYPE_BUG', 0 );
  375. define( 'CUSTOM_FIELD_TYPE_USER', 1 );
  376. define( 'CUSTOM_FIELD_TYPE_BUGNOTE', 2 );
  377. define( 'CUSTOM_FIELD_TYPE_PROJECT', 3 );
  378. define( 'CUSTOM_FIELD_TYPE_FILE', 4 );
  379. # system logging
  380. # logging levels, can be OR'd together
  381. define( 'LOG_NONE', 0 ); # no logging
  382. define( 'LOG_EMAIL', 1 ); # all emails sent
  383. define( 'LOG_EMAIL_RECIPIENT', 2 ); # details of email recipient determination
  384. define( 'LOG_FILTERING', 4 ); # logging for filtering.
  385. define( 'LOG_AJAX', 8 ); # logging for AJAX / XmlHttpRequests
  386. # COLUMNS_TARGET_*
  387. define( 'COLUMNS_TARGET_VIEW_PAGE', 1 );
  388. define( 'COLUMNS_TARGET_PRINT_PAGE', 2 );
  389. define( 'COLUMNS_TARGET_CSV_PAGE', 3 );
  390. define( 'COLUMNS_TARGET_EXCEL_PAGE', 4 );
  391. # sponsorship "paid" values
  392. define( 'SPONSORSHIP_UNPAID', 0 );
  393. define( 'SPONSORSHIP_REQUESTED', 1 );
  394. define( 'SPONSORSHIP_PAID', 2 );
  395. # Plugin events
  396. define( 'EVENT_TYPE_DEFAULT', 0 );
  397. define( 'EVENT_TYPE_EXECUTE', 1 );
  398. define( 'EVENT_TYPE_OUTPUT', 2 );
  399. define( 'EVENT_TYPE_CHAIN', 3 );
  400. define( 'EVENT_TYPE_FIRST', 4 );
  401. # Timeline types
  402. define( 'TIMELINE_TARGETTED', 1 );
  403. define( 'TIMELINE_FIXED', 2 );
  404. # PHPMailer Methods
  405. define( 'PHPMAILER_METHOD_MAIL', 0 );
  406. define( 'PHPMAILER_METHOD_SENDMAIL', 1 );
  407. define( 'PHPMAILER_METHOD_SMTP', 2 );
  408. # Lengths - NOTE: these may represent hard-coded values in db schema and should not be changed.
  409. define( 'USERLEN', 32);
  410. define( 'REALLEN', 64);
  411. define( 'PASSLEN', 32);