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