PageRenderTime 304ms CodeModel.GetById 45ms RepoModel.GetById 3ms app.codeStats 1ms

/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

Large files files are truncated, but you can click here to view the full file

  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 automa…

Large files files are truncated, but you can click here to view the full file