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