/MantisBT/config_defaults_inc.php
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
- <?php
- # MantisBT - a php based bugtracking system
- # MantisBT is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 2 of the License, or
- # (at your option) any later version.
- #
- # MantisBT is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- /**
- * Default Configuration Variables
- *
- * This file should not be changed. If you want to override any of the values
- * defined here, define them in a file called config_inc.php, which will
- * be loaded after this file.
- *
- * In general a value of OFF means the feature is disabled and ON means the
- * feature is enabled. Any other cases will have an explanation.
- *
- * For more details see http://www.mantisbt.org/docs/master-1.2.x/
- *
- * @package MantisBT
- * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- * @link http://www.mantisbt.org
- */
- /******************************
- * MantisBT Database Settings *
- ******************************/
- /**
- * hostname should be either a hostname or connection string to supply to adodb.
- * For example, if you would like to connect to a database server on the local machine,
- * set hostname to 'localhost'
- * If you need to supply a port to connect to, set hostname as 'localhost:3306'.
- * @global string $g_hostname
- */
- $g_hostname = 'localhost';
- /**
- * User name to use for connecting to the database. The user needs to have read/write access to the MantisBT database.
- * The default user name is "root".
- * @global string $g_db_username
- */
- $g_db_username = 'root';
- /**
- * Password for the specified user name. The default password is empty.
- * @global string $g_db_password
- */
- $g_db_password = '';
- /**
- * Name of database that contains MantisBT tables.
- * The default database name is "bugtracker".
- * @global string $g_database_name
- */
- $g_database_name = 'bugtracker';
- /**
- * Database Schema Name - used in the case of db2.
- * @global string $g_db_schema
- */
- $g_db_schema = '';
- /**
- * Defines the database type. The supported default is 'mysql'.
- * Supported types: 'mysql' or 'mysqli' for MySQL, 'pgsql' for PostgreSQL,
- * 'odbc_mssql', 'mssql' for MS SQL Server, 'oci8' for Oracle, and 'db2' for DB2.
- * @global string $g_db_type
- */
- $g_db_type = 'mysql';
- /**************************
- * MantisBT Path Settings *
- **************************/
- if ( isset ( $_SERVER['SCRIPT_NAME'] ) ) {
- $t_protocol = 'http';
- if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
- $t_protocol= $_SERVER['HTTP_X_FORWARDED_PROTO'];
- } else if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
- $t_protocol = 'https';
- }
- # $_SERVER['SERVER_PORT'] is not defined in case of php-cgi.exe
- if ( isset( $_SERVER['SERVER_PORT'] ) ) {
- $t_port = ':' . $_SERVER['SERVER_PORT'];
- if ( ( ':80' == $t_port && 'http' == $t_protocol )
- || ( ':443' == $t_port && 'https' == $t_protocol )) {
- $t_port = '';
- }
- } else {
- $t_port = '';
- }
- if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
- $t_hosts = explode( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] );
- $t_host = $t_hosts[0];
- } else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
- $t_host = $_SERVER['HTTP_HOST'];
- } else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
- $t_host = $_SERVER['SERVER_NAME'] . $t_port;
- } else if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
- $t_host = $_SERVER['SERVER_ADDR'] . $t_port;
- } else {
- $t_host = 'localhost';
- }
- $t_self = $_SERVER['SCRIPT_NAME'];
- $t_self = trim( str_replace( "\0", '', $t_self ) );
- $t_path = str_replace( basename( $t_self ), '', $t_self );
- $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . '/' : $t_path;
- $t_path = basename( $t_path ) == "soap" ? dirname( dirname( $t_path ) ) . '/' : $t_path;
- if ( strpos( $t_path, '&#' ) ) {
- echo 'Can not safely determine $g_path. Please set $g_path manually in config_inc.php';
- die;
- }
- $t_url = $t_protocol . '://' . $t_host . $t_path;
- } else {
- $t_path = '';
- $t_host = '';
- $t_protocol = '';
- }
- /**
- * path to your installation as seen from the web browser
- * requires trailing /
- * @global string $g_path
- */
- $g_path = isset( $t_url ) ? $t_url : 'http://localhost/mantisbt/';
- /**
- * path to your images directory (for icons)
- * requires trailing /
- * @global string $g_icon_path
- */
- $g_icon_path = '%path%images/';
- /**
- * Short web path without the domain name
- * requires trailing /
- * @global string $g_short_path
- */
- $g_short_path = $t_path;
- /**
- * absolute path to your installation. Requires trailing / or \
- * @global string $g_absolute_path
- */
- $g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
- /**
- * absolute patch to your core files. The default is usually OK,
- * unless you moved the 'core' directory out of your webroot (recommended).
- * @global string $g_core_path
- */
- $g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
- /**
- * absolute path to class files. Requires trailing / or \
- * @global string $g_class_path
- */
- $g_class_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR;
- /**
- * Used to link to manual for User Documentation.
- * @global string $g_manual_url
- */
- $g_manual_url = 'http://www.mantisbt.org/docs/master-1.2.x/';
- /**************
- * Web Server *
- **************/
- if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { // SERVER_SOFTWARE not defined in case of php-cgi.exe
- $t_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
- } else {
- $t_use_iis = OFF;
- }
- /**
- * Using Microsoft Internet Information Server (IIS)
- * ON or OFF
- * @global int $g_use_iis
- */
- $g_use_iis = $t_use_iis;
- /**
- * Session handler. Possible values:
- * 'php' -> Default PHP filesystem sessions
- * 'adodb' -> Database storage sessions
- * 'memcached' -> Memcached storage sessions
- * @global string $g_session_handler
- */
- $g_session_handler = 'php';
- /**
- * Session key name. Should be unique between multiple installations to prevent conflicts.
- * @global string $g_session_key
- */
- $g_session_key = 'MantisBT';
- /**
- * Session save path. If false, uses default value as set by session handler.
- * @global bool $g_session_save_path
- */
- $g_session_save_path = false;
- /**
- * Session validation
- * WARNING: Disabling this could be a potential security risk!!
- * @global int $g_session_validation
- */
- $g_session_validation = ON;
- /**
- * Form security validation.
- * This protects against Cross-Site Request Forgery, but some proxy servers may
- * not correctly work with this option enabled because they cache pages incorrectly.
- * WARNING: Disabling this IS a security risk!!
- */
- $g_form_security_validation = ON;
- /****************************
- * Signup and Lost Password *
- ****************************/
- /**
- * allow users to signup for their own accounts.
- * Mail settings must be correctly configured in order for this to work
- * @global int $g_allow_signup
- */
- $g_allow_signup = ON;
- /**
- * Max. attempts to login using a wrong password before lock the account.
- * When locked, it's required to reset the password (lost password)
- * Value resets to zero at each successfully login
- * Set to OFF to disable this control
- * @global int $g_max_failed_login_count
- */
- $g_max_failed_login_count = OFF;
- /**
- * access level required to be notified when a new user has been created using the "signup form"
- * @global int $g_notify_new_user_created_threshold_min
- */
- $g_notify_new_user_created_threshold_min = ADMINISTRATOR;
- /**
- * if ON users will be sent their password when reset.
- * if OFF the password will be set to blank. If set to ON, mail settings must be
- * correctly configured.
- * @global int $g_send_reset_password
- */
- $g_send_reset_password = ON;
- /**
- * String used to generate the confirm_hash for the 'lost password' feature and captcha code for 'signup'
- * ATTENTION: CHANGE IT TO WHATEVER VALUE YOU PREFER
- * @global int $g_password_confirm_hash_magic_string
- * @todo randomize + admin check
- */
- $g_password_confirm_hash_magic_string = 'blowfish';
- /**
- * use captcha image to validate subscription it requires GD library installed
- * @global int $g_signup_use_captcha
- */
- $g_signup_use_captcha = ON;
- /**
- * absolute path (with trailing slash!) to folder which contains your TrueType-Font files
- * used to create the captcha image and since 0.19.3 for the Relationship Graphs
- * @global string $g_system_font_folder
- */
- $g_system_font_folder = '';
- /**
- * font name used to create the captcha image. i.e. arial.ttf
- * (the font file has to exist in the system_font_folder)
- * @global string $g_font_per_captcha
- */
- $g_font_per_captcha = 'arial.ttf';
- /**
- * Setting to disable the 'lost your password' feature.
- * @global int $g_lost_password_feature
- */
- $g_lost_password_feature = ON;
- /**
- * Max. simultaneous requests of 'lost password'
- * When this value is reached, it's no longer possible to request new password reset
- * Value resets to zero at each successfully login
- * @global int $g_max_lost_password_in_progress_count
- */
- $g_max_lost_password_in_progress_count = 3;
- /***************************
- * MantisBT Email Settings *
- ***************************/
- /**
- * Administrator Email address
- * @global string $g_administrator_email
- */
- $g_administrator_email = 'administrator@example.com';
- /**
- * Webmaster email
- * @global string $g_webmaster_email
- */
- $g_webmaster_email = 'webmaster@example.com';
- /**
- * the sender email, part of 'From: ' header in emails
- * @global string $g_from_email
- */
- $g_from_email = 'noreply@example.com';
- /**
- * the sender name, part of 'From: ' header in emails
- * @global string $g_from_name
- */
- $g_from_name = 'Mantis Bug Tracker';
- /**
- * the return address for bounced mail
- * @global string $g_return_path_email
- */
- $g_return_path_email = 'admin@example.com';
- /**
- * Allow email notification.
- * Set to ON to enable email notifications, OFF to disable them. Note that
- * disabling email notifications has no effect on emails generated as part
- * of the user signup process. When set to OFF, the password reset feature
- * is disabled. Additionally, notifications of administrators updating
- * accounts are not sent to users.
- * @global int $g_enable_email_notification
- */
- $g_enable_email_notification = ON;
- /**
- * The following two config options allow you to control who should get email
- * notifications on different actions/statuses. The first option (default_notify_flags)
- * sets the default values for different user categories. The user categories
- * are:
- *
- * 'reporter': the reporter of the bug
- * 'handler': the handler of the bug
- * 'monitor': users who are monitoring a bug
- * 'bugnotes': users who have added a bugnote to the bug
- * 'explicit': users who are explicitly specified by the code based on the action (e.g. user added to monitor list).
- * 'threshold_max': all users with access <= max
- * 'threshold_min': ..and with access >= min
- *
- * The second config option (notify_flags) sets overrides for specific actions/statuses.
- * If a user category is not listed for an action, the default from the config
- * option above is used. The possible actions are:
- *
- * 'new': a new bug has been added
- * 'owner': a bug has been assigned to a new owner
- * 'reopened': a bug has been reopened
- * 'deleted': a bug has been deleted
- * 'updated': a bug has been updated
- * 'bugnote': a bugnote has been added to a bug
- * 'sponsor': sponsorship has changed on this bug
- * 'relation': a relationship has changed on this bug
- * 'monitor': an issue is monitored.
- * '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', ...etc.
- * this list corresponds to $g_status_enum_string
- *
- * If you wanted to have all developers get notified of new bugs you might add
- * the following lines to your config file:
- *
- * $g_notify_flags['new']['threshold_min'] = DEVELOPER;
- * $g_notify_flags['new']['threshold_max'] = DEVELOPER;
- *
- * You might want to do something similar so all managers are notified when a
- * bug is closed. If you didn't want reporters to be notified when a bug is
- * closed (only when it is resolved) you would use:
- *
- * $g_notify_flags['closed']['reporter'] = OFF;
- *
- * @global array $g_default_notify_flags
- */
- $g_default_notify_flags = array('reporter' => ON,
- 'handler' => ON,
- 'monitor' => ON,
- 'bugnotes' => ON,
- 'explicit' => ON,
- 'threshold_min' => NOBODY,
- 'threshold_max' => NOBODY);
- /**
- * We don't need to send these notifications on new bugs
- * (see above for info on this config option)
- * @todo (though I'm not sure they need to be turned off anymore
- * - there just won't be anyone in those categories)
- * I guess it serves as an example and a placeholder for this
- * config option
- * @see $g_default_notify_flags
- * @global array $g_notify_flags
- */
- $g_notify_flags['new'] = array('bugnotes' => OFF,
- 'monitor' => OFF);
- $g_notify_flags['monitor'] = array( 'reporter' => OFF,
- 'handler' => OFF,
- 'monitor' => OFF,
- 'bugnotes' => OFF,
- 'explicit' => ON,
- 'threshold_min' => NOBODY,
- 'threshold_max' => NOBODY);
- /**
- * Whether user's should receive emails for their own actions
- * @global int $g_email_receive_own
- */
- $g_email_receive_own = OFF;
- /**
- * set to OFF to disable email check
- * @global int $g_validate_email
- */
- $g_validate_email = ON;
- /**
- * set to OFF to disable email check
- * @global int $g_check_mx_record
- */
- $g_check_mx_record = OFF;
- /**
- * if ON, allow the user to omit an email field
- * note if you allow users to create their own accounts, they
- * must specify an email at that point, no matter what the value
- * of this option is. Otherwise they wouldn't get their passwords.
- * @global int $g_allow_blank_email
- */
- $g_allow_blank_email = OFF;
- /**
- * Only allow and send email to addresses in the given domain
- * For example:
- * $g_limit_email_domain = 'users.sourceforge.net';
- * @global string|int $g_limit_email_domain
- */
- $g_limit_email_domain = OFF;
- /**
- * This specifies the access level that is needed to get the mailto: links.
- * @global int $g_show_user_email_threshold
- */
- $g_show_user_email_threshold = NOBODY;
- /**
- * This specifies the access level that is needed to see realnames on user view page
- * @global int $g_show_user_realname_threshold
- */
- $g_show_user_realname_threshold = NOBODY;
- /**
- * If use_x_priority is set to ON, what should the value be?
- * Urgent = 1, Not Urgent = 5, Disable = 0
- * Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
- * @global int $g_mail_priority
- */
- $g_mail_priority = 3;
- /**
- * select the method to mail by:
- * PHPMAILER_METHOD_MAIL - mail()
- * PHPMAILER_METHOD_SENDMAIL - sendmail
- * PHPMAILER_METHOD_SMTP - SMTP
- * @global int $g_phpMailer_method
- */
- $g_phpMailer_method = PHPMAILER_METHOD_MAIL;
- /**
- * This option allows you to use a remote SMTP host. Must use the phpMailer script
- * One or more hosts, separated by a semicolon, can be listed.
- * You can also specify a different port for each host by using this
- * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
- * Hosts will be tried in order.
- * @global string $g_smtp_host
- */
- $g_smtp_host = 'localhost';
- /**
- * These options allow you to use SMTP Authentication when you use a remote
- * SMTP host with phpMailer. If smtp_username is not '' then the username
- * and password will be used when logging in to the SMTP server.
- * @global string $g_smtp_username
- */
- $g_smtp_username = '';
- /**
- * SMTP Server Authentication password
- * @global string $g_smtp_password
- */
- $g_smtp_password = '';
- /**
- * This control the connection mode to SMTP server. Can be 'ssl' or 'tls'
- * @global string $g_smtp_connection_mode
- */
- $g_smtp_connection_mode = '';
- /**
- * The smtp port to use. The typical SMTP ports are 25 and 587. The port to use
- * will depend on the SMTP server configuration and hence others may be used.
- * @global int $g_smtp_port
- */
- $g_smtp_port = 25;
- /**
- * It is recommended to use a cronjob or a scheduler task to send emails.
- * The cronjob should typically run every 5 minutes. If no cronjob is used,
- * then user will have to wait for emails to be sent after performing an action
- * which triggers notifications. This slows user performance.
- * @global int $g_email_send_using_cronjob
- */
- $g_email_send_using_cronjob = OFF;
- /**
- * Specify whether e-mails should be sent with the category set or not. This is tested
- * with Microsoft Outlook. More testing for this feature + other formats will be added
- * in the future.
- * OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
- * @global int $g_email_set_category
- */
- $g_email_set_category = OFF;
- /**
- * email separator and padding
- * @global string $g_email_separator1
- */
- $g_email_separator1 = str_pad('', 70, '=');
- /**
- * email separator and padding
- * @global string $g_email_separator2
- */
- $g_email_separator2 = str_pad('', 70, '-');
- /**
- * email separator and padding
- * @global int $g_email_padding_length
- */
- $g_email_padding_length = 28;
- /***************************
- * MantisBT Version String *
- ***************************/
- /**
- * Set to off by default to not expose version to users
- * @global int $g_show_version
- */
- $g_show_version = OFF;
- /**
- * String appended to the MantisBT version when displayed to the user
- * @global string $g_version_suffix
- */
- $g_version_suffix = '';
- /******************************
- * MantisBT Language Settings *
- ******************************/
- /**
- * If the language is set to 'auto', the actual
- * language is determined by the user agent (web browser)
- * language preference.
- * @global string $g_default_language
- */
- $g_default_language = 'english';
- /**
- * list the choices that the users are allowed to choose
- * @global array $g_language_choices_arr
- */
- $g_language_choices_arr = array(
- 'auto',
- 'afrikaans',
- 'amharic',
- 'arabic',
- 'arabicegyptianspoken',
- 'belarusian_tarask',
- 'breton',
- 'bulgarian',
- 'catalan',
- 'chinese_simplified',
- 'chinese_traditional',
- 'croatian',
- 'czech',
- 'danish',
- 'dutch',
- 'english',
- 'estonian',
- 'finnish',
- 'french',
- 'galician',
- 'german',
- 'greek',
- 'hebrew',
- 'hungarian',
- 'icelandic',
- 'interlingua',
- 'italian',
- 'japanese',
- 'korean',
- 'latvian',
- 'lithuanian',
- 'macedonian',
- 'norwegian_bokmal',
- 'norwegian_nynorsk',
- 'occitan',
- 'polish',
- 'portuguese_brazil',
- 'portuguese_standard',
- 'ripoarisch',
- 'romanian',
- 'russian',
- 'serbian',
- 'slovak',
- 'slovene',
- 'spanish',
- 'swissgerman',
- 'swedish',
- 'tagalog',
- 'turkish',
- 'ukrainian',
- 'urdu',
- 'vietnamese',
- 'volapuk',
- );
- /**
- * Browser language mapping for 'auto' language selection
- * @global array $g_language_auto_map
- */
- $g_language_auto_map = array(
- 'af' => 'afrikaans',
- 'am' => 'amharic',
- 'ar' => 'arabic',
- 'arz' => 'arabicegyptianspoken',
- 'be, be-tarask' => 'belarusian_tarask',
- 'bg' => 'bulgarian',
- 'br' => 'breton',
- 'ca' => 'catalan',
- 'zh-cn, zh-sg, zh' => 'chinese_simplified',
- 'zh-hk, zh-tw' => 'chinese_traditional',
- 'cs' => 'czech',
- 'da' => 'danish',
- 'nl-be, nl' => 'dutch',
- 'en-us, en-gb, en-au, en' => 'english',
- 'et' => 'estonian',
- 'fi' => 'finnish',
- 'fr-ca, fr-be, fr-ch, fr' => 'french',
- 'gl' => 'galician',
- 'gsw' => 'swissgerman',
- 'de-de, de-at, de-ch, de' => 'german',
- 'he' => 'hebrew',
- 'hu' => 'hungarian',
- 'hr' => 'croatian',
- 'ia' => 'interlingua',
- 'is' => 'icelandic',
- 'it-ch, it' => 'italian',
- 'ja' => 'japanese',
- 'ko' => 'korean',
- 'ksh' => 'ripoarisch',
- 'lt' => 'lithuanian',
- 'lv' => 'latvian',
- 'mk' => 'macedonian',
- 'no' => 'norwegian_bokmal',
- 'nn' => 'norwegian_nynorsk',
- 'oc' => 'occitan',
- 'pl' => 'polish',
- 'pt-br' => 'portuguese_brazil',
- 'pt' => 'portuguese_standard',
- 'ro-mo, ro' => 'romanian',
- 'ru-mo, ru-ru, ru-ua, ru' => 'russian',
- 'sr' => 'serbian',
- 'sk' => 'slovak',
- 'sl' => 'slovene',
- 'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
- 'sv-fi, sv' => 'swedish',
- 'tl' => 'tagalog',
- 'tr' => 'turkish',
- 'uk' => 'ukrainian',
- 'vi' => 'vietnamese',
- 'vo' => 'volapuk',
- );
- /**
- * Fallback for automatic language selection
- * @global string $g_fallback_language
- */
- $g_fallback_language = 'english';
- /*****************************
- * MantisBT Display Settings *
- *****************************/
- /**
- * browser window title
- * @global string $g_window_title
- */
- $g_window_title = 'MantisBT';
- /**
- * title at top of html page (empty by default, since there is a logo now)
- * @global string $g_page_title
- */
- $g_page_title = '';
- /**
- * Check for admin directory, database upgrades, etc.
- * @global int $g_admin_checks
- */
- $g_admin_checks = ON;
- /**
- * Favicon image
- * @global string $g_favicon_image
- */
- $g_favicon_image = 'images/favicon.ico';
- /**
- * Logo
- * @global string $g_logo_image
- */
- $g_logo_image = 'images/mantis_logo.gif';
- /**
- * Logo URL link
- * @global string $g_logo_url
- */
- $g_logo_url = '%default_home_page%';
- /**
- * Re-authentication required for admin areas
- * @global int $g_reauthentication
- */
- $g_reauthentication = ON;
- /**
- *
- * @global int $g_reauthentication_expiry
- */
- $g_reauthentication_expiry = TOKEN_EXPIRY_AUTHENTICATED;
- /**
- * Specifies whether to enable support for project documents or not.
- * This feature is deprecated and is expected to be moved to a plugin
- * in the future.
- * @global int $g_enable_project_documentation
- */
- $g_enable_project_documentation = OFF;
- /**
- * Display another instance of the menu at the bottom. The top menu will still remain.
- * @global int $g_show_footer_menu
- */
- $g_show_footer_menu = OFF;
- /**
- * show extra menu bar with all available projects
- * @global int $g_show_project_menu_bar
- */
- $g_show_project_menu_bar = OFF;
- /**
- * show assigned to names
- * This is in the view all pages
- * @global int $g_show_assigned_names
- */
- $g_show_assigned_names = ON;
- /**
- * show priority as icon
- * OFF: Shows priority as icon in view all bugs page
- * ON: Shows priority as text in view all bugs page
- * @global int $g_show_priority_text
- */
- $g_show_priority_text = OFF;
- /**
- * Define the priority level at which a bug becomes significant.
- * Significant bugs are displayed with emphasis. Set this value to -1 to
- * disable the feature.
- * @global int $g_priority_significant_threshold
- */
- $g_priority_significant_threshold = HIGH;
- /**
- * Define the severity level at which a bug becomes significant.
- * Significant bugs are displayed with emphasis. Set this value to -1 to
- * disable the feature.
- * @global int $g_severity_significant_threshold
- */
- $g_severity_significant_threshold = MAJOR;
- /**
- * The default columns to be included in the View Issues Page.
- * This can be overriden using Manage -> Manage Configuration -> Manage Columns
- * Also each user can configure their own columns using My Account -> Manage Columns
- * Some of the columns specified here can be removed automatically if they conflict with other configuration.
- * Or if the current user doesn't have the necessary access level to view them.
- * For example, sponsorship_total will be removed if sponsorships are disabled.
- * To include custom field 'xyz', include the column name as 'custom_xyz'.
- *
- * Standard Column Names (i.e. names to choose from):
- * selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta,
- * resolution, fixed_in_version, view_state, os, os_build, build (for product build), platform, version, date_submitted, attachment,
- * category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count, description,
- * steps_to_reproduce, additional_information
- *
- * @global array $g_view_issues_page_columns
- */
- $g_view_issues_page_columns = array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category_id', 'severity', 'status', 'last_updated', 'summary' );
- /**
- * The default columns to be included in the Print Issues Page.
- * This can be overriden using Manage -> Manage Configuration -> Manage Columns
- * Also each user can configure their own columns using My Account -> Manage Columns
- * @global array $g_print_issues_page_columns
- */
- $g_print_issues_page_columns = array ( 'selection', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category_id', 'severity', 'status', 'last_updated', 'summary' );
- /**
- * The default columns to be included in the CSV export.
- * This can be overriden using Manage -> Manage Configuration -> Manage Columns
- * Also each user can configure their own columns using My Account -> Manage Columns
- * @global array $g_csv_columns
- */
- $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' );
- /**
- * The default columns to be included in the Excel export.
- * This can be overriden using Manage -> Manage Configuration -> Manage Columns
- * Also each user can configure their own columns using My Account -> Manage Columns
- * @global array $g_excel_columns
- */
- $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' );
- /**
- * show projects when in All Projects mode
- * @global int $g_show_bug_project_links
- */
- $g_show_bug_project_links = ON;
- /**
- * Position of the status colour legend, can be: POSITION_*
- * see constant_inc.php. (*: TOP , BOTTOM , or BOTH)
- * @global int $g_status_legend_position
- */
- $g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM;
- /**
- * Show a legend with percentage of bug status
- * x% of all bugs are new, y% of all bugs are assigned and so on.
- * If set to ON it will printed below the status colour legend.
- * @global int $g_status_percentage_legend
- */
- $g_status_percentage_legend = OFF;
- /**
- * Position of the filter box, can be: POSITION_*
- * POSITION_TOP, POSITION_BOTTOM, or POSITION_NONE for none.
- * @global int $g_filter_position
- */
- $g_filter_position = FILTER_POSITION_TOP;
- /**
- * Position of action buttons when viewing issues.
- * Can be: POSITION_TOP, POSITION_BOTTOM, or POSITION_BOTH.
- * @global int $g_action_button_position
- */
- $g_action_button_position = POSITION_BOTTOM;
- /**
- * show product versions in create, view and update screens
- * ON forces display even if none are defined
- * OFF suppresses display
- * AUTO suppresses the display if there are no versions defined for the project
- * @global int $g_show_product_version
- */
- $g_show_product_version = AUTO;
- /**
- * The access level threshold at which users will see the date of release
- * for product versions. Dates will be shown next to the product version,
- * target version and fixed in version fields. Set this threshold to NOBODY
- * to disable the feature.
- * @global int $g_show_version_dates_threshold
- */
- $g_show_version_dates_threshold = NOBODY;
- /**
- * show users with their real name or not
- * @global int $g_show_realname
- */
- $g_show_realname = OFF;
- /**
- * leave off for now
- * @global int $g_differentiate_duplicates
- */
- $g_differentiate_duplicates = OFF;
- /**
- * sorting for names in dropdown lists. If turned on, "Jane Doe" will be sorted with the "D"s
- * @global int $g_sort_by_last_name
- */
- $g_sort_by_last_name = OFF;
- /**
- * Show user avatar
- * the current implementation is based on http://www.gravatar.com
- * users will need to register there the same address used in
- * this MantisBT installation to have their avatar shown
- * Please note: upon registration or avatar change, it takes some time for
- * the updated gravatar images to show on sites
- * @global int $g_show_avatar
- */
- $g_show_avatar = OFF;
- /**
- * Only users above this threshold will have their avatar shown
- * @global int $g_show_avatar_threshold
- */
- $g_show_avatar_threshold = DEVELOPER;
- /**
- * Default avatar for users without a gravatar account
- * @global string $g_default_avatar
- */
- $g_default_avatar = "%path%images/no_avatar.png";
- /**
- * Show release dates on changelog
- * @global int $g_show_changelog_dates
- */
- $g_show_changelog_dates = ON;
- /**
- * Show release dates on roadmap
- * @global int $g_show_roadmap_dates
- */
- $g_show_roadmap_dates = ON;
- /**************************
- * MantisBT Time Settings *
- **************************/
- /**
- * time for 'permanent' cookie to live in seconds (1 year)
- * @global int $g_cookie_time_length
- */
- $g_cookie_time_length = 30000000;
- /**
- * minutes to wait before document is stale (in minutes)
- * @global int $g_content_expire
- */
- $g_content_expire = 0;
- /**
- * The time (in seconds) to allow for page execution during long processes
- * such as upgrading your database.
- * The default value of 0 indicates that the page should be allowed to
- * execute until it is finished.
- * @global int $g_long_process_timeout
- */
- $g_long_process_timeout = 0;
- /**************************
- * MantisBT Date Settings *
- **************************/
- /**
- * date format strings defaults to ISO 8601 formatting
- * go to http://www.php.net/manual/en/function.date.php
- * for detailed instructions on date formatting
- * @global string $g_short_date_format
- */
- $g_short_date_format = 'Y-m-d';
- /**
- * date format strings defaults to ISO 8601 formatting
- * go to http://www.php.net/manual/en/function.date.php
- * for detailed instructions on date formatting
- * @global string $g_normal_date_format
- */
- $g_normal_date_format = 'Y-m-d H:i';
- /**
- * date format strings defaults to ISO 8601 formatting
- * go to http://www.php.net/manual/en/function.date.php
- * for detailed instructions on date formatting
- * @global string $g_complete_date_format
- */
- $g_complete_date_format = 'Y-m-d H:i T';
- /**
- * jscalendar date format string
- * go to http://www.php.net/manual/en/function.date.php
- * for detailed instructions on date formatting
- * @global string $g_calendar_js_date_format
- */
- $g_calendar_js_date_format = '\%Y-\%m-\%d \%H:\%M';
- /**
- * jscalendar date format string
- * go to http://www.php.net/manual/en/function.date.php
- * for detailed instructions on date formatting
- * @global string $g_calendar_date_format
- */
- $g_calendar_date_format = 'Y-m-d H:i';
- /**************************
- * MantisBT TimeZone Settings *
- **************************/
- /**
- * Default timezone to use in mantis.
- * See http://us.php.net/manual/en/timezones.php
- * for a list of valid timezones.
- * Note: if this is left blank, we use the result of
- * date_default_timezone_get() i.e. in order:
- * 1. Reading the TZ environment variable (if non empty)
- * 2. Reading the value of the date.timezone php.ini option (if set)
- * 3. Querying the host operating system (if supported and allowed by the OS)
- * 4. If none of the above succeed, will return a default timezone of UTC.
- * @global string $g_default_timezone
- */
- $g_default_timezone = '';
- /**************************
- * MantisBT News Settings *
- **************************/
- /**
- * Indicates whether the news feature should be enabled or disabled.
- * This feature is deprecated and is expected to be moved to a plugin
- * in the future.
- */
- $g_news_enabled = OFF;
- /**
- * Limit News Items
- * limit by entry count or date
- * BY_LIMIT - entry limit
- * BY_DATE - by date
- * @global int $g_news_limit_method
- */
- $g_news_limit_method = BY_LIMIT;
- /**
- * limit by last X entries
- * @global int $g_news_view_limit
- */
- $g_news_view_limit = 7;
- /**
- * limit by days
- * @global int $g_news_view_limit_days
- */
- $g_news_view_limit_days = 30;
- /**
- * threshold for viewing private news
- * @global int $g_private_news_threshold
- */
- $g_private_news_threshold = DEVELOPER;
- /********************************
- * MantisBT Default Preferences *
- ********************************/
- /**
- * signup default
- * look in constant_inc.php for values
- * @global int $g_default_new_account_access_level
- */
- $g_default_new_account_access_level = REPORTER;
- /**
- * Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
- * @global int $g_default_bug_view_status
- */
- $g_default_bug_view_status = VS_PUBLIC;
- /**
- * Default value for steps to reproduce field.
- * @global string $g_default_bug_steps_to_reproduce
- */
- $g_default_bug_steps_to_reproduce = '';
- /**
- * Default value for addition information field.
- * @global string $g_default_bug_additional_info
- */
- $g_default_bug_additional_info = '';
- /**
- * Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
- * @global int $g_default_bugnote_view_status
- */
- $g_default_bugnote_view_status = VS_PUBLIC;
- /**
- * Default bug resolution when reporting a new bug
- * @global int $g_default_bug_resolution
- */
- $g_default_bug_resolution = OPEN;
- /**
- * Default bug severity when reporting a new bug
- * @global int $g_default_bug_severity
- */
- $g_default_bug_severity = MINOR;
- /**
- * Default bug priority when reporting a new bug
- * @global int $g_default_bug_priority
- */
- $g_default_bug_priority = NORMAL;
- /**
- * Default bug reproducibility when reporting a new bug
- * @global int $g_default_bug_reproducibility
- */
- $g_default_bug_reproducibility = REPRODUCIBILITY_HAVENOTTRIED;
- /**
- * Default bug projection when reporting a new bug
- * @global int $g_default_bug_projection
- */
- $g_default_bug_projection = PROJECTION_NONE;
- /**
- * Default bug ETA when reporting a new bug
- * @global int $g_default_bug_eta
- */
- $g_default_bug_eta = ETA_NONE;
- /**
- * Default global category to be used when an issue is moved from a project to another
- * that doesn't have a category with a matching name. The default is 1 which is the "General"
- * category that is created in the default database.
- */
- $g_default_category_for_moves = 1;
- /**
- *
- * @global int $g_default_limit_view
- */
- $g_default_limit_view = 50;
- /**
- *
- * @global int $g_default_show_changed
- */
- $g_default_show_changed = 6;
- /**
- *
- * @global int $g_hide_status_default
- */
- $g_hide_status_default = CLOSED;
- /**
- *
- * @global string $g_show_sticky_issues
- */
- $g_show_sticky_issues = ON;
- /**
- * make sure people aren't refreshing too often
- * in minutes
- * @global int $g_min_refresh_delay
- */
- $g_min_refresh_delay = 10;
- /**
- * in minutes
- * @global int $g_default_refresh_delay
- */
- $g_default_refresh_delay = 30;
- /**
- * in seconds
- * @global int $g_default_redirect_delay
- */
- $g_default_redirect_delay = 2;
- /**
- *
- * @global string $g_default_bugnote_order
- */
- $g_default_bugnote_order = 'ASC';
- /**
- *
- * @global int $g_default_email_on_new
- */
- $g_default_email_on_new = ON;
- /**
- *
- * @global int $g_default_email_on_assigned
- */
- $g_default_email_on_assigned = ON;
- /**
- *
- * @global int $g_default_email_on_feedback
- */
- $g_default_email_on_feedback = ON;
- /**
- *
- * @global int $g_default_email_on_resolved
- */
- $g_default_email_on_resolved = ON;
- /**
- *
- * @global int $g_default_email_on_closed
- */
- $g_default_email_on_closed = ON;
- /**
- *
- * @global int $g_default_email_on_reopened
- */
- $g_default_email_on_reopened = ON;
- /**
- *
- * @global int $g_default_email_on_bugnote
- */
- $g_default_email_on_bugnote = ON;
- /**
- * @todo Unused
- * @global int $g_default_email_on_status
- */
- $g_default_email_on_status = 0;
- /**
- * @todo Unused
- * @global int $g_default_email_on_priority
- */
- $g_default_email_on_priority = 0;
- /**
- * 'any'
- * @global int $g_default_email_on_new_minimum_severity
- */
- $g_default_email_on_new_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_assigned_minimum_severity
- */
- $g_default_email_on_assigned_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_feedback_minimum_severity
- */
- $g_default_email_on_feedback_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_resolved_minimum_severity
- */
- $g_default_email_on_resolved_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_closed_minimum_severity
- */
- $g_default_email_on_closed_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_reopened_minimum_severity
- */
- $g_default_email_on_reopened_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_bugnote_minimum_severity
- */
- $g_default_email_on_bugnote_minimum_severity = OFF;
- /**
- * 'any'
- * @global int $g_default_email_on_status_minimum_severity
- */
- $g_default_email_on_status_minimum_severity = OFF;
- /**
- * @todo Unused
- * @global int $g_default_email_on_priority_minimum_severity
- */
- $g_default_email_on_priority_minimum_severity = OFF;
- /**
- *
- * @global int $g_default_email_bugnote_limit
- */
- $g_default_email_bugnote_limit = 0;
- /*****************************
- * MantisBT Summary Settings *
- *****************************/
- /**
- * how many reporters to show
- * this is useful when there are hundreds of reporters
- * @global int $g_reporter_summary_limit
- */
- $g_reporter_summary_limit = 10;
- /**
- * summary date displays
- * date lengths to count bugs by (in days)
- * @global array $g_date_partitions
- */
- $g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
- /**
- * shows project '[project] category' when 'All Projects' is selected
- * otherwise only 'category name'
- * @global int $g_summary_category_include_project
- */
- $g_summary_category_include_project = OFF;
- /**
- * threshold for viewing summary
- * @global int $g_view_summary_threshold
- */
- $g_view_summary_threshold = MANAGER;
- /**
- * Define the multipliers which are used to determine the effectiveness
- * of reporters based on the severity of bugs. Higher multipliers will
- * result in an increase in reporter effectiveness.
- * @global array $g_severity_multipliers
- */
- $g_severity_multipliers = array( FEATURE => 1,
- TRIVIAL => 2,
- TEXT => 3,
- TWEAK => 2,
- MINOR => 5,
- MAJOR => 8,
- CRASH => 8,
- BLOCK => 10 );
- /**
- * Define the resolutions which are used to determine the effectiveness
- * of reporters based on the resolution of bugs. Higher multipliers will
- * result in a decrease in reporter effectiveness. The only resolutions
- * that need to be defined here are those which match or exceed
- * $g_bug_resolution_not_fixed_threshold.
- * @global array $g_resolution_multipliers
- */
- $g_resolution_multipliers = array( UNABLE_TO_DUPLICATE => 2,
- NOT_FIXABLE => 1,
- DUPLICATE => 3,
- NOT_A_BUG => 5,
- SUSPENDED => 1,
- WONT_FIX => 1 );
- /*****************************
- * MantisBT Bugnote Settings *
- *****************************/
- /**
- * bugnote ordering
- * change to ASC or DESC
- * @global string $g_bugnote_order
- */
- $g_bugnote_order = 'DESC';
- /*********************************
- * MantisBT Bug History Settings *
- *********************************/
- /**
- * bug history visible by default when you view a bug
- * change to ON or OFF
- * @global int $g_history_default_visible
- */
- $g_history_default_visible = ON;
- /**
- * bug history ordering
- * change to ASC or DESC
- * @global string $g_history_order
- */
- $g_history_order = 'ASC';
- /******************************
- * MantisBT Reminder Settings *
- ******************************/
- /**
- * are reminders stored as bugnotes
- * @global int $g_store_reminders
- */
- $g_store_reminders = ON;
- /**
- * Automatically add recipients of reminders to monitor list, if they are not
- * the handler or the reporter (since they automatically get notified, if required)
- * If recipients of the reminders are below the monitor threshold, they will not be added.
- * @global int $g_reminder_recipients_monitor_bug
- */
- $g_reminder_recipients_monitor_bug = ON;
- /**
- * Default Reminder View Status (VS_PUBLIC or VS_PRIVATE)
- * @global int $g_default_reminder_view_status
- */
- $g_default_reminder_view_status = VS_PUBLIC;
- /**
- * The minimum access level required to show up in the list of users who can receive a reminder.
- * The access level is that of the project to which the issue belongs.
- * @global int $g_reminder_receive_threshold
- */
- $g_reminder_receive_threshold = DEVELOPER;
- /*********************************
- * MantisBT Sponsorship Settings *
- *********************************/
- /**
- * Whether to enable/disable the whole issue sponsorship feature
- * @global int $g_enable_sponsorship
- */
- $g_enable_sponsorship = OFF;
- /**
- * Currency used for all sponsorships.
- * @global string $g_sponsorship_currency
- */
- $g_sponsorship_currency = 'US$';
- /**
- * Access level threshold needed to view the total sponsorship for an issue by all users.
- * @global int $g_view_sponsorship_total_threshold
- */
- $g_view_sponsorship_total_threshold = VIEWER;
- /**
- * Access level threshold needed to view the users sponsoring an issue and the sponsorship
- * amount for each.
- * @global int $g_view_sponsorship_details_threshold
- */
- $g_view_sponsorship_details_threshold = VIEWER;
- /**
- * Access level threshold needed to allow user to sponsor issues.
- * @global int $g_sponsor_threshold
- */
- $g_sponsor_threshold = REPORTER;
- /**
- * Access level required to be able to handle sponsored issues.
- * @global int $g_handle_sponsored_bugs_threshold
- */
- $g_handle_sponsored_bugs_threshold = DEVELOPER;
- /**
- * Access level required to be able to assign a sponsored issue to a user with access level
- * greater or equal to 'handle_sponsored_bugs_threshold'.
- * @global int $g_assign_sponsored_bugs_threshold
- */
- $g_assign_sponsored_bugs_threshold = MANAGER;
- /**
- * Minimum sponsorship amount. If the user enters a value less than this, an error will be prompted.
- * @global int $g_minimum_sponsorship_amount
- */
- $g_minimum_sponsorship_amount = 5;
- /*********************************
- * MantisBT File Upload Settings *
- *********************************/
- /**
- * --- file upload settings --------
- * This is the master setting to disable *all* file uploading functionality
- *
- * If you want to allow file uploads, you must also make sure that they are
- * enabled in php. You may need to add 'file_uploads = TRUE' to your php.ini
- *
- * See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
- * $g_allow_reporter_upload
- * @global int $g_allow_file_upload
- */
- $g_allow_file_upload = ON;
- /**
- * Upload destination: specify actual location in project settings
- * DISK, DATABASE, or FTP.
- * @global int $g_file_upload_method
- */
- $g_file_upload_method = DATABASE;
- /**
- * When using FTP or DISK for storing uploaded files, this setting control
- * the access permissions they will have on the web server: with the default
- * value (0400) files will be read-only, and accessible only by the user
- * running the apache process (probably "apache" in Linux and "Administrator"
- * in Windows).
- * For more details on unix style permissions:
- * http://www.perlfect.com/articles/chmod.shtml
- * @global int $g_attachments_file_permissions
- */
- $g_attachments_file_permissions = 0400;
- /**
- * FTP settings, used if $g_file_upload_method = FTP
- * @global string $g_file_upload_ftp_server
- */
- $g_file_upload_ftp_server = 'ftp.myserver.com';
- /**
- *
- * @global string $g_file_upload_ftp_user
- */
- $g_file_upload_ftp_user = 'readwriteuser';
- /**
- *
- * @global string $g_file_upload_ftp_pass
- */
- $g_file_upload_ftp_pass = 'readwritepass';
- /**
- * Maximum file size that can be uploaded
- * Also check your PHP settings (default is usually 2MBs)
- * @global int $g_max_file_size
- */
- $g_max_file_size = 5000000;
- /**
- * Files that are allowed or not allowed. Separate items by commas.
- * eg. 'php,html,java,exe,pl'
- * if $g_allowed_files is filled in NO other file types will be allowed.
- * $g_disallowed_files takes precedence over $g_allowed_files
- * @global string $g_allowed_files
- */
- $g_allowed_files = '';
- /**
- *
- * @global string $g_disallowed_files
- */
- $g_disallowed_files = '';
- /**
- * prefix to be used for the file system names of files uploaded to projects.
- * Eg: doc-001-myprojdoc.zip
- * @global string $g_document_files_prefix
- */
- $g_document_files_prefix = 'doc';
- /**
- * absolute path to the default upload folder. Requires trailing / or \
- * @global string $g_absolute_path_default_upload_folder
- */
- $g_absolute_path_default_upload_folder = '';
- /**************************
- * MantisBT HTML Settings *
- **************************/
- /**
- * html tags
- * Set this flag to automatically convert www URLs and
- * email adresses into clickable links
- * @global int $g_html_make_links
- */
- $g_html_make_links = ON;
- /**
- * These are the valid html tags for multi-line fields (e.g. description)
- * do NOT include href or img tags here
- * do NOT include tags that have parameters (eg. <font face="arial">)
- * @global string $g_html_valid_tags
- */
- $g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em, strong';
- /**
- * These are the valid html tags for single line fields (e.g. issue summary).
- * do NOT include href or img tags here
- * do NOT include tags that have parameters (eg. <font face="arial">)
- * @global string $g_html_valid_tags_single_line
- */
- $g_html_valid_tags_single_line = 'i, b, u, em, strong';
- /**
- * maximum length of the description in a dropdown menu (for search)
- * set to 0 to disable truncations
- * @global int $g_max_dropdown_length
- */
- $g_max_dropdown_length = 40;
- /**
- * This flag conntrolls whether pre-formatted text (delimited by <pre> tags
- * is wrapped to a maximum linelength (defaults to 100 chars in strings_api)
- * If turned off, the display may be wide when viewing the text
- * @global int $g_wrap_in_preformatted_text
- */
- $g_wrap_in_preformatted_text = ON;
- /************************
- * MantisBT HR Settings *
- ************************/
- /**
- * Horizontal Rule Size
- * @global int $g_hr_size
- */
- $g_hr_size = 1;
- /**
- * Horizontal Rule Width
- * @global int $g_hr_width
- */
- $g_hr_width = 50;
- /**************************
- * MantisBT LDAP Settings *
- **************************/
- /**
- * Specifies the LDAP or Active Directory server to connect to, and must be
- * provided as an URI
- * - Protocol is optional, can be one of ldap or ldaps, defaults to ldap
- * - Port number is optional, and defaults to 389. If this doesn't work, try
- * using one of the following standard port numbers: 636 (ldaps); for Active
- * Directory Global Catalog forest-wide search, use 3268 (ldap) or 3269 (ldaps)
- *
- * Examples of valid URI:
- *
- * ldap.example.com
- * ldap.example.com:3268
- * ldap://ldap.example.com/
- * ldaps://ldap.example.com:3269/
- *
- * @global string $g_ldap_server
- */
- $g_ldap_server = 'ldap.example.com';
- /**
- *
- * @global string $g_ldap_root_dn
- */
- $g_ldap_root_dn = 'dc=example,dc=com,dc=au';
- /**
- * e.g. '(organizationname=*Traffic)'
- * @global string $g_ldap_organization
- */
- $g_ldap_organization = '';
- /**
- * Use 'sAMAccountName' for Active Directory
- * @global string $g_ldap_uid_field
- */
- $g_ldap_uid_field = 'uid';
- /**
- * The LDAP field for real name (i.e. common name).
- * @global string $g_ldap_uid_field
- */
- $g_ldap_realname_field = 'cn';
- /**
- * The distinguished of the user account to use for binding to the LDAP server.
- * For example, 'CN=ldap,OU=Administrators,DC=example,DC=com'.
- *
- * @global string $g_ldap_bind_dn
- */
- $g_ldap_bind_dn = '';
- /**
- * The password for the service account to be used for connecting to the LDAP server.
- *
- * @global string $g_ldap_bind_passwd
- */
- $g_ldap_bind_passwd = '';
- /**
- * Should we send to the LDAP email address or what MySql tells us
- * @global int $g_use_ldap_email
- */
- $g_use_ldap_email = OFF;
- /**
- * Whether or not to pull the real name from LDAP.
- * ON from LDAP, OFF from database.
- * @global int $g_use_ldap_realname
- */
- $g_use_ldap_realname = OFF;
- /**
- * The LDAP Protocol Version, if 0, then the protocol version is not set. For Active Directory use version 3.
- *
- * @global int $g_ldap_protocol_version
- */
- $g_ldap_protocol_version = 0;
- /**
- * Determines whether the LDAP library automa…
Large files files are truncated, but you can click here to view the full file