PageRenderTime 60ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/MantisBT/config_defaults_inc.php

https://bitbucket.org/crypticrod/sr_wp_code
PHP | 3867 lines | 894 code | 492 blank | 2481 comment | 30 complexity | f9ede446f454b8ae64876b1f2ce8776c MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1, GPL-3.0, LGPL-2.0, AGPL-3.0
  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. /**
  16. * Default Configuration Variables
  17. *
  18. * This file should not be changed. If you want to override any of the values
  19. * defined here, define them in a file called config_inc.php, which will
  20. * be loaded after this file.
  21. *
  22. * In general a value of OFF means the feature is disabled and ON means the
  23. * feature is enabled. Any other cases will have an explanation.
  24. *
  25. * For more details see http://www.mantisbt.org/docs/master-1.2.x/
  26. *
  27. * @package MantisBT
  28. * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
  29. * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
  30. * @link http://www.mantisbt.org
  31. */
  32. /******************************
  33. * MantisBT Database Settings *
  34. ******************************/
  35. /**
  36. * hostname should be either a hostname or connection string to supply to adodb.
  37. * For example, if you would like to connect to a database server on the local machine,
  38. * set hostname to 'localhost'
  39. * If you need to supply a port to connect to, set hostname as 'localhost:3306'.
  40. * @global string $g_hostname
  41. */
  42. $g_hostname = 'localhost';
  43. /**
  44. * User name to use for connecting to the database. The user needs to have read/write access to the MantisBT database.
  45. * The default user name is "root".
  46. * @global string $g_db_username
  47. */
  48. $g_db_username = 'root';
  49. /**
  50. * Password for the specified user name. The default password is empty.
  51. * @global string $g_db_password
  52. */
  53. $g_db_password = '';
  54. /**
  55. * Name of database that contains MantisBT tables.
  56. * The default database name is "bugtracker".
  57. * @global string $g_database_name
  58. */
  59. $g_database_name = 'bugtracker';
  60. /**
  61. * Database Schema Name - used in the case of db2.
  62. * @global string $g_db_schema
  63. */
  64. $g_db_schema = '';
  65. /**
  66. * Defines the database type. The supported default is 'mysql'.
  67. * Supported types: 'mysql' or 'mysqli' for MySQL, 'pgsql' for PostgreSQL,
  68. * 'odbc_mssql', 'mssql' for MS SQL Server, 'oci8' for Oracle, and 'db2' for DB2.
  69. * @global string $g_db_type
  70. */
  71. $g_db_type = 'mysql';
  72. /**************************
  73. * MantisBT Path Settings *
  74. **************************/
  75. if ( isset ( $_SERVER['SCRIPT_NAME'] ) ) {
  76. $t_protocol = 'http';
  77. if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
  78. $t_protocol= $_SERVER['HTTP_X_FORWARDED_PROTO'];
  79. } else if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
  80. $t_protocol = 'https';
  81. }
  82. # $_SERVER['SERVER_PORT'] is not defined in case of php-cgi.exe
  83. if ( isset( $_SERVER['SERVER_PORT'] ) ) {
  84. $t_port = ':' . $_SERVER['SERVER_PORT'];
  85. if ( ( ':80' == $t_port && 'http' == $t_protocol )
  86. || ( ':443' == $t_port && 'https' == $t_protocol )) {
  87. $t_port = '';
  88. }
  89. } else {
  90. $t_port = '';
  91. }
  92. if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
  93. $t_hosts = explode( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] );
  94. $t_host = $t_hosts[0];
  95. } else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
  96. $t_host = $_SERVER['HTTP_HOST'];
  97. } else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
  98. $t_host = $_SERVER['SERVER_NAME'] . $t_port;
  99. } else if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
  100. $t_host = $_SERVER['SERVER_ADDR'] . $t_port;
  101. } else {
  102. $t_host = 'localhost';
  103. }
  104. $t_self = $_SERVER['SCRIPT_NAME'];
  105. $t_self = trim( str_replace( "\0", '', $t_self ) );
  106. $t_path = str_replace( basename( $t_self ), '', $t_self );
  107. $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . '/' : $t_path;
  108. $t_path = basename( $t_path ) == "soap" ? dirname( dirname( $t_path ) ) . '/' : $t_path;
  109. if ( strpos( $t_path, '&#' ) ) {
  110. echo 'Can not safely determine $g_path. Please set $g_path manually in config_inc.php';
  111. die;
  112. }
  113. $t_url = $t_protocol . '://' . $t_host . $t_path;
  114. } else {
  115. $t_path = '';
  116. $t_host = '';
  117. $t_protocol = '';
  118. }
  119. /**
  120. * path to your installation as seen from the web browser
  121. * requires trailing /
  122. * @global string $g_path
  123. */
  124. $g_path = isset( $t_url ) ? $t_url : 'http://localhost/mantisbt/';
  125. /**
  126. * path to your images directory (for icons)
  127. * requires trailing /
  128. * @global string $g_icon_path
  129. */
  130. $g_icon_path = '%path%images/';
  131. /**
  132. * Short web path without the domain name
  133. * requires trailing /
  134. * @global string $g_short_path
  135. */
  136. $g_short_path = $t_path;
  137. /**
  138. * absolute path to your installation. Requires trailing / or \
  139. * @global string $g_absolute_path
  140. */
  141. $g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
  142. /**
  143. * absolute patch to your core files. The default is usually OK,
  144. * unless you moved the 'core' directory out of your webroot (recommended).
  145. * @global string $g_core_path
  146. */
  147. $g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
  148. /**
  149. * absolute path to class files. Requires trailing / or \
  150. * @global string $g_class_path
  151. */
  152. $g_class_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR;
  153. /**
  154. * Used to link to manual for User Documentation.
  155. * @global string $g_manual_url
  156. */
  157. $g_manual_url = 'http://www.mantisbt.org/docs/master-1.2.x/';
  158. /**************
  159. * Web Server *
  160. **************/
  161. if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { // SERVER_SOFTWARE not defined in case of php-cgi.exe
  162. $t_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
  163. } else {
  164. $t_use_iis = OFF;
  165. }
  166. /**
  167. * Using Microsoft Internet Information Server (IIS)
  168. * ON or OFF
  169. * @global int $g_use_iis
  170. */
  171. $g_use_iis = $t_use_iis;
  172. /**
  173. * Session handler. Possible values:
  174. * 'php' -> Default PHP filesystem sessions
  175. * 'adodb' -> Database storage sessions
  176. * 'memcached' -> Memcached storage sessions
  177. * @global string $g_session_handler
  178. */
  179. $g_session_handler = 'php';
  180. /**
  181. * Session key name. Should be unique between multiple installations to prevent conflicts.
  182. * @global string $g_session_key
  183. */
  184. $g_session_key = 'MantisBT';
  185. /**
  186. * Session save path. If false, uses default value as set by session handler.
  187. * @global bool $g_session_save_path
  188. */
  189. $g_session_save_path = false;
  190. /**
  191. * Session validation
  192. * WARNING: Disabling this could be a potential security risk!!
  193. * @global int $g_session_validation
  194. */
  195. $g_session_validation = ON;
  196. /**
  197. * Form security validation.
  198. * This protects against Cross-Site Request Forgery, but some proxy servers may
  199. * not correctly work with this option enabled because they cache pages incorrectly.
  200. * WARNING: Disabling this IS a security risk!!
  201. */
  202. $g_form_security_validation = ON;
  203. /****************************
  204. * Signup and Lost Password *
  205. ****************************/
  206. /**
  207. * allow users to signup for their own accounts.
  208. * Mail settings must be correctly configured in order for this to work
  209. * @global int $g_allow_signup
  210. */
  211. $g_allow_signup = ON;
  212. /**
  213. * Max. attempts to login using a wrong password before lock the account.
  214. * When locked, it's required to reset the password (lost password)
  215. * Value resets to zero at each successfully login
  216. * Set to OFF to disable this control
  217. * @global int $g_max_failed_login_count
  218. */
  219. $g_max_failed_login_count = OFF;
  220. /**
  221. * access level required to be notified when a new user has been created using the "signup form"
  222. * @global int $g_notify_new_user_created_threshold_min
  223. */
  224. $g_notify_new_user_created_threshold_min = ADMINISTRATOR;
  225. /**
  226. * if ON users will be sent their password when reset.
  227. * if OFF the password will be set to blank. If set to ON, mail settings must be
  228. * correctly configured.
  229. * @global int $g_send_reset_password
  230. */
  231. $g_send_reset_password = ON;
  232. /**
  233. * String used to generate the confirm_hash for the 'lost password' feature and captcha code for 'signup'
  234. * ATTENTION: CHANGE IT TO WHATEVER VALUE YOU PREFER
  235. * @global int $g_password_confirm_hash_magic_string
  236. * @todo randomize + admin check
  237. */
  238. $g_password_confirm_hash_magic_string = 'blowfish';
  239. /**
  240. * use captcha image to validate subscription it requires GD library installed
  241. * @global int $g_signup_use_captcha
  242. */
  243. $g_signup_use_captcha = ON;
  244. /**
  245. * absolute path (with trailing slash!) to folder which contains your TrueType-Font files
  246. * used to create the captcha image and since 0.19.3 for the Relationship Graphs
  247. * @global string $g_system_font_folder
  248. */
  249. $g_system_font_folder = '';
  250. /**
  251. * font name used to create the captcha image. i.e. arial.ttf
  252. * (the font file has to exist in the system_font_folder)
  253. * @global string $g_font_per_captcha
  254. */
  255. $g_font_per_captcha = 'arial.ttf';
  256. /**
  257. * Setting to disable the 'lost your password' feature.
  258. * @global int $g_lost_password_feature
  259. */
  260. $g_lost_password_feature = ON;
  261. /**
  262. * Max. simultaneous requests of 'lost password'
  263. * When this value is reached, it's no longer possible to request new password reset
  264. * Value resets to zero at each successfully login
  265. * @global int $g_max_lost_password_in_progress_count
  266. */
  267. $g_max_lost_password_in_progress_count = 3;
  268. /***************************
  269. * MantisBT Email Settings *
  270. ***************************/
  271. /**
  272. * Administrator Email address
  273. * @global string $g_administrator_email
  274. */
  275. $g_administrator_email = 'administrator@example.com';
  276. /**
  277. * Webmaster email
  278. * @global string $g_webmaster_email
  279. */
  280. $g_webmaster_email = 'webmaster@example.com';
  281. /**
  282. * the sender email, part of 'From: ' header in emails
  283. * @global string $g_from_email
  284. */
  285. $g_from_email = 'noreply@example.com';
  286. /**
  287. * the sender name, part of 'From: ' header in emails
  288. * @global string $g_from_name
  289. */
  290. $g_from_name = 'Mantis Bug Tracker';
  291. /**
  292. * the return address for bounced mail
  293. * @global string $g_return_path_email
  294. */
  295. $g_return_path_email = 'admin@example.com';
  296. /**
  297. * Allow email notification.
  298. * Set to ON to enable email notifications, OFF to disable them. Note that
  299. * disabling email notifications has no effect on emails generated as part
  300. * of the user signup process. When set to OFF, the password reset feature
  301. * is disabled. Additionally, notifications of administrators updating
  302. * accounts are not sent to users.
  303. * @global int $g_enable_email_notification
  304. */
  305. $g_enable_email_notification = ON;
  306. /**
  307. * The following two config options allow you to control who should get email
  308. * notifications on different actions/statuses. The first option (default_notify_flags)
  309. * sets the default values for different user categories. The user categories
  310. * are:
  311. *
  312. * 'reporter': the reporter of the bug
  313. * 'handler': the handler of the bug
  314. * 'monitor': users who are monitoring a bug
  315. * 'bugnotes': users who have added a bugnote to the bug
  316. * 'explicit': users who are explicitly specified by the code based on the action (e.g. user added to monitor list).
  317. * 'threshold_max': all users with access <= max
  318. * 'threshold_min': ..and with access >= min
  319. *
  320. * The second config option (notify_flags) sets overrides for specific actions/statuses.
  321. * If a user category is not listed for an action, the default from the config
  322. * option above is used. The possible actions are:
  323. *
  324. * 'new': a new bug has been added
  325. * 'owner': a bug has been assigned to a new owner
  326. * 'reopened': a bug has been reopened
  327. * 'deleted': a bug has been deleted
  328. * 'updated': a bug has been updated
  329. * 'bugnote': a bugnote has been added to a bug
  330. * 'sponsor': sponsorship has changed on this bug
  331. * 'relation': a relationship has changed on this bug
  332. * 'monitor': an issue is monitored.
  333. * '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', ...etc.
  334. * this list corresponds to $g_status_enum_string
  335. *
  336. * If you wanted to have all developers get notified of new bugs you might add
  337. * the following lines to your config file:
  338. *
  339. * $g_notify_flags['new']['threshold_min'] = DEVELOPER;
  340. * $g_notify_flags['new']['threshold_max'] = DEVELOPER;
  341. *
  342. * You might want to do something similar so all managers are notified when a
  343. * bug is closed. If you didn't want reporters to be notified when a bug is
  344. * closed (only when it is resolved) you would use:
  345. *
  346. * $g_notify_flags['closed']['reporter'] = OFF;
  347. *
  348. * @global array $g_default_notify_flags
  349. */
  350. $g_default_notify_flags = array('reporter' => ON,
  351. 'handler' => ON,
  352. 'monitor' => ON,
  353. 'bugnotes' => ON,
  354. 'explicit' => ON,
  355. 'threshold_min' => NOBODY,
  356. 'threshold_max' => NOBODY);
  357. /**
  358. * We don't need to send these notifications on new bugs
  359. * (see above for info on this config option)
  360. * @todo (though I'm not sure they need to be turned off anymore
  361. * - there just won't be anyone in those categories)
  362. * I guess it serves as an example and a placeholder for this
  363. * config option
  364. * @see $g_default_notify_flags
  365. * @global array $g_notify_flags
  366. */
  367. $g_notify_flags['new'] = array('bugnotes' => OFF,
  368. 'monitor' => OFF);
  369. $g_notify_flags['monitor'] = array( 'reporter' => OFF,
  370. 'handler' => OFF,
  371. 'monitor' => OFF,
  372. 'bugnotes' => OFF,
  373. 'explicit' => ON,
  374. 'threshold_min' => NOBODY,
  375. 'threshold_max' => NOBODY);
  376. /**
  377. * Whether user's should receive emails for their own actions
  378. * @global int $g_email_receive_own
  379. */
  380. $g_email_receive_own = OFF;
  381. /**
  382. * set to OFF to disable email check
  383. * @global int $g_validate_email
  384. */
  385. $g_validate_email = ON;
  386. /**
  387. * set to OFF to disable email check
  388. * @global int $g_check_mx_record
  389. */
  390. $g_check_mx_record = OFF;
  391. /**
  392. * if ON, allow the user to omit an email field
  393. * note if you allow users to create their own accounts, they
  394. * must specify an email at that point, no matter what the value
  395. * of this option is. Otherwise they wouldn't get their passwords.
  396. * @global int $g_allow_blank_email
  397. */
  398. $g_allow_blank_email = OFF;
  399. /**
  400. * Only allow and send email to addresses in the given domain
  401. * For example:
  402. * $g_limit_email_domain = 'users.sourceforge.net';
  403. * @global string|int $g_limit_email_domain
  404. */
  405. $g_limit_email_domain = OFF;
  406. /**
  407. * This specifies the access level that is needed to get the mailto: links.
  408. * @global int $g_show_user_email_threshold
  409. */
  410. $g_show_user_email_threshold = NOBODY;
  411. /**
  412. * This specifies the access level that is needed to see realnames on user view page
  413. * @global int $g_show_user_realname_threshold
  414. */
  415. $g_show_user_realname_threshold = NOBODY;
  416. /**
  417. * If use_x_priority is set to ON, what should the value be?
  418. * Urgent = 1, Not Urgent = 5, Disable = 0
  419. * Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
  420. * @global int $g_mail_priority
  421. */
  422. $g_mail_priority = 3;
  423. /**
  424. * select the method to mail by:
  425. * PHPMAILER_METHOD_MAIL - mail()
  426. * PHPMAILER_METHOD_SENDMAIL - sendmail
  427. * PHPMAILER_METHOD_SMTP - SMTP
  428. * @global int $g_phpMailer_method
  429. */
  430. $g_phpMailer_method = PHPMAILER_METHOD_MAIL;
  431. /**
  432. * This option allows you to use a remote SMTP host. Must use the phpMailer script
  433. * One or more hosts, separated by a semicolon, can be listed.
  434. * You can also specify a different port for each host by using this
  435. * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
  436. * Hosts will be tried in order.
  437. * @global string $g_smtp_host
  438. */
  439. $g_smtp_host = 'localhost';
  440. /**
  441. * These options allow you to use SMTP Authentication when you use a remote
  442. * SMTP host with phpMailer. If smtp_username is not '' then the username
  443. * and password will be used when logging in to the SMTP server.
  444. * @global string $g_smtp_username
  445. */
  446. $g_smtp_username = '';
  447. /**
  448. * SMTP Server Authentication password
  449. * @global string $g_smtp_password
  450. */
  451. $g_smtp_password = '';
  452. /**
  453. * This control the connection mode to SMTP server. Can be 'ssl' or 'tls'
  454. * @global string $g_smtp_connection_mode
  455. */
  456. $g_smtp_connection_mode = '';
  457. /**
  458. * The smtp port to use. The typical SMTP ports are 25 and 587. The port to use
  459. * will depend on the SMTP server configuration and hence others may be used.
  460. * @global int $g_smtp_port
  461. */
  462. $g_smtp_port = 25;
  463. /**
  464. * It is recommended to use a cronjob or a scheduler task to send emails.
  465. * The cronjob should typically run every 5 minutes. If no cronjob is used,
  466. * then user will have to wait for emails to be sent after performing an action
  467. * which triggers notifications. This slows user performance.
  468. * @global int $g_email_send_using_cronjob
  469. */
  470. $g_email_send_using_cronjob = OFF;
  471. /**
  472. * Specify whether e-mails should be sent with the category set or not. This is tested
  473. * with Microsoft Outlook. More testing for this feature + other formats will be added
  474. * in the future.
  475. * OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
  476. * @global int $g_email_set_category
  477. */
  478. $g_email_set_category = OFF;
  479. /**
  480. * email separator and padding
  481. * @global string $g_email_separator1
  482. */
  483. $g_email_separator1 = str_pad('', 70, '=');
  484. /**
  485. * email separator and padding
  486. * @global string $g_email_separator2
  487. */
  488. $g_email_separator2 = str_pad('', 70, '-');
  489. /**
  490. * email separator and padding
  491. * @global int $g_email_padding_length
  492. */
  493. $g_email_padding_length = 28;
  494. /***************************
  495. * MantisBT Version String *
  496. ***************************/
  497. /**
  498. * Set to off by default to not expose version to users
  499. * @global int $g_show_version
  500. */
  501. $g_show_version = OFF;
  502. /**
  503. * String appended to the MantisBT version when displayed to the user
  504. * @global string $g_version_suffix
  505. */
  506. $g_version_suffix = '';
  507. /******************************
  508. * MantisBT Language Settings *
  509. ******************************/
  510. /**
  511. * If the language is set to 'auto', the actual
  512. * language is determined by the user agent (web browser)
  513. * language preference.
  514. * @global string $g_default_language
  515. */
  516. $g_default_language = 'english';
  517. /**
  518. * list the choices that the users are allowed to choose
  519. * @global array $g_language_choices_arr
  520. */
  521. $g_language_choices_arr = array(
  522. 'auto',
  523. 'afrikaans',
  524. 'amharic',
  525. 'arabic',
  526. 'arabicegyptianspoken',
  527. 'belarusian_tarask',
  528. 'breton',
  529. 'bulgarian',
  530. 'catalan',
  531. 'chinese_simplified',
  532. 'chinese_traditional',
  533. 'croatian',
  534. 'czech',
  535. 'danish',
  536. 'dutch',
  537. 'english',
  538. 'estonian',
  539. 'finnish',
  540. 'french',
  541. 'galician',
  542. 'german',
  543. 'greek',
  544. 'hebrew',
  545. 'hungarian',
  546. 'icelandic',
  547. 'interlingua',
  548. 'italian',
  549. 'japanese',
  550. 'korean',
  551. 'latvian',
  552. 'lithuanian',
  553. 'macedonian',
  554. 'norwegian_bokmal',
  555. 'norwegian_nynorsk',
  556. 'occitan',
  557. 'polish',
  558. 'portuguese_brazil',
  559. 'portuguese_standard',
  560. 'ripoarisch',
  561. 'romanian',
  562. 'russian',
  563. 'serbian',
  564. 'slovak',
  565. 'slovene',
  566. 'spanish',
  567. 'swissgerman',
  568. 'swedish',
  569. 'tagalog',
  570. 'turkish',
  571. 'ukrainian',
  572. 'urdu',
  573. 'vietnamese',
  574. 'volapuk',
  575. );
  576. /**
  577. * Browser language mapping for 'auto' language selection
  578. * @global array $g_language_auto_map
  579. */
  580. $g_language_auto_map = array(
  581. 'af' => 'afrikaans',
  582. 'am' => 'amharic',
  583. 'ar' => 'arabic',
  584. 'arz' => 'arabicegyptianspoken',
  585. 'be, be-tarask' => 'belarusian_tarask',
  586. 'bg' => 'bulgarian',
  587. 'br' => 'breton',
  588. 'ca' => 'catalan',
  589. 'zh-cn, zh-sg, zh' => 'chinese_simplified',
  590. 'zh-hk, zh-tw' => 'chinese_traditional',
  591. 'cs' => 'czech',
  592. 'da' => 'danish',
  593. 'nl-be, nl' => 'dutch',
  594. 'en-us, en-gb, en-au, en' => 'english',
  595. 'et' => 'estonian',
  596. 'fi' => 'finnish',
  597. 'fr-ca, fr-be, fr-ch, fr' => 'french',
  598. 'gl' => 'galician',
  599. 'gsw' => 'swissgerman',
  600. 'de-de, de-at, de-ch, de' => 'german',
  601. 'he' => 'hebrew',
  602. 'hu' => 'hungarian',
  603. 'hr' => 'croatian',
  604. 'ia' => 'interlingua',
  605. 'is' => 'icelandic',
  606. 'it-ch, it' => 'italian',
  607. 'ja' => 'japanese',
  608. 'ko' => 'korean',
  609. 'ksh' => 'ripoarisch',
  610. 'lt' => 'lithuanian',
  611. 'lv' => 'latvian',
  612. 'mk' => 'macedonian',
  613. 'no' => 'norwegian_bokmal',
  614. 'nn' => 'norwegian_nynorsk',
  615. 'oc' => 'occitan',
  616. 'pl' => 'polish',
  617. 'pt-br' => 'portuguese_brazil',
  618. 'pt' => 'portuguese_standard',
  619. 'ro-mo, ro' => 'romanian',
  620. 'ru-mo, ru-ru, ru-ua, ru' => 'russian',
  621. 'sr' => 'serbian',
  622. 'sk' => 'slovak',
  623. 'sl' => 'slovene',
  624. 'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
  625. 'sv-fi, sv' => 'swedish',
  626. 'tl' => 'tagalog',
  627. 'tr' => 'turkish',
  628. 'uk' => 'ukrainian',
  629. 'vi' => 'vietnamese',
  630. 'vo' => 'volapuk',
  631. );
  632. /**
  633. * Fallback for automatic language selection
  634. * @global string $g_fallback_language
  635. */
  636. $g_fallback_language = 'english';
  637. /*****************************
  638. * MantisBT Display Settings *
  639. *****************************/
  640. /**
  641. * browser window title
  642. * @global string $g_window_title
  643. */
  644. $g_window_title = 'MantisBT';
  645. /**
  646. * title at top of html page (empty by default, since there is a logo now)
  647. * @global string $g_page_title
  648. */
  649. $g_page_title = '';
  650. /**
  651. * Check for admin directory, database upgrades, etc.
  652. * @global int $g_admin_checks
  653. */
  654. $g_admin_checks = ON;
  655. /**
  656. * Favicon image
  657. * @global string $g_favicon_image
  658. */
  659. $g_favicon_image = 'images/favicon.ico';
  660. /**
  661. * Logo
  662. * @global string $g_logo_image
  663. */
  664. $g_logo_image = 'images/mantis_logo.gif';
  665. /**
  666. * Logo URL link
  667. * @global string $g_logo_url
  668. */
  669. $g_logo_url = '%default_home_page%';
  670. /**
  671. * Re-authentication required for admin areas
  672. * @global int $g_reauthentication
  673. */
  674. $g_reauthentication = ON;
  675. /**
  676. *
  677. * @global int $g_reauthentication_expiry
  678. */
  679. $g_reauthentication_expiry = TOKEN_EXPIRY_AUTHENTICATED;
  680. /**
  681. * Specifies whether to enable support for project documents or not.
  682. * This feature is deprecated and is expected to be moved to a plugin
  683. * in the future.
  684. * @global int $g_enable_project_documentation
  685. */
  686. $g_enable_project_documentation = OFF;
  687. /**
  688. * Display another instance of the menu at the bottom. The top menu will still remain.
  689. * @global int $g_show_footer_menu
  690. */
  691. $g_show_footer_menu = OFF;
  692. /**
  693. * show extra menu bar with all available projects
  694. * @global int $g_show_project_menu_bar
  695. */
  696. $g_show_project_menu_bar = OFF;
  697. /**
  698. * show assigned to names
  699. * This is in the view all pages
  700. * @global int $g_show_assigned_names
  701. */
  702. $g_show_assigned_names = ON;
  703. /**
  704. * show priority as icon
  705. * OFF: Shows priority as icon in view all bugs page
  706. * ON: Shows priority as text in view all bugs page
  707. * @global int $g_show_priority_text
  708. */
  709. $g_show_priority_text = OFF;
  710. /**
  711. * Define the priority level at which a bug becomes significant.
  712. * Significant bugs are displayed with emphasis. Set this value to -1 to
  713. * disable the feature.
  714. * @global int $g_priority_significant_threshold
  715. */
  716. $g_priority_significant_threshold = HIGH;
  717. /**
  718. * Define the severity level at which a bug becomes significant.
  719. * Significant bugs are displayed with emphasis. Set this value to -1 to
  720. * disable the feature.
  721. * @global int $g_severity_significant_threshold
  722. */
  723. $g_severity_significant_threshold = MAJOR;
  724. /**
  725. * The default columns to be included in the View Issues Page.
  726. * This can be overriden using Manage -> Manage Configuration -> Manage Columns
  727. * Also each user can configure their own columns using My Account -> Manage Columns
  728. * Some of the columns specified here can be removed automatically if they conflict with other configuration.
  729. * Or if the current user doesn't have the necessary access level to view them.
  730. * For example, sponsorship_total will be removed if sponsorships are disabled.
  731. * To include custom field 'xyz', include the column name as 'custom_xyz'.
  732. *
  733. * Standard Column Names (i.e. names to choose from):
  734. * selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta,
  735. * resolution, fixed_in_version, view_state, os, os_build, build (for product build), platform, version, date_submitted, attachment,
  736. * category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count, description,
  737. * steps_to_reproduce, additional_information
  738. *
  739. * @global array $g_view_issues_page_columns
  740. */
  741. $g_view_issues_page_columns = array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category_id', 'severity', 'status', 'last_updated', 'summary' );
  742. /**
  743. * The default columns to be included in the Print Issues Page.
  744. * This can be overriden using Manage -> Manage Configuration -> Manage Columns
  745. * Also each user can configure their own columns using My Account -> Manage Columns
  746. * @global array $g_print_issues_page_columns
  747. */
  748. $g_print_issues_page_columns = array ( 'selection', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category_id', 'severity', 'status', 'last_updated', 'summary' );
  749. /**
  750. * The default columns to be included in the CSV export.
  751. * This can be overriden using Manage -> Manage Configuration -> Manage Columns
  752. * Also each user can configure their own columns using My Account -> Manage Columns
  753. * @global array $g_csv_columns
  754. */
  755. $g_csv_columns = array ( 'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity', 'reproducibility', 'version', 'projection', 'category_id', 'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state', 'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version' );
  756. /**
  757. * The default columns to be included in the Excel export.
  758. * This can be overriden using Manage -> Manage Configuration -> Manage Columns
  759. * Also each user can configure their own columns using My Account -> Manage Columns
  760. * @global array $g_excel_columns
  761. */
  762. $g_excel_columns = array ( 'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity', 'reproducibility', 'version', 'projection', 'category_id', 'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state', 'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version' );
  763. /**
  764. * show projects when in All Projects mode
  765. * @global int $g_show_bug_project_links
  766. */
  767. $g_show_bug_project_links = ON;
  768. /**
  769. * Position of the status colour legend, can be: POSITION_*
  770. * see constant_inc.php. (*: TOP , BOTTOM , or BOTH)
  771. * @global int $g_status_legend_position
  772. */
  773. $g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM;
  774. /**
  775. * Show a legend with percentage of bug status
  776. * x% of all bugs are new, y% of all bugs are assigned and so on.
  777. * If set to ON it will printed below the status colour legend.
  778. * @global int $g_status_percentage_legend
  779. */
  780. $g_status_percentage_legend = OFF;
  781. /**
  782. * Position of the filter box, can be: POSITION_*
  783. * POSITION_TOP, POSITION_BOTTOM, or POSITION_NONE for none.
  784. * @global int $g_filter_position
  785. */
  786. $g_filter_position = FILTER_POSITION_TOP;
  787. /**
  788. * Position of action buttons when viewing issues.
  789. * Can be: POSITION_TOP, POSITION_BOTTOM, or POSITION_BOTH.
  790. * @global int $g_action_button_position
  791. */
  792. $g_action_button_position = POSITION_BOTTOM;
  793. /**
  794. * show product versions in create, view and update screens
  795. * ON forces display even if none are defined
  796. * OFF suppresses display
  797. * AUTO suppresses the display if there are no versions defined for the project
  798. * @global int $g_show_product_version
  799. */
  800. $g_show_product_version = AUTO;
  801. /**
  802. * The access level threshold at which users will see the date of release
  803. * for product versions. Dates will be shown next to the product version,
  804. * target version and fixed in version fields. Set this threshold to NOBODY
  805. * to disable the feature.
  806. * @global int $g_show_version_dates_threshold
  807. */
  808. $g_show_version_dates_threshold = NOBODY;
  809. /**
  810. * show users with their real name or not
  811. * @global int $g_show_realname
  812. */
  813. $g_show_realname = OFF;
  814. /**
  815. * leave off for now
  816. * @global int $g_differentiate_duplicates
  817. */
  818. $g_differentiate_duplicates = OFF;
  819. /**
  820. * sorting for names in dropdown lists. If turned on, "Jane Doe" will be sorted with the "D"s
  821. * @global int $g_sort_by_last_name
  822. */
  823. $g_sort_by_last_name = OFF;
  824. /**
  825. * Show user avatar
  826. * the current implementation is based on http://www.gravatar.com
  827. * users will need to register there the same address used in
  828. * this MantisBT installation to have their avatar shown
  829. * Please note: upon registration or avatar change, it takes some time for
  830. * the updated gravatar images to show on sites
  831. * @global int $g_show_avatar
  832. */
  833. $g_show_avatar = OFF;
  834. /**
  835. * Only users above this threshold will have their avatar shown
  836. * @global int $g_show_avatar_threshold
  837. */
  838. $g_show_avatar_threshold = DEVELOPER;
  839. /**
  840. * Default avatar for users without a gravatar account
  841. * @global string $g_default_avatar
  842. */
  843. $g_default_avatar = "%path%images/no_avatar.png";
  844. /**
  845. * Show release dates on changelog
  846. * @global int $g_show_changelog_dates
  847. */
  848. $g_show_changelog_dates = ON;
  849. /**
  850. * Show release dates on roadmap
  851. * @global int $g_show_roadmap_dates
  852. */
  853. $g_show_roadmap_dates = ON;
  854. /**************************
  855. * MantisBT Time Settings *
  856. **************************/
  857. /**
  858. * time for 'permanent' cookie to live in seconds (1 year)
  859. * @global int $g_cookie_time_length
  860. */
  861. $g_cookie_time_length = 30000000;
  862. /**
  863. * minutes to wait before document is stale (in minutes)
  864. * @global int $g_content_expire
  865. */
  866. $g_content_expire = 0;
  867. /**
  868. * The time (in seconds) to allow for page execution during long processes
  869. * such as upgrading your database.
  870. * The default value of 0 indicates that the page should be allowed to
  871. * execute until it is finished.
  872. * @global int $g_long_process_timeout
  873. */
  874. $g_long_process_timeout = 0;
  875. /**************************
  876. * MantisBT Date Settings *
  877. **************************/
  878. /**
  879. * date format strings defaults to ISO 8601 formatting
  880. * go to http://www.php.net/manual/en/function.date.php
  881. * for detailed instructions on date formatting
  882. * @global string $g_short_date_format
  883. */
  884. $g_short_date_format = 'Y-m-d';
  885. /**
  886. * date format strings defaults to ISO 8601 formatting
  887. * go to http://www.php.net/manual/en/function.date.php
  888. * for detailed instructions on date formatting
  889. * @global string $g_normal_date_format
  890. */
  891. $g_normal_date_format = 'Y-m-d H:i';
  892. /**
  893. * date format strings defaults to ISO 8601 formatting
  894. * go to http://www.php.net/manual/en/function.date.php
  895. * for detailed instructions on date formatting
  896. * @global string $g_complete_date_format
  897. */
  898. $g_complete_date_format = 'Y-m-d H:i T';
  899. /**
  900. * jscalendar date format string
  901. * go to http://www.php.net/manual/en/function.date.php
  902. * for detailed instructions on date formatting
  903. * @global string $g_calendar_js_date_format
  904. */
  905. $g_calendar_js_date_format = '\%Y-\%m-\%d \%H:\%M';
  906. /**
  907. * jscalendar date format string
  908. * go to http://www.php.net/manual/en/function.date.php
  909. * for detailed instructions on date formatting
  910. * @global string $g_calendar_date_format
  911. */
  912. $g_calendar_date_format = 'Y-m-d H:i';
  913. /**************************
  914. * MantisBT TimeZone Settings *
  915. **************************/
  916. /**
  917. * Default timezone to use in mantis.
  918. * See http://us.php.net/manual/en/timezones.php
  919. * for a list of valid timezones.
  920. * Note: if this is left blank, we use the result of
  921. * date_default_timezone_get() i.e. in order:
  922. * 1. Reading the TZ environment variable (if non empty)
  923. * 2. Reading the value of the date.timezone php.ini option (if set)
  924. * 3. Querying the host operating system (if supported and allowed by the OS)
  925. * 4. If none of the above succeed, will return a default timezone of UTC.
  926. * @global string $g_default_timezone
  927. */
  928. $g_default_timezone = '';
  929. /**************************
  930. * MantisBT News Settings *
  931. **************************/
  932. /**
  933. * Indicates whether the news feature should be enabled or disabled.
  934. * This feature is deprecated and is expected to be moved to a plugin
  935. * in the future.
  936. */
  937. $g_news_enabled = OFF;
  938. /**
  939. * Limit News Items
  940. * limit by entry count or date
  941. * BY_LIMIT - entry limit
  942. * BY_DATE - by date
  943. * @global int $g_news_limit_method
  944. */
  945. $g_news_limit_method = BY_LIMIT;
  946. /**
  947. * limit by last X entries
  948. * @global int $g_news_view_limit
  949. */
  950. $g_news_view_limit = 7;
  951. /**
  952. * limit by days
  953. * @global int $g_news_view_limit_days
  954. */
  955. $g_news_view_limit_days = 30;
  956. /**
  957. * threshold for viewing private news
  958. * @global int $g_private_news_threshold
  959. */
  960. $g_private_news_threshold = DEVELOPER;
  961. /********************************
  962. * MantisBT Default Preferences *
  963. ********************************/
  964. /**
  965. * signup default
  966. * look in constant_inc.php for values
  967. * @global int $g_default_new_account_access_level
  968. */
  969. $g_default_new_account_access_level = REPORTER;
  970. /**
  971. * Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
  972. * @global int $g_default_bug_view_status
  973. */
  974. $g_default_bug_view_status = VS_PUBLIC;
  975. /**
  976. * Default value for steps to reproduce field.
  977. * @global string $g_default_bug_steps_to_reproduce
  978. */
  979. $g_default_bug_steps_to_reproduce = '';
  980. /**
  981. * Default value for addition information field.
  982. * @global string $g_default_bug_additional_info
  983. */
  984. $g_default_bug_additional_info = '';
  985. /**
  986. * Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
  987. * @global int $g_default_bugnote_view_status
  988. */
  989. $g_default_bugnote_view_status = VS_PUBLIC;
  990. /**
  991. * Default bug resolution when reporting a new bug
  992. * @global int $g_default_bug_resolution
  993. */
  994. $g_default_bug_resolution = OPEN;
  995. /**
  996. * Default bug severity when reporting a new bug
  997. * @global int $g_default_bug_severity
  998. */
  999. $g_default_bug_severity = MINOR;
  1000. /**
  1001. * Default bug priority when reporting a new bug
  1002. * @global int $g_default_bug_priority
  1003. */
  1004. $g_default_bug_priority = NORMAL;
  1005. /**
  1006. * Default bug reproducibility when reporting a new bug
  1007. * @global int $g_default_bug_reproducibility
  1008. */
  1009. $g_default_bug_reproducibility = REPRODUCIBILITY_HAVENOTTRIED;
  1010. /**
  1011. * Default bug projection when reporting a new bug
  1012. * @global int $g_default_bug_projection
  1013. */
  1014. $g_default_bug_projection = PROJECTION_NONE;
  1015. /**
  1016. * Default bug ETA when reporting a new bug
  1017. * @global int $g_default_bug_eta
  1018. */
  1019. $g_default_bug_eta = ETA_NONE;
  1020. /**
  1021. * Default global category to be used when an issue is moved from a project to another
  1022. * that doesn't have a category with a matching name. The default is 1 which is the "General"
  1023. * category that is created in the default database.
  1024. */
  1025. $g_default_category_for_moves = 1;
  1026. /**
  1027. *
  1028. * @global int $g_default_limit_view
  1029. */
  1030. $g_default_limit_view = 50;
  1031. /**
  1032. *
  1033. * @global int $g_default_show_changed
  1034. */
  1035. $g_default_show_changed = 6;
  1036. /**
  1037. *
  1038. * @global int $g_hide_status_default
  1039. */
  1040. $g_hide_status_default = CLOSED;
  1041. /**
  1042. *
  1043. * @global string $g_show_sticky_issues
  1044. */
  1045. $g_show_sticky_issues = ON;
  1046. /**
  1047. * make sure people aren't refreshing too often
  1048. * in minutes
  1049. * @global int $g_min_refresh_delay
  1050. */
  1051. $g_min_refresh_delay = 10;
  1052. /**
  1053. * in minutes
  1054. * @global int $g_default_refresh_delay
  1055. */
  1056. $g_default_refresh_delay = 30;
  1057. /**
  1058. * in seconds
  1059. * @global int $g_default_redirect_delay
  1060. */
  1061. $g_default_redirect_delay = 2;
  1062. /**
  1063. *
  1064. * @global string $g_default_bugnote_order
  1065. */
  1066. $g_default_bugnote_order = 'ASC';
  1067. /**
  1068. *
  1069. * @global int $g_default_email_on_new
  1070. */
  1071. $g_default_email_on_new = ON;
  1072. /**
  1073. *
  1074. * @global int $g_default_email_on_assigned
  1075. */
  1076. $g_default_email_on_assigned = ON;
  1077. /**
  1078. *
  1079. * @global int $g_default_email_on_feedback
  1080. */
  1081. $g_default_email_on_feedback = ON;
  1082. /**
  1083. *
  1084. * @global int $g_default_email_on_resolved
  1085. */
  1086. $g_default_email_on_resolved = ON;
  1087. /**
  1088. *
  1089. * @global int $g_default_email_on_closed
  1090. */
  1091. $g_default_email_on_closed = ON;
  1092. /**
  1093. *
  1094. * @global int $g_default_email_on_reopened
  1095. */
  1096. $g_default_email_on_reopened = ON;
  1097. /**
  1098. *
  1099. * @global int $g_default_email_on_bugnote
  1100. */
  1101. $g_default_email_on_bugnote = ON;
  1102. /**
  1103. * @todo Unused
  1104. * @global int $g_default_email_on_status
  1105. */
  1106. $g_default_email_on_status = 0;
  1107. /**
  1108. * @todo Unused
  1109. * @global int $g_default_email_on_priority
  1110. */
  1111. $g_default_email_on_priority = 0;
  1112. /**
  1113. * 'any'
  1114. * @global int $g_default_email_on_new_minimum_severity
  1115. */
  1116. $g_default_email_on_new_minimum_severity = OFF;
  1117. /**
  1118. * 'any'
  1119. * @global int $g_default_email_on_assigned_minimum_severity
  1120. */
  1121. $g_default_email_on_assigned_minimum_severity = OFF;
  1122. /**
  1123. * 'any'
  1124. * @global int $g_default_email_on_feedback_minimum_severity
  1125. */
  1126. $g_default_email_on_feedback_minimum_severity = OFF;
  1127. /**
  1128. * 'any'
  1129. * @global int $g_default_email_on_resolved_minimum_severity
  1130. */
  1131. $g_default_email_on_resolved_minimum_severity = OFF;
  1132. /**
  1133. * 'any'
  1134. * @global int $g_default_email_on_closed_minimum_severity
  1135. */
  1136. $g_default_email_on_closed_minimum_severity = OFF;
  1137. /**
  1138. * 'any'
  1139. * @global int $g_default_email_on_reopened_minimum_severity
  1140. */
  1141. $g_default_email_on_reopened_minimum_severity = OFF;
  1142. /**
  1143. * 'any'
  1144. * @global int $g_default_email_on_bugnote_minimum_severity
  1145. */
  1146. $g_default_email_on_bugnote_minimum_severity = OFF;
  1147. /**
  1148. * 'any'
  1149. * @global int $g_default_email_on_status_minimum_severity
  1150. */
  1151. $g_default_email_on_status_minimum_severity = OFF;
  1152. /**
  1153. * @todo Unused
  1154. * @global int $g_default_email_on_priority_minimum_severity
  1155. */
  1156. $g_default_email_on_priority_minimum_severity = OFF;
  1157. /**
  1158. *
  1159. * @global int $g_default_email_bugnote_limit
  1160. */
  1161. $g_default_email_bugnote_limit = 0;
  1162. /*****************************
  1163. * MantisBT Summary Settings *
  1164. *****************************/
  1165. /**
  1166. * how many reporters to show
  1167. * this is useful when there are hundreds of reporters
  1168. * @global int $g_reporter_summary_limit
  1169. */
  1170. $g_reporter_summary_limit = 10;
  1171. /**
  1172. * summary date displays
  1173. * date lengths to count bugs by (in days)
  1174. * @global array $g_date_partitions
  1175. */
  1176. $g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
  1177. /**
  1178. * shows project '[project] category' when 'All Projects' is selected
  1179. * otherwise only 'category name'
  1180. * @global int $g_summary_category_include_project
  1181. */
  1182. $g_summary_category_include_project = OFF;
  1183. /**
  1184. * threshold for viewing summary
  1185. * @global int $g_view_summary_threshold
  1186. */
  1187. $g_view_summary_threshold = MANAGER;
  1188. /**
  1189. * Define the multipliers which are used to determine the effectiveness
  1190. * of reporters based on the severity of bugs. Higher multipliers will
  1191. * result in an increase in reporter effectiveness.
  1192. * @global array $g_severity_multipliers
  1193. */
  1194. $g_severity_multipliers = array( FEATURE => 1,
  1195. TRIVIAL => 2,
  1196. TEXT => 3,
  1197. TWEAK => 2,
  1198. MINOR => 5,
  1199. MAJOR => 8,
  1200. CRASH => 8,
  1201. BLOCK => 10 );
  1202. /**
  1203. * Define the resolutions which are used to determine the effectiveness
  1204. * of reporters based on the resolution of bugs. Higher multipliers will
  1205. * result in a decrease in reporter effectiveness. The only resolutions
  1206. * that need to be defined here are those which match or exceed
  1207. * $g_bug_resolution_not_fixed_threshold.
  1208. * @global array $g_resolution_multipliers
  1209. */
  1210. $g_resolution_multipliers = array( UNABLE_TO_DUPLICATE => 2,
  1211. NOT_FIXABLE => 1,
  1212. DUPLICATE => 3,
  1213. NOT_A_BUG => 5,
  1214. SUSPENDED => 1,
  1215. WONT_FIX => 1 );
  1216. /*****************************
  1217. * MantisBT Bugnote Settings *
  1218. *****************************/
  1219. /**
  1220. * bugnote ordering
  1221. * change to ASC or DESC
  1222. * @global string $g_bugnote_order
  1223. */
  1224. $g_bugnote_order = 'DESC';
  1225. /*********************************
  1226. * MantisBT Bug History Settings *
  1227. *********************************/
  1228. /**
  1229. * bug history visible by default when you view a bug
  1230. * change to ON or OFF
  1231. * @global int $g_history_default_visible
  1232. */
  1233. $g_history_default_visible = ON;
  1234. /**
  1235. * bug history ordering
  1236. * change to ASC or DESC
  1237. * @global string $g_history_order
  1238. */
  1239. $g_history_order = 'ASC';
  1240. /******************************
  1241. * MantisBT Reminder Settings *
  1242. ******************************/
  1243. /**
  1244. * are reminders stored as bugnotes
  1245. * @global int $g_store_reminders
  1246. */
  1247. $g_store_reminders = ON;
  1248. /**
  1249. * Automatically add recipients of reminders to monitor list, if they are not
  1250. * the handler or the reporter (since they automatically get notified, if required)
  1251. * If recipients of the reminders are below the monitor threshold, they will not be added.
  1252. * @global int $g_reminder_recipients_monitor_bug
  1253. */
  1254. $g_reminder_recipients_monitor_bug = ON;
  1255. /**
  1256. * Default Reminder View Status (VS_PUBLIC or VS_PRIVATE)
  1257. * @global int $g_default_reminder_view_status
  1258. */
  1259. $g_default_reminder_view_status = VS_PUBLIC;
  1260. /**
  1261. * The minimum access level required to show up in the list of users who can receive a reminder.
  1262. * The access level is that of the project to which the issue belongs.
  1263. * @global int $g_reminder_receive_threshold
  1264. */
  1265. $g_reminder_receive_threshold = DEVELOPER;
  1266. /*********************************
  1267. * MantisBT Sponsorship Settings *
  1268. *********************************/
  1269. /**
  1270. * Whether to enable/disable the whole issue sponsorship feature
  1271. * @global int $g_enable_sponsorship
  1272. */
  1273. $g_enable_sponsorship = OFF;
  1274. /**
  1275. * Currency used for all sponsorships.
  1276. * @global string $g_sponsorship_currency
  1277. */
  1278. $g_sponsorship_currency = 'US$';
  1279. /**
  1280. * Access level threshold needed to view the total sponsorship for an issue by all users.
  1281. * @global int $g_view_sponsorship_total_threshold
  1282. */
  1283. $g_view_sponsorship_total_threshold = VIEWER;
  1284. /**
  1285. * Access level threshold needed to view the users sponsoring an issue and the sponsorship
  1286. * amount for each.
  1287. * @global int $g_view_sponsorship_details_threshold
  1288. */
  1289. $g_view_sponsorship_details_threshold = VIEWER;
  1290. /**
  1291. * Access level threshold needed to allow user to sponsor issues.
  1292. * @global int $g_sponsor_threshold
  1293. */
  1294. $g_sponsor_threshold = REPORTER;
  1295. /**
  1296. * Access level required to be able to handle sponsored issues.
  1297. * @global int $g_handle_sponsored_bugs_threshold
  1298. */
  1299. $g_handle_sponsored_bugs_threshold = DEVELOPER;
  1300. /**
  1301. * Access level required to be able to assign a sponsored issue to a user with access level
  1302. * greater or equal to 'handle_sponsored_bugs_threshold'.
  1303. * @global int $g_assign_sponsored_bugs_threshold
  1304. */
  1305. $g_assign_sponsored_bugs_threshold = MANAGER;
  1306. /**
  1307. * Minimum sponsorship amount. If the user enters a value less than this, an error will be prompted.
  1308. * @global int $g_minimum_sponsorship_amount
  1309. */
  1310. $g_minimum_sponsorship_amount = 5;
  1311. /*********************************
  1312. * MantisBT File Upload Settings *
  1313. *********************************/
  1314. /**
  1315. * --- file upload settings --------
  1316. * This is the master setting to disable *all* file uploading functionality
  1317. *
  1318. * If you want to allow file uploads, you must also make sure that they are
  1319. * enabled in php. You may need to add 'file_uploads = TRUE' to your php.ini
  1320. *
  1321. * See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
  1322. * $g_allow_reporter_upload
  1323. * @global int $g_allow_file_upload
  1324. */
  1325. $g_allow_file_upload = ON;
  1326. /**
  1327. * Upload destination: specify actual location in project settings
  1328. * DISK, DATABASE, or FTP.
  1329. * @global int $g_file_upload_method
  1330. */
  1331. $g_file_upload_method = DATABASE;
  1332. /**
  1333. * When using FTP or DISK for storing uploaded files, this setting control
  1334. * the access permissions they will have on the web server: with the default
  1335. * value (0400) files will be read-only, and accessible only by the user
  1336. * running the apache process (probably "apache" in Linux and "Administrator"
  1337. * in Windows).
  1338. * For more details on unix style permissions:
  1339. * http://www.perlfect.com/articles/chmod.shtml
  1340. * @global int $g_attachments_file_permissions
  1341. */
  1342. $g_attachments_file_permissions = 0400;
  1343. /**
  1344. * FTP settings, used if $g_file_upload_method = FTP
  1345. * @global string $g_file_upload_ftp_server
  1346. */
  1347. $g_file_upload_ftp_server = 'ftp.myserver.com';
  1348. /**
  1349. *
  1350. * @global string $g_file_upload_ftp_user
  1351. */
  1352. $g_file_upload_ftp_user = 'readwriteuser';
  1353. /**
  1354. *
  1355. * @global string $g_file_upload_ftp_pass
  1356. */
  1357. $g_file_upload_ftp_pass = 'readwritepass';
  1358. /**
  1359. * Maximum file size that can be uploaded
  1360. * Also check your PHP settings (default is usually 2MBs)
  1361. * @global int $g_max_file_size
  1362. */
  1363. $g_max_file_size = 5000000;
  1364. /**
  1365. * Files that are allowed or not allowed. Separate items by commas.
  1366. * eg. 'php,html,java,exe,pl'
  1367. * if $g_allowed_files is filled in NO other file types will be allowed.
  1368. * $g_disallowed_files takes precedence over $g_allowed_files
  1369. * @global string $g_allowed_files
  1370. */
  1371. $g_allowed_files = '';
  1372. /**
  1373. *
  1374. * @global string $g_disallowed_files
  1375. */
  1376. $g_disallowed_files = '';
  1377. /**
  1378. * prefix to be used for the file system names of files uploaded to projects.
  1379. * Eg: doc-001-myprojdoc.zip
  1380. * @global string $g_document_files_prefix
  1381. */
  1382. $g_document_files_prefix = 'doc';
  1383. /**
  1384. * absolute path to the default upload folder. Requires trailing / or \
  1385. * @global string $g_absolute_path_default_upload_folder
  1386. */
  1387. $g_absolute_path_default_upload_folder = '';
  1388. /**************************
  1389. * MantisBT HTML Settings *
  1390. **************************/
  1391. /**
  1392. * html tags
  1393. * Set this flag to automatically convert www URLs and
  1394. * email adresses into clickable links
  1395. * @global int $g_html_make_links
  1396. */
  1397. $g_html_make_links = ON;
  1398. /**
  1399. * These are the valid html tags for multi-line fields (e.g. description)
  1400. * do NOT include href or img tags here
  1401. * do NOT include tags that have parameters (eg. <font face="arial">)
  1402. * @global string $g_html_valid_tags
  1403. */
  1404. $g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em, strong';
  1405. /**
  1406. * These are the valid html tags for single line fields (e.g. issue summary).
  1407. * do NOT include href or img tags here
  1408. * do NOT include tags that have parameters (eg. <font face="arial">)
  1409. * @global string $g_html_valid_tags_single_line
  1410. */
  1411. $g_html_valid_tags_single_line = 'i, b, u, em, strong';
  1412. /**
  1413. * maximum length of the description in a dropdown menu (for search)
  1414. * set to 0 to disable truncations
  1415. * @global int $g_max_dropdown_length
  1416. */
  1417. $g_max_dropdown_length = 40;
  1418. /**
  1419. * This flag conntrolls whether pre-formatted text (delimited by <pre> tags
  1420. * is wrapped to a maximum linelength (defaults to 100 chars in strings_api)
  1421. * If turned off, the display may be wide when viewing the text
  1422. * @global int $g_wrap_in_preformatted_text
  1423. */
  1424. $g_wrap_in_preformatted_text = ON;
  1425. /************************
  1426. * MantisBT HR Settings *
  1427. ************************/
  1428. /**
  1429. * Horizontal Rule Size
  1430. * @global int $g_hr_size
  1431. */
  1432. $g_hr_size = 1;
  1433. /**
  1434. * Horizontal Rule Width
  1435. * @global int $g_hr_width
  1436. */
  1437. $g_hr_width = 50;
  1438. /**************************
  1439. * MantisBT LDAP Settings *
  1440. **************************/
  1441. /**
  1442. * Specifies the LDAP or Active Directory server to connect to, and must be
  1443. * provided as an URI
  1444. * - Protocol is optional, can be one of ldap or ldaps, defaults to ldap
  1445. * - Port number is optional, and defaults to 389. If this doesn't work, try
  1446. * using one of the following standard port numbers: 636 (ldaps); for Active
  1447. * Directory Global Catalog forest-wide search, use 3268 (ldap) or 3269 (ldaps)
  1448. *
  1449. * Examples of valid URI:
  1450. *
  1451. * ldap.example.com
  1452. * ldap.example.com:3268
  1453. * ldap://ldap.example.com/
  1454. * ldaps://ldap.example.com:3269/
  1455. *
  1456. * @global string $g_ldap_server
  1457. */
  1458. $g_ldap_server = 'ldap.example.com';
  1459. /**
  1460. *
  1461. * @global string $g_ldap_root_dn
  1462. */
  1463. $g_ldap_root_dn = 'dc=example,dc=com,dc=au';
  1464. /**
  1465. * e.g. '(organizationname=*Traffic)'
  1466. * @global string $g_ldap_organization
  1467. */
  1468. $g_ldap_organization = '';
  1469. /**
  1470. * Use 'sAMAccountName' for Active Directory
  1471. * @global string $g_ldap_uid_field
  1472. */
  1473. $g_ldap_uid_field = 'uid';
  1474. /**
  1475. * The LDAP field for real name (i.e. common name).
  1476. * @global string $g_ldap_uid_field
  1477. */
  1478. $g_ldap_realname_field = 'cn';
  1479. /**
  1480. * The distinguished of the user account to use for binding to the LDAP server.
  1481. * For example, 'CN=ldap,OU=Administrators,DC=example,DC=com'.
  1482. *
  1483. * @global string $g_ldap_bind_dn
  1484. */
  1485. $g_ldap_bind_dn = '';
  1486. /**
  1487. * The password for the service account to be used for connecting to the LDAP server.
  1488. *
  1489. * @global string $g_ldap_bind_passwd
  1490. */
  1491. $g_ldap_bind_passwd = '';
  1492. /**
  1493. * Should we send to the LDAP email address or what MySql tells us
  1494. * @global int $g_use_ldap_email
  1495. */
  1496. $g_use_ldap_email = OFF;
  1497. /**
  1498. * Whether or not to pull the real name from LDAP.
  1499. * ON from LDAP, OFF from database.
  1500. * @global int $g_use_ldap_realname
  1501. */
  1502. $g_use_ldap_realname = OFF;
  1503. /**
  1504. * The LDAP Protocol Version, if 0, then the protocol version is not set. For Active Directory use version 3.
  1505. *
  1506. * @global int $g_ldap_protocol_version
  1507. */
  1508. $g_ldap_protocol_version = 0;
  1509. /**
  1510. * Determines whether the LDAP library automatically follows referrals returned by LDAP servers or not.
  1511. * This maps to LDAP_OPT_REFERRALS ldap library option. For Active Directory, this should be set to OFF.
  1512. *
  1513. * @global int $g_ldap_follow_referrals
  1514. */
  1515. $g_ldap_follow_referrals = ON;
  1516. /**
  1517. * For development purposes, this is a configuration option that allows replacing
  1518. * the ldap communication with a comma separated text file. The text file has a line per user.
  1519. * Each line includes: user name, user real name, email, password. For production
  1520. * systems this option should be set to ''.
  1521. */
  1522. $g_ldap_simulation_file_path = '';
  1523. /*******************
  1524. * Status Settings *
  1525. *******************/
  1526. /**
  1527. * Status to assign to the bug when submitted.
  1528. * @global int $g_bug_submit_status
  1529. */
  1530. $g_bug_submit_status = NEW_;
  1531. /**
  1532. * Status to assign to the bug when assigned.
  1533. * @global int $g_bug_assigned_status
  1534. */
  1535. $g_bug_assigned_status = ASSIGNED;
  1536. /**
  1537. * Status to assign to the bug when reopened.
  1538. * @global int $g_bug_reopen_status
  1539. */
  1540. $g_bug_reopen_status = FEEDBACK;
  1541. /**
  1542. * Status to assign to the bug when feedback is required from the issue reporter.
  1543. * Once the reporter adds a note the status moves back from feedback to $g_bug_assigned_status
  1544. * or $g_bug_submit_status.
  1545. * @global int $g_bug_feedback_status
  1546. */
  1547. $g_bug_feedback_status = FEEDBACK;
  1548. /**
  1549. * When a note is added to a bug currently in $g_bug_feedback_status, and the note
  1550. * author is the bug's reporter, this option will automatically set the bug status
  1551. * to $g_bug_submit_status or $g_bug_assigned_status if the bug is assigned to a
  1552. * developer. Defaults to enabled.
  1553. * @global boolean $g_reassign_on_feedback
  1554. */
  1555. $g_reassign_on_feedback = ON;
  1556. /**
  1557. * Resolution to assign to the bug when reopened.
  1558. * @global int $g_bug_reopen_resolution
  1559. */
  1560. $g_bug_reopen_resolution = REOPENED;
  1561. /**
  1562. * Bug becomes readonly if its status is >= this status. The bug becomes read/write again if re-opened and its
  1563. * status becomes less than this threshold.
  1564. * @global int $g_bug_readonly_status_threshold
  1565. */
  1566. $g_bug_readonly_status_threshold = RESOLVED;
  1567. /**
  1568. * Bug is resolved, ready to be closed or reopened. In some custom installations a bug
  1569. * may be considered as resolved when it is moved to a custom (FIXED or TESTED) status.
  1570. * @global int $g_bug_resolved_status_threshold
  1571. */
  1572. $g_bug_resolved_status_threshold = RESOLVED;
  1573. /**
  1574. * Threshold resolution which denotes that a bug has been resolved and
  1575. * successfully fixed by developers. Resolutions above this threshold
  1576. * and below $g_bug_resolution_not_fixed_threshold are considered to be
  1577. * resolved successfully.
  1578. * @global int $g_bug_resolution_fixed_threshold
  1579. */
  1580. $g_bug_resolution_fixed_threshold = FIXED;
  1581. /**
  1582. * Threshold resolution which denotes that a bug has been resolved without
  1583. * being successfully fixed by developers. Resolutions above this
  1584. * threshold are considered to be resolved in an unsuccessful way.
  1585. * @global int $g_bug_resolution_not_fixed_threshold
  1586. */
  1587. $g_bug_resolution_not_fixed_threshold = UNABLE_TO_DUPLICATE;
  1588. /**
  1589. * Bug is closed. In some custom installations a bug may be considered as closed when
  1590. * it is moved to a custom (COMPLETED or IMPLEMENTED) status.
  1591. * @global int $g_bug_closed_status_threshold
  1592. */
  1593. $g_bug_closed_status_threshold = CLOSED;
  1594. /**
  1595. * Automatically set status to ASSIGNED whenever a bug is assigned to a person.
  1596. * This is useful for installations where assigned status is to be used when
  1597. * the bug is in progress, rather than just put in a person's queue.
  1598. * @global int $g_auto_set_status_to_assigned
  1599. */
  1600. $g_auto_set_status_to_assigned = ON;
  1601. /**
  1602. * 'status_enum_workflow' defines the workflow, and reflects a simple
  1603. * 2-dimensional matrix. For each existing status, you define which
  1604. * statuses you can go to from that status, e.g. from NEW_ you might list statuses
  1605. * '10:new,20:feedback,30:acknowledged' but not higher ones.
  1606. * The following example can be transferred to config_inc.php
  1607. * $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
  1608. * $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
  1609. * $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
  1610. * $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
  1611. * $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
  1612. * $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
  1613. * $g_status_enum_workflow[CLOSED] ='50:assigned';
  1614. * @global array $g_status_enum_workflow
  1615. */
  1616. $g_status_enum_workflow = array();
  1617. /****************************
  1618. * Bug Attachments Settings *
  1619. ****************************/
  1620. /**
  1621. * Specify the filename of the magic database file. This is used by
  1622. * PHP 5.3.0 (or earlier versions with the fileinfo PECL extension) to
  1623. * guess what the MIME type of a file is. Usually it is safe to leave this
  1624. * setting as the default (blank) as PHP is usually able to find this file
  1625. * by itself.
  1626. * @global string $g_fileinfo_magic_db_file
  1627. */
  1628. $g_fileinfo_magic_db_file = '';
  1629. /**
  1630. * Specifies the maximum size (in bytes) below which an attachment is
  1631. * previewed in the bug view pages.
  1632. * To disable the previewing of attachments, set max size to 0.
  1633. * @global int $g_preview_attachments_inline_max_size
  1634. */
  1635. $g_preview_attachments_inline_max_size = 256 * 1024;
  1636. /**
  1637. * Extensions for text files that can be expanded inline.
  1638. * @global array $g_preview_text_extensions
  1639. */
  1640. $g_preview_text_extensions = array( '', 'txt', 'diff', 'patch' );
  1641. /**
  1642. * Extensions for images that can be expanded inline.
  1643. * @global array $g_preview_image_extensions
  1644. */
  1645. $g_preview_image_extensions = array( 'bmp', 'png', 'gif', 'jpg', 'jpeg' );
  1646. /**
  1647. * Specifies the maximum width for the auto-preview feature. If no maximum width should be imposed
  1648. * then it should be set to 0.
  1649. * @global int $g_preview_max_width
  1650. */
  1651. $g_preview_max_width = 0;
  1652. /**
  1653. * Specifies the maximum height for the auto-preview feature. If no maximum height should be imposed
  1654. * then it should be set to 0.
  1655. * @global int $g_preview_max_height
  1656. */
  1657. $g_preview_max_height = 250;
  1658. /**
  1659. * Show an attachment indicator on bug list
  1660. * Show a clickable attachment indicator on the bug
  1661. * list page if the bug has one or more files attached.
  1662. * Note: This option is disabled by default since it adds
  1663. * 1 database query per bug listed and thus might slow
  1664. * down the page display.
  1665. *
  1666. * @global int $g_show_attachment_indicator
  1667. */
  1668. $g_show_attachment_indicator = OFF;
  1669. /**
  1670. * access level needed to view bugs attachments. View means to see the file names
  1671. * sizes, and timestamps of the attachments.
  1672. * @global int $g_view_attachments_threshold
  1673. */
  1674. $g_view_attachments_threshold = VIEWER;
  1675. /**
  1676. * list of filetypes to view inline. This is a string of extentions separated by commas
  1677. * This is used when downloading an attachment. Rather than downloading, the attachment
  1678. * is viewed in the browser.
  1679. * @global string $g_inline_file_exts
  1680. */
  1681. $g_inline_file_exts = 'gif,png,jpg,jpeg,bmp';
  1682. /**
  1683. * access level needed to download bug attachments
  1684. * @global int $g_download_attachments_threshold
  1685. */
  1686. $g_download_attachments_threshold = VIEWER;
  1687. /**
  1688. * access level needed to delete bug attachments
  1689. * @global int $g_delete_attachments_threshold
  1690. */
  1691. $g_delete_attachments_threshold = DEVELOPER;
  1692. /**
  1693. * allow users to view attachments uploaded by themselves even if their access
  1694. * level is below view_attachments_threshold.
  1695. * @global int $g_allow_view_own_attachments
  1696. */
  1697. $g_allow_view_own_attachments = ON;
  1698. /**
  1699. * allow users to download attachments uploaded by themselves even if their access
  1700. * level is below download_attachments_threshold.
  1701. * @global int $g_allow_download_own_attachments
  1702. */
  1703. $g_allow_download_own_attachments = ON;
  1704. /**
  1705. * allow users to delete attachments uploaded by themselves even if their access
  1706. * level is below delete_attachments_threshold.
  1707. * @global int $g_allow_delete_own_attachments
  1708. */
  1709. $g_allow_delete_own_attachments = OFF;
  1710. /**********************
  1711. * Field Visibility
  1712. **********************/
  1713. /**
  1714. * Enable or disable usage of the ETA field.
  1715. * @global int $g_enable_eta
  1716. */
  1717. $g_enable_eta = OFF;
  1718. /**
  1719. * Enable or disable usage of the Projection field.
  1720. * @global int $g_enable_projection
  1721. */
  1722. $g_enable_projection = OFF;
  1723. /**
  1724. * Enable or disable usage of the Product Build field.
  1725. * @global int $g_enable_product_build
  1726. */
  1727. $g_enable_product_build = OFF;
  1728. /**
  1729. * An array of the fields to show on the bug report page.
  1730. *
  1731. * The following fields can not be included:
  1732. * id, project, date_submitted, last_updated, status,
  1733. * resolution, tags, fixed_in_version, projection, eta,
  1734. * reporter.
  1735. *
  1736. * The following fields must be included:
  1737. * category_id, summary, description.
  1738. *
  1739. * To overload this setting per project, then the settings must be included in the database through
  1740. * the generic configuration form.
  1741. *
  1742. * @global array $g_bug_report_page_fields
  1743. */
  1744. $g_bug_report_page_fields = array(
  1745. 'category_id',
  1746. 'view_state',
  1747. 'handler',
  1748. 'priority',
  1749. 'severity',
  1750. 'reproducibility',
  1751. 'platform',
  1752. 'os',
  1753. 'os_version',
  1754. 'product_version',
  1755. 'product_build',
  1756. 'target_version',
  1757. 'summary',
  1758. 'description',
  1759. 'additional_info',
  1760. 'steps_to_reproduce',
  1761. 'attachments',
  1762. 'due_date',
  1763. );
  1764. /**
  1765. * An array of the fields to show on the bug view page.
  1766. *
  1767. * To overload this setting per project, then the settings must be included in the database through
  1768. * the generic configuration form.
  1769. *
  1770. * @global array $g_bug_view_page_fields
  1771. */
  1772. $g_bug_view_page_fields = array (
  1773. 'id',
  1774. 'project',
  1775. 'category_id',
  1776. 'view_state',
  1777. 'date_submitted',
  1778. 'last_updated',
  1779. 'reporter',
  1780. 'handler',
  1781. 'priority',
  1782. 'severity',
  1783. 'reproducibility',
  1784. 'status',
  1785. 'resolution',
  1786. 'projection',
  1787. 'eta',
  1788. 'platform',
  1789. 'os',
  1790. 'os_version',
  1791. 'product_version',
  1792. 'product_build',
  1793. 'target_version',
  1794. 'fixed_in_version',
  1795. 'summary',
  1796. 'description',
  1797. 'additional_info',
  1798. 'steps_to_reproduce',
  1799. 'tags',
  1800. 'attachments',
  1801. 'due_date',
  1802. );
  1803. /**
  1804. * An array of the fields to show on the bug print page.
  1805. * @global array $g_bug_print_page_fields
  1806. */
  1807. $g_bug_print_page_fields = array (
  1808. 'id',
  1809. 'project',
  1810. 'category_id',
  1811. 'view_state',
  1812. 'date_submitted',
  1813. 'last_updated',
  1814. 'reporter',
  1815. 'handler',
  1816. 'priority',
  1817. 'severity',
  1818. 'reproducibility',
  1819. 'status',
  1820. 'resolution',
  1821. 'projection',
  1822. 'eta',
  1823. 'platform',
  1824. 'os',
  1825. 'os_version',
  1826. 'product_version',
  1827. 'product_build',
  1828. 'target_version',
  1829. 'fixed_in_version',
  1830. 'summary',
  1831. 'description',
  1832. 'additional_info',
  1833. 'steps_to_reproduce',
  1834. 'tags',
  1835. 'attachments',
  1836. 'due_date',
  1837. );
  1838. /**
  1839. * An array of the fields to show on the bug update page.
  1840. *
  1841. * To overload this setting per project, then the settings must be included in the database through
  1842. * the generic configuration form.
  1843. *
  1844. * @global array $g_bug_update_page_fields
  1845. */
  1846. $g_bug_update_page_fields = array (
  1847. 'id',
  1848. 'project',
  1849. 'category_id',
  1850. 'view_state',
  1851. 'date_submitted',
  1852. 'last_updated',
  1853. 'reporter',
  1854. 'handler',
  1855. 'priority',
  1856. 'severity',
  1857. 'reproducibility',
  1858. 'status',
  1859. 'resolution',
  1860. 'projection',
  1861. 'eta',
  1862. 'platform',
  1863. 'os',
  1864. 'os_version',
  1865. 'product_version',
  1866. 'product_build',
  1867. 'target_version',
  1868. 'fixed_in_version',
  1869. 'summary',
  1870. 'description',
  1871. 'additional_info',
  1872. 'steps_to_reproduce',
  1873. 'attachments',
  1874. 'due_date',
  1875. );
  1876. /**
  1877. * An array of the fields to show on the bug change status page.
  1878. *
  1879. * To overload this setting per project, then the settings must be included in the database through
  1880. * the generic configuration form.
  1881. *
  1882. * @global array $g_bug_change_status_page_fields
  1883. */
  1884. $g_bug_change_status_page_fields = array (
  1885. 'id',
  1886. 'project',
  1887. 'category_id',
  1888. 'view_state',
  1889. 'date_submitted',
  1890. 'last_updated',
  1891. 'reporter',
  1892. 'handler',
  1893. 'priority',
  1894. 'severity',
  1895. 'reproducibility',
  1896. 'status',
  1897. 'resolution',
  1898. 'projection',
  1899. 'eta',
  1900. 'platform',
  1901. 'os',
  1902. 'os_version',
  1903. 'product_version',
  1904. 'product_build',
  1905. 'target_version',
  1906. 'fixed_in_version',
  1907. 'summary',
  1908. 'description',
  1909. 'additional_info',
  1910. 'steps_to_reproduce',
  1911. 'tags',
  1912. 'attachments',
  1913. 'due_date',
  1914. );
  1915. /**************************
  1916. * MantisBT Misc Settings *
  1917. **************************/
  1918. /**
  1919. * access level needed to report a bug
  1920. * @global int $g_report_bug_threshold
  1921. */
  1922. $g_report_bug_threshold = REPORTER;
  1923. /**
  1924. * access level needed to update bugs (i.e., the update_bug_page)
  1925. * This controls whether the user sees the "Update Bug" button in bug_view*_page
  1926. * and the pencil icon in view_all_bug_page
  1927. * @global int $g_update_bug_threshold
  1928. */
  1929. $g_update_bug_threshold = UPDATER;
  1930. /**
  1931. * Access level needed to monitor bugs.
  1932. * Look in the constant_inc.php file if you want to set a different value.
  1933. * @global int $g_monitor_bug_threshold
  1934. */
  1935. $g_monitor_bug_threshold = REPORTER;
  1936. /**
  1937. * Access level needed to add other users to the list of users monitoring
  1938. * a bug.
  1939. * Look in the constant_inc.php file if you want to set a different value.
  1940. * @global int $g_monitor_add_others_bug_threshold
  1941. */
  1942. $g_monitor_add_others_bug_threshold = DEVELOPER;
  1943. /**
  1944. * Access level needed to delete other users from the list of users
  1945. * monitoring a bug.
  1946. * Look in the constant_inc.php file if you want to set a different value.
  1947. * @global int $g_monitor_add_others_bug_threshold
  1948. */
  1949. $g_monitor_delete_others_bug_threshold = DEVELOPER;
  1950. /**
  1951. * access level needed to view private bugs
  1952. * Look in the constant_inc.php file if you want to set a different value
  1953. * @global int $g_private_bug_threshold
  1954. */
  1955. $g_private_bug_threshold = DEVELOPER;
  1956. /**
  1957. * access level needed to be able to be listed in the assign to field.
  1958. * @global int $g_handle_bug_threshold
  1959. */
  1960. $g_handle_bug_threshold = DEVELOPER;
  1961. /**
  1962. * access level needed to show the Assign To: button bug_view*_page or
  1963. * the Assigned list in bug_update*_page.
  1964. * This allows control over who can route bugs
  1965. * This defaults to $g_handle_bug_threshold
  1966. * @global int $g_update_bug_assign_threshold
  1967. */
  1968. $g_update_bug_assign_threshold = '%handle_bug_threshold%';
  1969. /**
  1970. * access level needed to view private bugnotes
  1971. * Look in the constant_inc.php file if you want to set a different value
  1972. * @global int $g_private_bugnote_threshold
  1973. */
  1974. $g_private_bugnote_threshold = DEVELOPER;
  1975. /**
  1976. * access level needed to view handler in bug reports and notification email
  1977. * @todo yarick123: now it is implemented for notification email only
  1978. * @global int $g_view_handler_threshold
  1979. */
  1980. $g_view_handler_threshold = VIEWER;
  1981. /**
  1982. * access level needed to view history in bug reports and notification email
  1983. * @todo yarick123: now it is implemented for notification email only
  1984. * @global int $g_view_history_threshold
  1985. */
  1986. $g_view_history_threshold = VIEWER;
  1987. /**
  1988. * access level needed to send a reminder from the bug view pages
  1989. * set to NOBODY to disable the feature
  1990. * @global int $g_bug_reminder_threshold
  1991. */
  1992. $g_bug_reminder_threshold = DEVELOPER;
  1993. /**
  1994. * Access lever required to drop bug history revisions
  1995. * @global int $g_bug_revision_drop_threshold
  1996. */
  1997. $g_bug_revision_drop_threshold = MANAGER;
  1998. /**
  1999. * access level needed to upload files to the project documentation section
  2000. * You can set this to NOBODY to prevent uploads to projects
  2001. * See also: $g_upload_bug_file_threshold, $g_allow_file_upload
  2002. * @global int $g_upload_project_file_threshold
  2003. */
  2004. $g_upload_project_file_threshold = MANAGER;
  2005. /**
  2006. * access level needed to upload files to attach to a bug
  2007. * You can set this to NOBODY to prevent uploads to bugs but note that
  2008. * the reporter of the bug will still be able to upload unless you set
  2009. * $g_allow_reporter_upload or $g_allow_file_upload to OFF
  2010. * See also: $g_upload_project_file_threshold, $g_allow_file_upload,
  2011. * $g_allow_reporter_upload
  2012. * @global int $g_upload_bug_file_threshold
  2013. */
  2014. $g_upload_bug_file_threshold = REPORTER;
  2015. /**
  2016. * Add bugnote threshold
  2017. * @global int $g_add_bugnote_threshold
  2018. */
  2019. $g_add_bugnote_threshold = REPORTER;
  2020. /**
  2021. * Update bugnote threshold (if the bugnote is not your own)
  2022. * @global int $g_update_bugnote_threshold
  2023. */
  2024. $g_update_bugnote_threshold = DEVELOPER;
  2025. /**
  2026. * Threshold needed to view project documentation
  2027. * @global int $g_view_proj_doc_threshold
  2028. */
  2029. $g_view_proj_doc_threshold = ANYBODY;
  2030. /**
  2031. * Site manager
  2032. * @global int $g_manage_site_threshold
  2033. */
  2034. $g_manage_site_threshold = MANAGER;
  2035. /**
  2036. * Threshold at which a user is considered to be a site administrator.
  2037. * These users have "superuser" access to all aspects of Mantis including
  2038. * the admin/ directory. WARNING: DO NOT CHANGE THIS VALUE UNLESS YOU
  2039. * ABSOLUTELY KNOW WHAT YOU'RE DOING! Users at this access level have the
  2040. * ability to damage your Mantis installation and data within the database.
  2041. * It is strongly advised you leave this option alone.
  2042. * @global int $g_admin_site_threshold
  2043. */
  2044. $g_admin_site_threshold = ADMINISTRATOR;
  2045. /**
  2046. * Threshold needed to manage a project: edit project
  2047. * details (not to add/delete projects) ...etc.
  2048. * @global int $g_manage_project_threshold
  2049. */
  2050. $g_manage_project_threshold = MANAGER;
  2051. /**
  2052. * Threshold needed to add/delete/modify news
  2053. * @global int $g_manage_news_threshold
  2054. */
  2055. $g_manage_news_threshold = MANAGER;
  2056. /**
  2057. * Threshold required to delete a project
  2058. * @global int $g_delete_project_threshold
  2059. */
  2060. $g_delete_project_threshold = ADMINISTRATOR;
  2061. /**
  2062. * Threshold needed to create a new project
  2063. * @global int $g_create_project_threshold
  2064. */
  2065. $g_create_project_threshold = ADMINISTRATOR;
  2066. /**
  2067. * Threshold needed to be automatically included in private projects
  2068. * @global int $g_private_project_threshold
  2069. */
  2070. $g_private_project_threshold = ADMINISTRATOR;
  2071. /**
  2072. * Threshold needed to manage user access to a project
  2073. * @global int $g_project_user_threshold
  2074. */
  2075. $g_project_user_threshold = MANAGER;
  2076. /**
  2077. * Threshold needed to manage user accounts
  2078. * @global int $g_manage_user_threshold
  2079. */
  2080. $g_manage_user_threshold = ADMINISTRATOR;
  2081. /**
  2082. * Delete bug threshold
  2083. * @global int $g_delete_bug_threshold
  2084. */
  2085. $g_delete_bug_threshold = DEVELOPER;
  2086. /**
  2087. * Delete bugnote threshold
  2088. * @global string $g_delete_bugnote_threshold
  2089. */
  2090. $g_delete_bugnote_threshold = '%delete_bug_threshold%';
  2091. /**
  2092. * Are users allowed to change and delete their own bugnotes?
  2093. * @global int $g_bugnote_allow_user_edit_delete
  2094. */
  2095. $g_bugnote_allow_user_edit_delete = ON;
  2096. /**
  2097. * Move bug threshold
  2098. * @global int $g_move_bug_threshold
  2099. */
  2100. $g_move_bug_threshold = DEVELOPER;
  2101. /**
  2102. * Threshold needed to set the view status while reporting a bug or a bug note.
  2103. * @global int $g_set_view_status_threshold
  2104. */
  2105. $g_set_view_status_threshold = REPORTER;
  2106. /**
  2107. * Threshold needed to update the view status while updating a bug or a bug note.
  2108. * This threshold should be greater or equal to $g_set_view_status_threshold.
  2109. * @global int $g_change_view_status_threshold
  2110. */
  2111. $g_change_view_status_threshold = UPDATER;
  2112. /**
  2113. * Threshold needed to show the list of users montoring a bug on the bug view pages.
  2114. * @global int $g_show_monitor_list_threshold
  2115. */
  2116. $g_show_monitor_list_threshold = DEVELOPER;
  2117. /**
  2118. * Threshold needed to be able to use stored queries
  2119. * @global int $g_stored_query_use_threshold
  2120. */
  2121. $g_stored_query_use_threshold = REPORTER;
  2122. /**
  2123. * Threshold needed to be able to create stored queries
  2124. * @global int $g_stored_query_create_threshold
  2125. */
  2126. $g_stored_query_create_threshold = DEVELOPER;
  2127. /**
  2128. * Threshold needed to be able to create shared stored queries
  2129. * @global int $g_stored_query_create_shared_threshold
  2130. */
  2131. $g_stored_query_create_shared_threshold = MANAGER;
  2132. /**
  2133. * Threshold needed to update readonly bugs. Readonly bugs are identified via
  2134. * $g_bug_readonly_status_threshold.
  2135. * @global int $g_update_readonly_bug_threshold
  2136. */
  2137. $g_update_readonly_bug_threshold = MANAGER;
  2138. /**
  2139. * threshold for viewing changelog
  2140. * @global int $g_view_changelog_threshold
  2141. */
  2142. $g_view_changelog_threshold = VIEWER;
  2143. /**
  2144. * threshold for viewing roadmap
  2145. * @global int $g_roadmap_view_threshold
  2146. */
  2147. $g_roadmap_view_threshold = VIEWER;
  2148. /**
  2149. * threshold for updating roadmap, target_version, etc
  2150. * @global int $g_roadmap_update_threshold
  2151. */
  2152. $g_roadmap_update_threshold = DEVELOPER;
  2153. /**
  2154. * status change thresholds
  2155. * @global int $g_update_bug_status_threshold
  2156. */
  2157. $g_update_bug_status_threshold = DEVELOPER;
  2158. /**
  2159. * access level needed to re-open bugs
  2160. * @global int $g_reopen_bug_threshold
  2161. */
  2162. $g_reopen_bug_threshold = DEVELOPER;
  2163. /**
  2164. * access level needed to assign bugs to unreleased product versions
  2165. * @global int $g_report_issues_for_unreleased_versions_threshold
  2166. */
  2167. $g_report_issues_for_unreleased_versions_threshold = DEVELOPER;
  2168. /**
  2169. * access level needed to set a bug sticky
  2170. * @global int $g_set_bug_sticky_threshold
  2171. */
  2172. $g_set_bug_sticky_threshold = MANAGER;
  2173. /**
  2174. * The minimum access level for someone to be a member of the development team
  2175. * and appear on the project information page.
  2176. * @global int $g_development_team_threshold
  2177. */
  2178. $g_development_team_threshold = DEVELOPER;
  2179. /**
  2180. * this array sets the access thresholds needed to enter each status listed.
  2181. * if a status is not listed, it falls back to $g_update_bug_status_threshold
  2182. * example: $g_set_status_threshold = array( ACKNOWLEDGED => MANAGER, CONFIRMED => DEVELOPER, CLOSED => MANAGER );
  2183. * @global array $g_set_status_threshold
  2184. */
  2185. $g_set_status_threshold = array();
  2186. /**
  2187. * Allow a bug to have no category
  2188. * @global int $g_allow_no_category
  2189. */
  2190. $g_allow_no_category = OFF;
  2191. /**
  2192. * login method
  2193. * MD5, LDAP, BASIC_AUTH or HTTP_AUTH.
  2194. * Note: you may not be able to easily switch encryption methods, so this
  2195. * should be carefully chosen at install time. However, MantisBT will attempt
  2196. * to "fall back" to older methods if possible.
  2197. * @global int $g_login_method
  2198. */
  2199. $g_login_method = MD5;
  2200. /**
  2201. * limit reporters
  2202. * Set to ON if you wish to limit reporters to only viewing bugs that they report.
  2203. * @global int $g_limit_reporters
  2204. */
  2205. $g_limit_reporters = OFF;
  2206. /**
  2207. * close immediately
  2208. * Allow developers and above to close bugs immediately when resolving bugs
  2209. * @global int $g_allow_close_immediately
  2210. */
  2211. $g_allow_close_immediately = OFF;
  2212. /**
  2213. * reporter can close
  2214. * Allow reporters to close the bugs they reported, after they're marked resolved.
  2215. * @global int $g_allow_reporter_close
  2216. */
  2217. $g_allow_reporter_close = OFF;
  2218. /**
  2219. * reporter can reopen
  2220. * Allow reporters to reopen the bugs they reported, after they're marked resolved.
  2221. * @global int $g_allow_reporter_reopen
  2222. */
  2223. $g_allow_reporter_reopen = ON;
  2224. /**
  2225. * reporter can upload
  2226. * Allow reporters to upload attachments to bugs they reported.
  2227. * @global int $g_allow_reporter_upload
  2228. */
  2229. $g_allow_reporter_upload = ON;
  2230. /**
  2231. * account delete
  2232. * Allow users to delete their own accounts
  2233. * @global int $g_allow_account_delete
  2234. */
  2235. $g_allow_account_delete = OFF;
  2236. /**
  2237. * Enable anonymous access to Mantis. You must also specify
  2238. * $g_anonymous_account as the account which anonymous users will browse
  2239. * Mantis with. The default setting is OFF.
  2240. * @global int $g_allow_anonymous_login
  2241. */
  2242. $g_allow_anonymous_login = OFF;
  2243. /**
  2244. * Define the account which anonymous users will assume when using Mantis.
  2245. * You only need to define this setting when $g_allow_anonymous_login is
  2246. * set to ON. This account will always be treated as a protected account
  2247. * and thus anonymous users will not be able to update the preferences or
  2248. * settings of this account. It is suggested that the access level of this
  2249. * account have read only access to your Mantis installation (VIEWER).
  2250. * Please read the documentation on this topic before setting up anonymous
  2251. * access to your Mantis installation.
  2252. * @global string $g_anonymous_account
  2253. */
  2254. $g_anonymous_account = '';
  2255. /**
  2256. * CVS linking
  2257. * insert the URL to your CVSweb or ViewCVS
  2258. * eg: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt/mantisbt/
  2259. * @global string $g_cvs_web
  2260. */
  2261. $g_cvs_web = '';
  2262. /**
  2263. * For open source projects it is expected that the notes be public, however,
  2264. * for non-open source it will probably be VS_PRIVATE.
  2265. * @global int $g_source_control_notes_view_status
  2266. */
  2267. $g_source_control_notes_view_status = VS_PRIVATE;
  2268. /**
  2269. * Account to be used by the source control script. The account must be enabled
  2270. * and must have the appropriate access level to add notes to all issues even
  2271. * private ones (DEVELOPER access recommended).
  2272. * @global string $g_source_control_account
  2273. */
  2274. $g_source_control_account = '';
  2275. /**
  2276. * If set to a status, then after a checkin with a log message that matches the regular expression in
  2277. * $g_source_control_fixed_regexp, the issue status is set to the specified status. If set to OFF, the
  2278. * issue status is not changed.
  2279. * @global int $g_source_control_set_status_to
  2280. */
  2281. $g_source_control_set_status_to = OFF;
  2282. /**
  2283. * Whenever an issue status is set to $g_source_control_set_status_to, the issue resolution is set to
  2284. * the value specified for this configuration.
  2285. * @global int $g_source_control_set_resolution_to
  2286. */
  2287. $g_source_control_set_resolution_to = FIXED;
  2288. /**
  2289. * Regular expression used to detect issue ids within checkin comments.
  2290. * see preg_match_all() documentation at
  2291. * http://www.php.net/manual/en/function.preg-match-all.php
  2292. * @global string $g_source_control_regexp
  2293. */
  2294. $g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
  2295. /**
  2296. * Regular expression used to detect the fact that an issue is fixed and extracts
  2297. * its issue id. If there is a match to this regular expression, then the issue
  2298. * will be marked as resolved and the resolution will be set to fixed.
  2299. * @global string $g_source_control_fixed_regexp
  2300. */
  2301. $g_source_control_fixed_regexp = "%source_control_regexp%";
  2302. /**
  2303. * Bug Linking
  2304. * if a number follows this tag it will create a link to a bug.
  2305. * eg. for # a link would be #45
  2306. * eg. for bug: a link would be bug:98
  2307. * @global string $g_bug_link_tag
  2308. */
  2309. $g_bug_link_tag = '#';
  2310. /**
  2311. * Bugnote Linking
  2312. * if a number follows this tag it will create a link to a bugnote.
  2313. * eg. for ~ a link would be ~45
  2314. * eg. for bugnote: a link would be bugnote:98
  2315. * @global string $g_bugnote_link_tag
  2316. */
  2317. $g_bugnote_link_tag = '~';
  2318. /**
  2319. * Bug Count Linking
  2320. * this is the prefix to use when creating links to bug views from bug counts (eg. on the main
  2321. * page and the summary page).
  2322. * Default is a temporary filter
  2323. * only change the filter this time - 'view_all_set.php?type=1&amp;temporary=y'
  2324. * permanently change the filter - 'view_all_set.php?type=1';
  2325. * @global string $g_bug_count_hyperlink_prefix
  2326. */
  2327. $g_bug_count_hyperlink_prefix = 'view_all_set.php?type=1&amp;temporary=y';
  2328. /**
  2329. * The regular expression to use when validating new user login names
  2330. * The default regular expression allows a-z, A-Z, 0-9, +, -, dot, space and
  2331. * underscore. If you change this, you may want to update the
  2332. * ERROR_USER_NAME_INVALID string in the language files to explain
  2333. * the rules you are using on your site
  2334. * See http://en.wikipedia.org/wiki/Regular_Expression for more details about regular expressions.
  2335. * For testing regular expressions, use http://rubular.com/.
  2336. * @global string $g_user_login_valid_regex
  2337. */
  2338. $g_user_login_valid_regex = '/^([a-z\d\-.+_ ]+(@[a-z\d\-.]+\.[a-z]{2,4})?)$/i';
  2339. /**
  2340. * Default user name prefix used to filter the list of users in
  2341. * manage_user_page.php. Change this to 'A' (or any other
  2342. * letter) if you have a lot of users in the system and loading
  2343. * the manage users page takes a long time.
  2344. * @global string $g_default_manage_user_prefix
  2345. */
  2346. $g_default_manage_user_prefix = 'ALL';
  2347. /**
  2348. * Default tag prefix used to filter the list of tags in
  2349. * manage_tags_page.php. Change this to 'A' (or any other
  2350. * letter) if you have a lot of tags in the system and loading
  2351. * the manage tags page takes a long time.
  2352. * @global string $g_default_manage_tag_prefix
  2353. */
  2354. $g_default_manage_tag_prefix = 'ALL';
  2355. /**
  2356. * CSV Export
  2357. * Set the csv separator
  2358. * @global string $g_csv_separator
  2359. */
  2360. $g_csv_separator = ',';
  2361. /**
  2362. * threshold for users to view the system configurations
  2363. * @global int $g_view_configuration_threshold
  2364. */
  2365. $g_view_configuration_threshold = ADMINISTRATOR;
  2366. /**
  2367. * threshold for users to set the system configurations generically via MantisBT web interface.
  2368. * WARNING: Users who have access to set configuration via the interface MUST be trusted. This is due
  2369. * to the fact that such users can set configurations to PHP code and hence there can be a security
  2370. * risk if such users are not trusted.
  2371. * @global int $g_set_configuration_threshold
  2372. */
  2373. $g_set_configuration_threshold = ADMINISTRATOR;
  2374. /************************************
  2375. * MantisBT Look and Feel Variables *
  2376. ************************************/
  2377. /**
  2378. * status color codes, using the Tango color palette
  2379. * @global array $g_status_colors
  2380. */
  2381. $g_status_colors = array( 'new' => '#fcbdbd', // red (scarlet red #ef2929)
  2382. 'feedback' => '#e3b7eb', // purple (plum #75507b)
  2383. 'acknowledged' => '#ffcd85', // orange (orango #f57900)
  2384. 'confirmed' => '#fff494', // yellow (butter #fce94f)
  2385. 'assigned' => '#c2dfff', // blue (sky blue #729fcf)
  2386. 'resolved' => '#d2f5b0', // green (chameleon #8ae234)
  2387. 'closed' => '#c9ccc4'); // grey (aluminum #babdb6)
  2388. /**
  2389. * The padding level when displaying project ids
  2390. * The bug id will be padded with 0's up to the size given
  2391. * @global int $g_display_project_padding
  2392. */
  2393. $g_display_project_padding = 3;
  2394. /**
  2395. * The padding level when displaying bug ids
  2396. * The bug id will be padded with 0's up to the size given
  2397. * @global int $g_display_bug_padding
  2398. */
  2399. $g_display_bug_padding = 7;
  2400. /**
  2401. * The padding level when displaying bugnote ids
  2402. * The bugnote id will be padded with 0's up to the size given
  2403. * @global int $g_display_bugnote_padding
  2404. */
  2405. $g_display_bugnote_padding = 7;
  2406. /**
  2407. * colours for configuration display
  2408. * @global string $g_colour_project
  2409. */
  2410. $g_colour_project = 'LightGreen';
  2411. /**
  2412. * colours for configuration display
  2413. * @global string $g_colour_global
  2414. */
  2415. $g_colour_global = 'LightBlue';
  2416. /*****************************
  2417. * MantisBT Cookie Variables *
  2418. *****************************/
  2419. /**
  2420. * --- cookie path ---------------
  2421. * set this to something more restrictive if needed
  2422. * http://www.php.net/manual/en/function.setcookie.php
  2423. * @global string $g_cookie_path
  2424. */
  2425. $g_cookie_path = '/';
  2426. /**
  2427. *
  2428. * @global string $g_cookie_domain
  2429. */
  2430. $g_cookie_domain = '';
  2431. /**
  2432. * cookie version for view_all_page
  2433. * @global string $g_cookie_version
  2434. */
  2435. $g_cookie_version = 'v8';
  2436. /**
  2437. * --- cookie prefix ---------------
  2438. * set this to a unique identifier. No spaces or periods.
  2439. * @global string $g_cookie_prefix
  2440. */
  2441. $g_cookie_prefix = 'MANTIS';
  2442. /**
  2443. *
  2444. * @global string $g_string_cookie
  2445. */
  2446. $g_string_cookie = '%cookie_prefix%_STRING_COOKIE';
  2447. /**
  2448. *
  2449. * @global string $g_project_cookie
  2450. */
  2451. $g_project_cookie = '%cookie_prefix%_PROJECT_COOKIE';
  2452. /**
  2453. *
  2454. * @global string $g_view_all_cookie
  2455. */
  2456. $g_view_all_cookie = '%cookie_prefix%_VIEW_ALL_COOKIE';
  2457. /**
  2458. *
  2459. * @global string $g_manage_cookie
  2460. */
  2461. $g_manage_cookie = '%cookie_prefix%_MANAGE_COOKIE';
  2462. /**
  2463. *
  2464. * @global string $g_logout_cookie
  2465. */
  2466. $g_logout_cookie = '%cookie_prefix%_LOGOUT_COOKIE';
  2467. /**
  2468. *
  2469. * @global string $g_bug_list_cookie
  2470. */
  2471. $g_bug_list_cookie = '%cookie_prefix%_BUG_LIST_COOKIE';
  2472. /*****************************
  2473. * MantisBT Filter Variables *
  2474. *****************************/
  2475. /**
  2476. *
  2477. * @global int $g_filter_by_custom_fields
  2478. */
  2479. $g_filter_by_custom_fields = ON;
  2480. /**
  2481. *
  2482. * @global int $g_filter_custom_fields_per_row
  2483. */
  2484. $g_filter_custom_fields_per_row = 8;
  2485. /**
  2486. *
  2487. * @global int $g_view_filters
  2488. */
  2489. $g_view_filters = SIMPLE_DEFAULT;
  2490. /**
  2491. * This switch enables the use of xmlhttprequest protocol to speed up the filter display.
  2492. * Rather than launching a separate page, the filters are updated in-line in the
  2493. * view_all_bugs_page.
  2494. * @global int $g_dhtml_filters
  2495. */
  2496. $g_dhtml_filters = ON;
  2497. /**
  2498. * The threshold required for users to be able to create permalinks. To turn of this feature use NOBODY.
  2499. * @global int $g_create_permalink_threshold
  2500. */
  2501. $g_create_permalink_threshold = DEVELOPER;
  2502. /**
  2503. * The service to use to create a short URL. The %s will be replaced by the long URL.
  2504. * To disable the feature set to ''.
  2505. * @global string $g_create_short_url
  2506. */
  2507. $g_create_short_url = 'http://tinyurl.com/create.php?url=%s';
  2508. /*************************************
  2509. * MantisBT Database Table Variables *
  2510. *************************************/
  2511. /**
  2512. * table prefix
  2513. * @global string $g_db_table_prefix
  2514. */
  2515. $g_db_table_prefix = 'mantis';
  2516. /**
  2517. * table suffix
  2518. * @global string $g_db_table_suffix
  2519. */
  2520. $g_db_table_suffix = '_table';
  2521. /**
  2522. * table names
  2523. * @global array $g_db_table
  2524. */
  2525. $g_db_table['mantis_bug_file_table'] = '%db_table_prefix%_bug_file%db_table_suffix%';
  2526. $g_db_table['mantis_bug_history_table'] = '%db_table_prefix%_bug_history%db_table_suffix%';
  2527. $g_db_table['mantis_bug_monitor_table'] = '%db_table_prefix%_bug_monitor%db_table_suffix%';
  2528. $g_db_table['mantis_bug_relationship_table'] = '%db_table_prefix%_bug_relationship%db_table_suffix%';
  2529. $g_db_table['mantis_bug_revision_table'] = '%db_table_prefix%_bug_revision%db_table_suffix%';
  2530. $g_db_table['mantis_bug_table'] = '%db_table_prefix%_bug%db_table_suffix%';
  2531. $g_db_table['mantis_bug_tag_table'] = '%db_table_prefix%_bug_tag%db_table_suffix%';
  2532. $g_db_table['mantis_bug_text_table'] = '%db_table_prefix%_bug_text%db_table_suffix%';
  2533. $g_db_table['mantis_bugnote_table'] = '%db_table_prefix%_bugnote%db_table_suffix%';
  2534. $g_db_table['mantis_bugnote_text_table'] = '%db_table_prefix%_bugnote_text%db_table_suffix%';
  2535. $g_db_table['mantis_category_table'] = '%db_table_prefix%_category%db_table_suffix%';
  2536. $g_db_table['mantis_news_table'] = '%db_table_prefix%_news%db_table_suffix%';
  2537. $g_db_table['mantis_plugin_table'] = '%db_table_prefix%_plugin%db_table_suffix%';
  2538. $g_db_table['mantis_project_category_table'] = '%db_table_prefix%_project_category%db_table_suffix%';
  2539. $g_db_table['mantis_project_file_table'] = '%db_table_prefix%_project_file%db_table_suffix%';
  2540. $g_db_table['mantis_project_table'] = '%db_table_prefix%_project%db_table_suffix%';
  2541. $g_db_table['mantis_project_user_list_table'] = '%db_table_prefix%_project_user_list%db_table_suffix%';
  2542. $g_db_table['mantis_project_version_table'] = '%db_table_prefix%_project_version%db_table_suffix%';
  2543. $g_db_table['mantis_tag_table'] = '%db_table_prefix%_tag%db_table_suffix%';
  2544. $g_db_table['mantis_user_table'] = '%db_table_prefix%_user%db_table_suffix%';
  2545. $g_db_table['mantis_user_profile_table'] = '%db_table_prefix%_user_profile%db_table_suffix%';
  2546. $g_db_table['mantis_user_pref_table'] = '%db_table_prefix%_user_pref%db_table_suffix%';
  2547. $g_db_table['mantis_user_print_pref_table'] = '%db_table_prefix%_user_print_pref%db_table_suffix%';
  2548. $g_db_table['mantis_custom_field_project_table'] = '%db_table_prefix%_custom_field_project%db_table_suffix%';
  2549. $g_db_table['mantis_custom_field_table'] = '%db_table_prefix%_custom_field%db_table_suffix%';
  2550. $g_db_table['mantis_custom_field_string_table'] = '%db_table_prefix%_custom_field_string%db_table_suffix%';
  2551. $g_db_table['mantis_upgrade_table'] = '%db_table_prefix%_upgrade%db_table_suffix%';
  2552. $g_db_table['mantis_filters_table'] = '%db_table_prefix%_filters%db_table_suffix%';
  2553. $g_db_table['mantis_sponsorship_table'] = '%db_table_prefix%_sponsorship%db_table_suffix%';
  2554. $g_db_table['mantis_tokens_table'] = '%db_table_prefix%_tokens%db_table_suffix%';
  2555. $g_db_table['mantis_project_hierarchy_table'] = '%db_table_prefix%_project_hierarchy%db_table_suffix%';
  2556. $g_db_table['mantis_config_table'] = '%db_table_prefix%_config%db_table_suffix%';
  2557. $g_db_table['mantis_email_table'] = '%db_table_prefix%_email%db_table_suffix%';
  2558. /*************************
  2559. * MantisBT Enum Strings *
  2560. *************************/
  2561. /**
  2562. * status from $g_status_index-1 to 79 are used for the onboard customization (if enabled)
  2563. * directly use MantisBT to edit them.
  2564. * @global string $g_access_levels_enum_string
  2565. */
  2566. $g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator';
  2567. /**
  2568. *
  2569. * @global string $g_project_status_enum_string
  2570. */
  2571. $g_project_status_enum_string = '10:development,30:release,50:stable,70:obsolete';
  2572. /**
  2573. *
  2574. * @global string $g_project_view_state_enum_string
  2575. */
  2576. $g_project_view_state_enum_string = '10:public,50:private';
  2577. /**
  2578. *
  2579. * @global string $g_view_state_enum_string
  2580. */
  2581. $g_view_state_enum_string = '10:public,50:private';
  2582. /**
  2583. *
  2584. * @global string $g_priority_enum_string
  2585. */
  2586. $g_priority_enum_string = '10:none,20:low,30:normal,40:high,50:urgent,60:immediate';
  2587. /**
  2588. *
  2589. * @global string $g_severity_enum_string
  2590. */
  2591. $g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';
  2592. /**
  2593. *
  2594. * @global string $g_reproducibility_enum_string
  2595. */
  2596. $g_reproducibility_enum_string = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A';
  2597. /**
  2598. *
  2599. * @global string $g_status_enum_string
  2600. */
  2601. $g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
  2602. /**
  2603. * @@@ for documentation, the values in this list are also used to define variables in the language files
  2604. * (e.g., $s_new_bug_title referenced in bug_change_status_page.php )
  2605. * Embedded spaces are converted to underscores (e.g., "working on" references $s_working_on_bug_title).
  2606. * they are also expected to be english names for the states
  2607. * @global string $g_resolution_enum_string
  2608. */
  2609. $g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';
  2610. /**
  2611. *
  2612. * @global string $g_projection_enum_string
  2613. */
  2614. $g_projection_enum_string = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign';
  2615. /**
  2616. *
  2617. * @global string $g_eta_enum_string
  2618. */
  2619. $g_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
  2620. /**
  2621. *
  2622. * @global string $g_sponsorship_enum_string
  2623. */
  2624. $g_sponsorship_enum_string = '0:Unpaid,1:Requested,2:Paid';
  2625. /**
  2626. *
  2627. * @global string $g_custom_field_type_enum_string
  2628. */
  2629. $g_custom_field_type_enum_string = '0:string,1:numeric,2:float,3:enum,4:email,5:checkbox,6:list,7:multiselection list,8:date,9:radio';
  2630. /*********************************
  2631. * MantisBT Javascript Variables *
  2632. *********************************/
  2633. /**
  2634. * allow the use of Javascript?
  2635. * @global int $g_use_javascript
  2636. */
  2637. $g_use_javascript = ON;
  2638. /*******************************
  2639. * MantisBT Speed Optimisation *
  2640. *******************************/
  2641. /**
  2642. * Use compression of generated html if browser supports it
  2643. * If you already have compression enabled in your php.ini file
  2644. * (either with zlib.output_compression or
  2645. * output_handler=ob_gzhandler) this option will be ignored.
  2646. *
  2647. * If you do not have zlib enabled in your PHP installation
  2648. * this option will also be ignored. PHP 4.3.0 and later have
  2649. * zlib included by default. Windows users should uncomment
  2650. * the appropriate line in their php.ini files to load
  2651. * the zlib DLL. You can check what extensions are loaded
  2652. * by running "php -m" at the command line (look for 'zlib')
  2653. * @global int $g_compress_html
  2654. */
  2655. $g_compress_html = ON;
  2656. /**
  2657. * Use persistent database connections
  2658. * @global int $g_use_persistent_connections
  2659. */
  2660. $g_use_persistent_connections = OFF;
  2661. /*****************
  2662. * Include files *
  2663. *****************/
  2664. /**
  2665. * Specify your top/bottom include file (logos, banners, etc)
  2666. * @global string $g_bottom_include_page
  2667. */
  2668. $g_bottom_include_page = '%absolute_path%';
  2669. /**
  2670. * Specify your top/bottom include file (logos, banners, etc)
  2671. * if a top file is supplied, the default MantisBT logo at the top will be hidden
  2672. * @global string $g_top_include_page
  2673. */
  2674. $g_top_include_page = '%absolute_path%';
  2675. /**
  2676. * CSS file
  2677. * @global string $g_css_include_file
  2678. */
  2679. $g_css_include_file = 'css/default.css';
  2680. /**
  2681. * RTL CSS file
  2682. * @global string $g_css_rtl_include_file
  2683. */
  2684. $g_css_rtl_include_file = 'css/rtl.css';
  2685. /**
  2686. * meta tags
  2687. * @global string $g_meta_include_file
  2688. */
  2689. $g_meta_include_file = '%absolute_path%meta_inc.php';
  2690. /****************
  2691. * Redirections *
  2692. ****************/
  2693. /**
  2694. * Default page after Login or Set Project
  2695. * @global string $g_default_home_page
  2696. */
  2697. $g_default_home_page = 'my_view_page.php';
  2698. /**
  2699. * Specify where the user should be sent after logging out.
  2700. * @global string $g_logout_redirect_page
  2701. */
  2702. $g_logout_redirect_page = 'login_page.php';
  2703. /***********
  2704. * Headers *
  2705. ***********/
  2706. /**
  2707. * An array of headers to be sent with each page.
  2708. * For example, to allow your MantisBT installation to be viewed in a frame in IE 6
  2709. * when the frameset is not at the same hostname as the MantisBT install, you need
  2710. * to add a P3P header. You could try something like 'P3P: CP="CUR ADM"' in your
  2711. * config file, but make sure to check that the your policy actually matches with
  2712. * what you are promising. See
  2713. * http://msdn.microsoft.com/en-us/library/ms537343.aspx
  2714. * for more information.
  2715. * @global array $g_custom_headers
  2716. */
  2717. $g_custom_headers = array();
  2718. /**
  2719. * Browser Caching Control
  2720. * By default, we try to prevent the browser from caching anything. These two settings
  2721. * will defeat this for some cases.
  2722. *
  2723. * Browser Page caching - This will allow the browser to cache all pages. The upside will
  2724. * be better performance, but there may be cases where obsolete information is displayed.
  2725. * Note that this will be bypassed (and caching is allowed) for the bug report pages.
  2726. *
  2727. * @global int $g_allow_browser_cache
  2728. */
  2729. // $g_allow_browser_cache = ON;
  2730. /**
  2731. * File caching - This will allow the browser to cache downloaded files. Without this set,
  2732. * there may be issues with IE receiving files, and launching support programs.
  2733. * @global int $g_allow_file_cache
  2734. */
  2735. // $g_allow_file_cache = ON;
  2736. /*****************
  2737. * Custom Fields *
  2738. *****************/
  2739. /**
  2740. * Threshold needed to manage custom fields
  2741. * @global int $g_manage_custom_fields_threshold
  2742. */
  2743. $g_manage_custom_fields_threshold = ADMINISTRATOR;
  2744. /**
  2745. * Threshold needed to link/unlink custom field to/from a project
  2746. * @global int $g_custom_field_link_threshold
  2747. */
  2748. $g_custom_field_link_threshold = MANAGER;
  2749. /**
  2750. * Whether to start editng a custom field immediately after creating it
  2751. * @global int $g_custom_field_edit_after_create
  2752. */
  2753. $g_custom_field_edit_after_create = ON;
  2754. /****************
  2755. * Custom Menus *
  2756. ****************/
  2757. /**
  2758. * Add custom options to the main menu. For example:
  2759. * $g_main_menu_custom_options = array( array( "My Link", MANAGER, 'my_link.php' ),
  2760. * array( "My Link2", ADMINISTRATOR, 'my_link2.php' ) );
  2761. * Note that if the caption is found in custom_strings_inc.php, then it will be replaced by the
  2762. * translated string. Options will only be added to the menu if the current logged in user has
  2763. * the appropriate access level.
  2764. * @global array $g_main_menu_custom_options
  2765. */
  2766. $g_main_menu_custom_options = array();
  2767. /*********
  2768. * Icons *
  2769. *********/
  2770. /**
  2771. * Maps a file extension to a file type icon. These icons are printed
  2772. * next to project documents and bug attachments.
  2773. * Note:
  2774. * - Extensions must be in lower case
  2775. * - All icons will be displayed as 16x16 pixels.
  2776. * @global array $g_file_type_icons
  2777. */
  2778. $g_file_type_icons = array(
  2779. '' => 'text.gif',
  2780. '7z' => 'zip.gif',
  2781. 'ace' => 'zip.gif',
  2782. 'arj' => 'zip.gif',
  2783. 'bz2' => 'zip.gif',
  2784. 'c' => 'cpp.gif',
  2785. 'chm' => 'chm.gif',
  2786. 'cpp' => 'cpp.gif',
  2787. 'css' => 'css.gif',
  2788. 'csv' => 'csv.gif',
  2789. 'cxx' => 'cpp.gif',
  2790. 'diff' => 'text.gif',
  2791. 'doc' => 'doc.gif',
  2792. 'docx' => 'doc.gif',
  2793. 'dot' => 'doc.gif',
  2794. 'eml' => 'eml.gif',
  2795. 'htm' => 'html.gif',
  2796. 'html' => 'html.gif',
  2797. 'gif' => 'gif.gif',
  2798. 'gz' => 'zip.gif',
  2799. 'jpe' => 'jpg.gif',
  2800. 'jpg' => 'jpg.gif',
  2801. 'jpeg' => 'jpg.gif',
  2802. 'log' => 'text.gif',
  2803. 'lzh' => 'zip.gif',
  2804. 'mhtml' => 'html.gif',
  2805. 'mid' => 'mid.gif',
  2806. 'midi' => 'mid.gif',
  2807. 'mov' => 'mov.gif',
  2808. 'msg' => 'eml.gif',
  2809. 'one' => 'one.gif',
  2810. 'patch' => 'text.gif',
  2811. 'pcx' => 'pcx.gif',
  2812. 'pdf' => 'pdf.gif',
  2813. 'png' => 'png.gif',
  2814. 'pot' => 'pot.gif',
  2815. 'pps' => 'pps.gif',
  2816. 'ppt' => 'ppt.gif',
  2817. 'pptx' => 'ppt.gif',
  2818. 'pub' => 'pub.gif',
  2819. 'rar' => 'zip.gif',
  2820. 'reg' => 'reg.gif',
  2821. 'rtf' => 'doc.gif',
  2822. 'tar' => 'zip.gif',
  2823. 'tgz' => 'zip.gif',
  2824. 'txt' => 'text.gif',
  2825. 'uc2' => 'zip.gif',
  2826. 'vsd' => 'vsd.gif',
  2827. 'vsl' => 'vsl.gif',
  2828. 'vss' => 'vsd.gif',
  2829. 'vst' => 'vst.gif',
  2830. 'vsu' => 'vsd.gif',
  2831. 'vsw' => 'vsd.gif',
  2832. 'vsx' => 'vsd.gif',
  2833. 'vtx' => 'vst.gif',
  2834. 'wav' => 'wav.gif',
  2835. 'wbk' => 'wbk.gif',
  2836. 'wma' => 'wav.gif',
  2837. 'wmv' => 'mov.gif',
  2838. 'wri' => 'wri.gif',
  2839. 'xlk' => 'xls.gif',
  2840. 'xls' => 'xls.gif',
  2841. 'xlsx' => 'xls.gif',
  2842. 'xlt' => 'xlt.gif',
  2843. 'xml' => 'xml.gif',
  2844. 'zip' => 'zip.gif',
  2845. '?' => 'generic.gif' );
  2846. /**
  2847. * Icon associative arrays
  2848. * Status to icon mapping
  2849. * @global array $g_status_icon_arr
  2850. */
  2851. $g_status_icon_arr = array (
  2852. NONE => '',
  2853. LOW => 'priority_low_1.gif',
  2854. NORMAL => 'priority_normal.gif',
  2855. HIGH => 'priority_1.gif',
  2856. URGENT => 'priority_2.gif',
  2857. IMMEDIATE => 'priority_3.gif'
  2858. );
  2859. /**
  2860. * Sort direction to icon mapping
  2861. * @global array $g_sort_icon_arr
  2862. */
  2863. $g_sort_icon_arr = array (
  2864. ASCENDING => 'up.gif',
  2865. DESCENDING => 'down.gif'
  2866. );
  2867. /**
  2868. * Read status to icon mapping
  2869. * @global array $g_unread_icon_arr
  2870. */
  2871. $g_unread_icon_arr = array (
  2872. READ => 'mantis_space.gif',
  2873. UNREAD => 'unread.gif'
  2874. );
  2875. /********************
  2876. * My View Settings *
  2877. ********************/
  2878. /**
  2879. * Number of bugs shown in each box
  2880. * @global int $g_my_view_bug_count
  2881. */
  2882. $g_my_view_bug_count = 10;
  2883. /**
  2884. * Boxes to be shown and their order
  2885. * A box that is not to be shown can have its value set to 0
  2886. * @global array $g_my_view_boxes
  2887. */
  2888. $g_my_view_boxes = array (
  2889. 'assigned' => '1',
  2890. 'unassigned' => '2',
  2891. 'reported' => '3',
  2892. 'resolved' => '4',
  2893. 'recent_mod' => '5',
  2894. 'monitored' => '6',
  2895. 'feedback' => '0',
  2896. 'verify' => '0',
  2897. 'my_comments' => '0'
  2898. );
  2899. /**
  2900. * Toggle whether 'My View' boxes are shown in a fixed position (i.e. adjacent boxes start at the same vertical position)
  2901. * @global int $g_my_view_boxes_fixed_position
  2902. */
  2903. $g_my_view_boxes_fixed_position = ON;
  2904. /*************
  2905. * RSS Feeds *
  2906. *************/
  2907. /**
  2908. * This flag enables or disables RSS syndication. In the case where RSS syndication is not used,
  2909. * it is recommended to set it to OFF.
  2910. * @global int $g_rss_enabled
  2911. */
  2912. $g_rss_enabled = ON;
  2913. /**
  2914. * This seed is used as part of the inputs for calculating the authentication key for the RSS feeds.
  2915. * If this seed changes, all the existing keys for the RSS feeds will become invalid. This is
  2916. * defaulted to the database user name, but it is recommended to overwrite it with a specific value
  2917. * on installation.
  2918. * @global string $g_rss_key_seed
  2919. */
  2920. $g_rss_key_seed = '%db_username%';
  2921. /*********************
  2922. * Bug Relationships *
  2923. *********************/
  2924. /**
  2925. * Enable relationship graphs support.
  2926. * Show issue relationships using graphs.
  2927. *
  2928. * In order to use this feature, you must first install either GraphViz
  2929. * (all OSs except Windows) or WinGraphviz (only Windows).
  2930. *
  2931. * Graphviz homepage: http://www.research.att.com/sw/tools/graphviz/
  2932. * WinGraphviz homepage: http://home.so-net.net.tw/oodtsen/wingraphviz/
  2933. *
  2934. * Refer to the notes near the top of core/graphviz_api.php and
  2935. * core/relationship_graph_api.php for more information.
  2936. * @global int $g_relationship_graph_enable
  2937. */
  2938. $g_relationship_graph_enable = OFF;
  2939. /**
  2940. * Font name and size, as required by Graphviz. If Graphviz fails to run
  2941. * for you, you are probably using a font name that gd can't find. On
  2942. * Linux, try the name of the font file without the extension.
  2943. * @global string $g_relationship_graph_fontname
  2944. */
  2945. $g_relationship_graph_fontname = 'Arial';
  2946. /**
  2947. *
  2948. * @global int $g_relationship_graph_fontsize
  2949. */
  2950. $g_relationship_graph_fontsize = 8;
  2951. /**
  2952. * Default dependency orientation. If you have issues with lots of childs
  2953. * or parents, leave as 'horizontal', otherwise, if you have lots of
  2954. * "chained" issue dependencies, change to 'vertical'.
  2955. * @global string $g_relationship_graph_orientation
  2956. */
  2957. $g_relationship_graph_orientation = 'horizontal';
  2958. /**
  2959. * Max depth for relation graphs. This only affects relation graphs,
  2960. * dependency graphs are drawn to the full depth. A value of 3 is already
  2961. * enough to show issues really unrelated to the one you are currently
  2962. * viewing.
  2963. * @global int $g_relationship_graph_max_depth
  2964. */
  2965. $g_relationship_graph_max_depth = 2;
  2966. /**
  2967. * If set to ON, clicking on an issue on the relationship graph will open
  2968. * the bug view page for that issue, otherwise, will navigate to the
  2969. * relationship graph for that issue.
  2970. *
  2971. * @global int $g_relationship_graph_view_on_click
  2972. */
  2973. $g_relationship_graph_view_on_click = OFF;
  2974. /**
  2975. * Complete path to dot and neato tools. Your webserver must have execute
  2976. * permission to these programs in order to generate relationship graphs.
  2977. * NOTE: These are meaningless under Windows! Just ignore them!
  2978. * @global string $g_dot_tool
  2979. */
  2980. $g_dot_tool = '/usr/bin/dot';
  2981. /**
  2982. * Complete path to dot and neato tools. Your webserver must have execute
  2983. * permission to these programs in order to generate relationship graphs.
  2984. * NOTE: These are meaningless under Windows! Just ignore them!
  2985. * @global string $g_neato_tool
  2986. */
  2987. $g_neato_tool = '/usr/bin/neato';
  2988. /**
  2989. * Number of years in the past that custom date fields will display in
  2990. * drop down boxes.
  2991. * @global int $g_backward_year_count
  2992. */
  2993. $g_backward_year_count = 4;
  2994. /**
  2995. * Number of years in the future that custom date fields will display in
  2996. * drop down boxes.
  2997. * @global int $g_forward_year_count
  2998. */
  2999. $g_forward_year_count = 4;
  3000. /**
  3001. * Custom Group Actions
  3002. *
  3003. * This extensibility model allows developing new group custom actions. This
  3004. * can be implemented with a totally custom form and action pages or with a
  3005. * pre-implemented form and action page and call-outs to some functions. These
  3006. * functions are to be implemented in a predefined file whose name is based on
  3007. * the action name. For example, for an action to add a note, the action would
  3008. * be EXT_ADD_NOTE and the file implementing it would be bug_actiongroup_add_note_inc.php.
  3009. * See implementation of this file for details.
  3010. *
  3011. * Sample:
  3012. *
  3013. * array(
  3014. * array( 'action' => 'my_custom_action',
  3015. * 'label' => 'my_label', // string to be passed to lang_get_defaulted()
  3016. * 'form_page' => 'my_custom_action_page.php',
  3017. * 'action_page' => 'my_custom_action.php'
  3018. * )
  3019. * array( 'action' => 'my_custom_action2',
  3020. * 'form_page' => 'my_custom_action2_page.php',
  3021. * 'action_page' => 'my_custom_action2.php'
  3022. * )
  3023. * array( 'action' => 'EXT_ADD_NOTE', // you need to implement bug_actiongroup_<action_without_'EXT_')_inc.php
  3024. * 'label' => 'actiongroup_menu_add_note' // see strings_english.txt for this label
  3025. * )
  3026. * );
  3027. * @global array $g_custom_group_actions
  3028. */
  3029. $g_custom_group_actions = array();
  3030. /********************
  3031. * Wiki Integration *
  3032. ********************/
  3033. /**
  3034. * Wiki Integration Enabled?
  3035. * @global int $g_wiki_enable
  3036. */
  3037. $g_wiki_enable = OFF;
  3038. /**
  3039. * Wiki Engine (supported engines: 'dokuwiki', 'mediawiki', 'twiki', 'wikka', 'xwiki')
  3040. * @global string $g_wiki_engine
  3041. */
  3042. $g_wiki_engine = '';
  3043. /**
  3044. * Wiki namespace to be used as root for all pages relating to this MantisBT installation.
  3045. * @global string $g_wiki_root_namespace
  3046. */
  3047. $g_wiki_root_namespace = 'mantis';
  3048. /**
  3049. * URL under which the wiki engine is hosted. Must be on the same server.
  3050. * @global string $g_wiki_engine_url
  3051. */
  3052. $g_wiki_engine_url = $t_protocol . '://' . $t_host . '/%wiki_engine%/';
  3053. /********************
  3054. * Recently Visited *
  3055. ********************/
  3056. /**
  3057. * Whether to show the most recently visited issues or not. At the moment we always track them even if this flag is off.
  3058. * @global int $g_recently_visited
  3059. */
  3060. $g_recently_visited = ON;
  3061. /**
  3062. * The maximum number of issues to keep in the recently visited list.
  3063. * @global int $g_recently_visited_count
  3064. */
  3065. $g_recently_visited_count = 5;
  3066. /***************
  3067. * Bug Tagging *
  3068. ***************/
  3069. /**
  3070. * String that will separate tags as entered for input
  3071. * @global int $g_tag_separator
  3072. */
  3073. $g_tag_separator = ',';
  3074. /**
  3075. * Access level required to view tags attached to a bug
  3076. * @global int $g_tag_view_threshold
  3077. */
  3078. $g_tag_view_threshold = VIEWER;
  3079. /**
  3080. * Access level required to attach tags to a bug
  3081. * @global int $g_tag_attach_threshold
  3082. */
  3083. $g_tag_attach_threshold = REPORTER;
  3084. /**
  3085. * Access level required to detach tags from a bug
  3086. * @global int $g_tag_detach_threshold
  3087. */
  3088. $g_tag_detach_threshold = DEVELOPER;
  3089. /**
  3090. * Access level required to detach tags attached by the same user
  3091. * @global int $g_tag_detach_own_threshold
  3092. */
  3093. $g_tag_detach_own_threshold = REPORTER;
  3094. /**
  3095. * Access level required to create new tags
  3096. * @global int $g_tag_create_threshold
  3097. */
  3098. $g_tag_create_threshold = REPORTER;
  3099. /**
  3100. * Access level required to edit tag names and descriptions
  3101. * @global int $g_tag_edit_threshold
  3102. */
  3103. $g_tag_edit_threshold = DEVELOPER;
  3104. /**
  3105. * Access level required to edit descriptions by the creating user
  3106. * @global int $g_tag_edit_own_threshold
  3107. */
  3108. $g_tag_edit_own_threshold = REPORTER;
  3109. /*****************
  3110. * Time tracking *
  3111. *****************/
  3112. /**
  3113. * Turn on Time Tracking accounting
  3114. * @global int $g_time_tracking_enabled
  3115. */
  3116. $g_time_tracking_enabled = OFF;
  3117. /**
  3118. * A billing sums
  3119. * @global int $g_time_tracking_with_billing
  3120. */
  3121. $g_time_tracking_with_billing = OFF;
  3122. /**
  3123. * Stop watch to build time tracking field
  3124. * @global int $g_time_tracking_stopwatch
  3125. */
  3126. $g_time_tracking_stopwatch = OFF;
  3127. /**
  3128. * access level required to view time tracking information
  3129. * @global int $g_time_tracking_view_threshold
  3130. */
  3131. $g_time_tracking_view_threshold = DEVELOPER;
  3132. /**
  3133. * access level required to add/edit time tracking information
  3134. * @global int $g_time_tracking_edit_threshold
  3135. */
  3136. $g_time_tracking_edit_threshold = DEVELOPER;
  3137. /**
  3138. * access level required to run reports
  3139. * @global int $g_time_tracking_reporting_threshold
  3140. */
  3141. $g_time_tracking_reporting_threshold = MANAGER;
  3142. /**
  3143. * allow time tracking to be recorded without a bugnote
  3144. * @global int $g_time_tracking_without_note
  3145. */
  3146. $g_time_tracking_without_note = ON;
  3147. /****************************
  3148. * Profile Related Settings *
  3149. ****************************/
  3150. /**
  3151. * Enable Profiles
  3152. * @global int $g_enable_profiles
  3153. */
  3154. $g_enable_profiles = ON;
  3155. /**
  3156. * Add profile threshold
  3157. * @global int $g_add_profile_threshold
  3158. */
  3159. $g_add_profile_threshold = REPORTER;
  3160. /**
  3161. * Threshold needed to be able to create and modify global profiles
  3162. * @global int $g_manage_global_profile_threshold
  3163. */
  3164. $g_manage_global_profile_threshold = MANAGER;
  3165. /**
  3166. * Allows the users to enter free text when reporting/updating issues
  3167. * for the profile related fields (i.e. platform, os, os build)
  3168. * @global int $g_allow_freetext_in_profile_fields
  3169. */
  3170. $g_allow_freetext_in_profile_fields = ON;
  3171. /********************
  3172. * Twitter Settings *
  3173. ********************/
  3174. /**
  3175. * The integration with twitter allows for a MantisBT installation to post
  3176. * updates to a twitter account. This feature will be disabled if username
  3177. * is empty or if the curl extension is not enabled.
  3178. *
  3179. * The twitter account user name.
  3180. * @global string $g_twitter_username
  3181. */
  3182. $g_twitter_username = '';
  3183. /**
  3184. * The twitter account password.
  3185. * @global string $g_twitter_password
  3186. */
  3187. $g_twitter_password = '';
  3188. /*****************
  3189. * Plugin System *
  3190. *****************/
  3191. /**
  3192. * enable/disable plugins
  3193. * @global int $g_plugins_enabled
  3194. */
  3195. $g_plugins_enabled = ON;
  3196. /**
  3197. * absolute path to plugin files.
  3198. * @global string $g_plugin_path
  3199. */
  3200. $g_plugin_path = $g_absolute_path . 'plugins' . DIRECTORY_SEPARATOR;
  3201. /**
  3202. * management threshold.
  3203. * @global int $g_manage_plugin_threshold
  3204. */
  3205. $g_manage_plugin_threshold = ADMINISTRATOR;
  3206. /**
  3207. * A mapping of file extensions to mime types, used when serving resources from plugins
  3208. *
  3209. * @global array $g_plugin_mime_types
  3210. */
  3211. $g_plugin_mime_types = array(
  3212. 'css' => 'text/css',
  3213. 'js' => 'text/javascript',
  3214. 'gif' => 'image/gif',
  3215. 'png' => 'image/png',
  3216. 'jpg' => 'image/jpeg',
  3217. 'jpeg' => 'image/jpeg'
  3218. );
  3219. /************
  3220. * Due Date *
  3221. ************/
  3222. /**
  3223. * threshold to update due date submitted
  3224. * @global int $g_due_date_update_threshold
  3225. */
  3226. $g_due_date_update_threshold = NOBODY;
  3227. /**
  3228. * threshold to see due date
  3229. * @global int $g_due_date_view_threshold
  3230. */
  3231. $g_due_date_view_threshold = NOBODY;
  3232. /*****************
  3233. * Sub-projects
  3234. *****************
  3235. /**
  3236. * show extra dropdown for subprojects
  3237. * Shows only top projects in the project dropdown and adds an extra dropdown for subprojects.
  3238. * @global int $g_show_extended_project_browser
  3239. */
  3240. $g_show_extended_project_browser = OFF;
  3241. /**
  3242. * Sub-projects should inherit categories from parent projects.
  3243. */
  3244. $g_subprojects_inherit_categories = ON;
  3245. /**
  3246. * Sub-projects should inherit versions from parent projects.
  3247. */
  3248. $g_subprojects_inherit_versions = ON;
  3249. /**********************************
  3250. * Debugging / Developer Settings *
  3251. **********************************/
  3252. /**
  3253. * Time page loads. Shows at the bottom of the page.
  3254. * @global int $g_show_timer
  3255. */
  3256. $g_show_timer = OFF;
  3257. /**
  3258. * used for development only. Leave OFF
  3259. * @global int $g_debug_timer
  3260. */
  3261. $g_debug_timer = OFF;
  3262. /**
  3263. * Used for debugging e-mail feature, when set to OFF the emails work as normal.
  3264. * when set to e-mail address, all e-mails are sent to this address with the
  3265. * original To, Cc, Bcc included in the message body.
  3266. * @global int $g_debug_email
  3267. */
  3268. $g_debug_email = OFF;
  3269. /**
  3270. * Shows the total number/unique number of queries executed to serve the page.
  3271. * @global int $g_show_queries_count
  3272. */
  3273. $g_show_queries_count = OFF;
  3274. /**
  3275. * Indicates the access level required for a user to see the queries count / list.
  3276. * This only has an effect if $g_show_queries_count is ON. Note that this threshold
  3277. * is compared against the user's default global access level rather than the
  3278. * threshold based on the current active project.
  3279. *
  3280. * @global int $g_show_queries_threshold
  3281. */
  3282. $g_show_queries_threshold = ADMINISTRATOR;
  3283. /**
  3284. * Shows the list of all queries that are executed in chronological order from top
  3285. * to bottom. This option is only effective when $g_show_queries_count is ON.
  3286. * WARNING: Potential security hazard. Only turn this on when you really
  3287. * need it (for debugging/profiling)
  3288. * @global int $g_show_queries_list
  3289. */
  3290. $g_show_queries_list = OFF;
  3291. /**
  3292. * --- detailed error messages -----
  3293. * Shows a list of variables and their values when an error is triggered
  3294. * Only applies to error types configured to 'halt' in $g_display_errors, below
  3295. * WARNING: Potential security hazard. Only turn this on when you really
  3296. * need it for debugging
  3297. * @global int $g_show_detailed_errors
  3298. */
  3299. $g_show_detailed_errors = OFF;
  3300. /**
  3301. * --- error display ---
  3302. * what errors are displayed and how?
  3303. * The options for display are:
  3304. * 'halt' - stop and display traceback
  3305. * 'inline' - display 1 line error and continue
  3306. * 'none' - no error displayed
  3307. * A developer might set this in config_inc.php as:
  3308. * $g_display_errors = array(
  3309. * E_WARNING => 'halt',
  3310. * E_NOTICE => 'halt',
  3311. * E_USER_ERROR => 'halt',
  3312. * E_USER_WARNING => 'none',
  3313. * E_USER_NOTICE => 'none'
  3314. * );
  3315. * @global array $g_display_errors
  3316. */
  3317. $g_display_errors = array(
  3318. E_WARNING => 'inline',
  3319. E_NOTICE => 'none',
  3320. E_USER_ERROR => 'halt',
  3321. E_USER_WARNING => 'inline',
  3322. E_USER_NOTICE => 'none'
  3323. );
  3324. /**
  3325. * --- debug messages ---
  3326. * If this option is turned OFF (default) page redirects will continue to
  3327. * function even if a non-fatal error occurs. For debugging purposes, you
  3328. * can set this to ON so that any non-fatal error will prevent page redirection,
  3329. * allowing you to see the errors.
  3330. * Only turn this option on for debugging
  3331. * @global int $g_stop_on_errors
  3332. */
  3333. $g_stop_on_errors = OFF;
  3334. /**
  3335. * --- system logging ---
  3336. * This controls the logging of information to a separate file for debug or audit
  3337. * $g_log_level controls what information is logged
  3338. * see constant_inc.php for details on the log channels available
  3339. * e.g., $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
  3340. *
  3341. * $g_log_destination specifies the file where the data goes
  3342. * right now, only "file:<file path>" is supported
  3343. * e.g. (Linux), $g_log_destination = 'file:/tmp/mantisbt.log';
  3344. * e.g. (Windows), $g_log_destination = 'file:c:/temp/mantisbt.log';
  3345. * see http://www.php.net/error_log for details
  3346. * @global int $g_log_level
  3347. */
  3348. $g_log_level = LOG_NONE;
  3349. /**
  3350. *
  3351. * @global string $g_log_destination
  3352. */
  3353. $g_log_destination = '';
  3354. /**
  3355. * if OFF, will include original javascript files
  3356. * if ON, will include javascript files that have been compressed by yuicompressor if available
  3357. * @global int $g_minimal_jscss
  3358. */
  3359. $g_minimal_jscss = ON;
  3360. /**************************
  3361. * Configuration Settings *
  3362. **************************/
  3363. /**
  3364. * The following list of variables should never be in the database.
  3365. * These patterns will be concatenated and used as a regular expression
  3366. * to bypass the database lookup and look here for appropriate global settings.
  3367. * @global array $g_global_settings
  3368. */
  3369. $g_global_settings = array(
  3370. '_table$', 'cookie', '^db_', 'hostname', 'allow_signup', 'database_name', 'show_queries_', 'admin_checks', 'version_suffix', 'global_settings',
  3371. '_path$', 'use_iis', 'language', 'use_javascript', 'minimal_jscss', 'display_errors', 'show_detailed_errors', 'stop_on_errors', 'login_method', '_file$',
  3372. 'anonymous', 'content_expire', 'html_valid_tags', 'custom_headers', 'rss_key_seed', 'plugins_enabled', 'session_', 'form_security_',
  3373. 'compress_html', '_page$', '_url$',
  3374. );