Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../testlink
File: config.inc.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* TestLink Open Source Project - http://testlink.sourceforge.net/
[2] Fix | Delete
* This script is distributed under the GNU General Public License 2 or later.
[3] Fix | Delete
*
[4] Fix | Delete
* Constants and configuration parameters used throughout TestLink
[5] Fix | Delete
*
[6] Fix | Delete
* There are included extra files:
[7] Fix | Delete
* - your customized settings - custom_config.inc.php
[8] Fix | Delete
* - DB access - config_db.inc.php
[9] Fix | Delete
* - constants - const.inc.php
[10] Fix | Delete
* - basic checking - configCheck.php
[11] Fix | Delete
*
[12] Fix | Delete
* IMPORTANT:
[13] Fix | Delete
* To adapt values to your needs DO NOT EDIT THIS FILE but use custom_config.inc.php and
[14] Fix | Delete
* replace values of TestLink configuration variables.
[15] Fix | Delete
* It saves your changes for the next upgrade in one extra file.
[16] Fix | Delete
*
[17] Fix | Delete
* @filesource config.inc.php
[18] Fix | Delete
* @package TestLink
[19] Fix | Delete
* @copyright 2005-2018, TestLink community
[20] Fix | Delete
* @link http://www.testlink.org
[21] Fix | Delete
*
[22] Fix | Delete
*
[23] Fix | Delete
**/
[24] Fix | Delete
[25] Fix | Delete
// ----------------------------------------------------------------------------
[26] Fix | Delete
/* [INITIALIZATION] - DO NOT CHANGE THE SECTION */
[27] Fix | Delete
[28] Fix | Delete
/** @global array Global configuration class */
[29] Fix | Delete
$tlCfg = new stdClass();
[30] Fix | Delete
$tlCfg->api = new stdClass();
[31] Fix | Delete
$tlCfg->cookie = new stdClass();
[32] Fix | Delete
$tlCfg->document_generator = new stdClass();
[33] Fix | Delete
[34] Fix | Delete
$tlCfg->spec_cfg = new stdClass();
[35] Fix | Delete
[36] Fix | Delete
$tlCfg->exec_cfg = new stdClass();
[37] Fix | Delete
$tlCfg->exec_cfg->view_mode = new stdClass();
[38] Fix | Delete
$tlCfg->exec_cfg->exec_mode = new stdClass();
[39] Fix | Delete
[40] Fix | Delete
[41] Fix | Delete
$tlCfg->UDFStripHTMLTags = true;
[42] Fix | Delete
[43] Fix | Delete
// allow to define additional execution types other than
[44] Fix | Delete
// defined in testcase.class.php
[45] Fix | Delete
// array(code => lblkey)
[46] Fix | Delete
// code int value > latest standard execution code defined.
[47] Fix | Delete
// lblkey => key to be used on lang_get() call.
[48] Fix | Delete
//
[49] Fix | Delete
$tlCfg->custom_execution_types = null;
[50] Fix | Delete
[51] Fix | Delete
$tlCfg->gui = new stdClass();
[52] Fix | Delete
$tlCfg->gui->custom_fields = new stdClass();
[53] Fix | Delete
$tlCfg->testcase_cfg = new stdClass();
[54] Fix | Delete
$tlCfg->req_cfg = new stdClass();
[55] Fix | Delete
$tlCfg->validation_cfg = new stdClass();
[56] Fix | Delete
$tlCfg->custom_fields = new stdClass();
[57] Fix | Delete
$tlCfg->req_spec_cfg = new stdClass();
[58] Fix | Delete
$tlCfg->diffEngine = new stdClass();
[59] Fix | Delete
$tlCfg->tplanDesign = new stdClass();
[60] Fix | Delete
[61] Fix | Delete
$tlCfg->notifications = new stdClass();
[62] Fix | Delete
$tlCfg->proxy = new stdClass();
[63] Fix | Delete
[64] Fix | Delete
$tlCfg->reqTCLinks = new stdClass();
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
$tlCfg->keywords = new stdClass();
[68] Fix | Delete
$tlCfg->keywords->onDeleteCheckFrozenTCVersions = TRUE;
[69] Fix | Delete
$tlCfg->keywords->onDeleteCheckExecutedTCVersions = TRUE;
[70] Fix | Delete
[71] Fix | Delete
// main key testproject PREFIX
[72] Fix | Delete
// element array
[73] Fix | Delete
// 'addTCLinkIntoITS' true => add note to Issue Tracker to issue with
[74] Fix | Delete
// ISSUE ID similar to the KEYWORD (see kwPrefix below)
[75] Fix | Delete
//
[76] Fix | Delete
// 'kwPrefix' to remove from keyword to create the ISSUE ID
[77] Fix | Delete
//
[78] Fix | Delete
$tlCfg->keywords->byTestProject = array();
[79] Fix | Delete
[80] Fix | Delete
$tlCfg->keywords->headsUpTSuiteOnExec = 'CMD_OPEN_ON_EXEC';
[81] Fix | Delete
[82] Fix | Delete
$tlCfg->accessWithoutLogin = array();
[83] Fix | Delete
[84] Fix | Delete
[85] Fix | Delete
/** @uses database access definition (generated automatically by TL installer) */
[86] Fix | Delete
@include_once('config_db.inc.php');
[87] Fix | Delete
if( !defined('DB_TABLE_PREFIX') ) {
[88] Fix | Delete
define('DB_TABLE_PREFIX','' );
[89] Fix | Delete
}
[90] Fix | Delete
[91] Fix | Delete
/** The root dir for the testlink installation with trailing slash */
[92] Fix | Delete
define('TL_ABS_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
[93] Fix | Delete
[94] Fix | Delete
/** Just for documentation */
[95] Fix | Delete
$tlCfg->testlinkdotorg = 'http://www.testlink.org';
[96] Fix | Delete
[97] Fix | Delete
/** GUI themes (base for CSS and images)- modify if you create own one */
[98] Fix | Delete
$tlCfg->theme_dir = 'gui/themes/default/';
[99] Fix | Delete
[100] Fix | Delete
/** Dir for compiled templates */
[101] Fix | Delete
$tlCfg->temp_dir = TL_ABS_PATH . 'gui' . DIRECTORY_SEPARATOR .
[102] Fix | Delete
'templates_c' . DIRECTORY_SEPARATOR;
[103] Fix | Delete
if (($tpltmp = getenv('TESTLINK_TEMPLATES_C'))) {
[104] Fix | Delete
$tlCfg->temp_dir = trim($tpltmp);
[105] Fix | Delete
}
[106] Fix | Delete
[107] Fix | Delete
/** default filenames of CSS files of current GUI theme */
[108] Fix | Delete
define('TL_CSS_MAIN', 'testlink.css');
[109] Fix | Delete
define('TL_CSS_PRINT', 'tl_print.css');
[110] Fix | Delete
define('TL_CSS_DOCUMENTS', 'tl_documents.css');
[111] Fix | Delete
[112] Fix | Delete
define('TL_THEME_BASE_DIR', $tlCfg->theme_dir);
[113] Fix | Delete
define('TL_THEME_IMG_DIR', $tlCfg->theme_dir . 'images/');
[114] Fix | Delete
define('TL_THEME_CSS_DIR', $tlCfg->theme_dir . 'css/');
[115] Fix | Delete
define('TL_TESTLINK_CSS', TL_THEME_CSS_DIR . TL_CSS_MAIN);
[116] Fix | Delete
define('TL_PRINT_CSS', TL_THEME_CSS_DIR . TL_CSS_PRINT);
[117] Fix | Delete
[118] Fix | Delete
// name of your custom.css, place it in same folder that standard TL css
[119] Fix | Delete
// null or '' => do not use
[120] Fix | Delete
$tlCfg->custom_css = null;
[121] Fix | Delete
[122] Fix | Delete
[123] Fix | Delete
/** Include constants and magic numbers (users should not change it)*/
[124] Fix | Delete
require_once(TL_ABS_PATH . 'cfg' . DIRECTORY_SEPARATOR . 'const.inc.php');
[125] Fix | Delete
[126] Fix | Delete
[127] Fix | Delete
// ----------------------------------------------------------------------------
[128] Fix | Delete
/** @var string used to have (when needed) a possibility to identify different TL instances
[129] Fix | Delete
@since 1.9.4 used on mail subject when mail logger is used
[130] Fix | Delete
*/
[131] Fix | Delete
$tlCfg->instance_name = 'Main TestLink Instance';
[132] Fix | Delete
[133] Fix | Delete
// do not use blanks or special characters, use a short string
[134] Fix | Delete
$tlCfg->instance_id = 'TLM';
[135] Fix | Delete
[136] Fix | Delete
$tlCfg->gui->ux = 'tl-classic';
[137] Fix | Delete
[138] Fix | Delete
/**
[139] Fix | Delete
* Copied from MantisBT
[140] Fix | Delete
*
[141] Fix | Delete
* Prefix for all TestLink cookies
[142] Fix | Delete
* This should be an identifier which does not include spaces or periods,
[143] Fix | Delete
* and should be unique per TestLink installation, especially if
[144] Fix | Delete
* $tlCfg->cookie_path is not restricting the cookies' scope to the actual
[145] Fix | Delete
* TestLink directory.
[146] Fix | Delete
* @see $tlCfg->cookie->path
[147] Fix | Delete
* @global string $tlCfg->cookie->prefix
[148] Fix | Delete
*/
[149] Fix | Delete
$tlCfg->cookie->prefix = 'TESTLINK1920';
[150] Fix | Delete
[151] Fix | Delete
/**
[152] Fix | Delete
* @link http://php.net/function.setcookie
[153] Fix | Delete
*
[154] Fix | Delete
*/
[155] Fix | Delete
$tlCfg->cookie->expire = (time()+60*60*24*30); // 30 days;
[156] Fix | Delete
$tlCfg->cookie->domain = '';
[157] Fix | Delete
$tlCfg->cookie->secure = false;
[158] Fix | Delete
$tlCfg->cookie->httponly = false;
[159] Fix | Delete
[160] Fix | Delete
$tlCfg->cookie->testProjectMemory = $tlCfg->cookie->prefix .
[161] Fix | Delete
'_PROJ_ID_USER_ID_';
[162] Fix | Delete
[163] Fix | Delete
/**
[164] Fix | Delete
* Copied from MantisBT
[165] Fix | Delete
*
[166] Fix | Delete
* Specifies the path under which a cookie is visible
[167] Fix | Delete
* All scripts in this directory and its sub-directories will be able
[168] Fix | Delete
* to access TestLink cookies.
[169] Fix | Delete
* It is recommended to set this to the actual TestLink path.
[170] Fix | Delete
* @link http://php.net/function.setcookie
[171] Fix | Delete
* @global string $tlCfg->cookie->path
[172] Fix | Delete
*/
[173] Fix | Delete
$tlCfg->cookie->path = '/';
[174] Fix | Delete
[175] Fix | Delete
[176] Fix | Delete
/* [ROLE INHERITANCE] */
[177] Fix | Delete
/**
[178] Fix | Delete
* possible values
[179] Fix | Delete
*
[180] Fix | Delete
* 'testproject'
[181] Fix | Delete
* 'global'
[182] Fix | Delete
*
[183] Fix | Delete
* 'testproject'
[184] Fix | Delete
* till a role is specifically assigned to test plan, test plan role
[185] Fix | Delete
* will be inherited from test project role.
[186] Fix | Delete
*
[187] Fix | Delete
* IMPORTANT NOTICE
[188] Fix | Delete
* test project role can be specifically assigned or inherited from
[189] Fix | Delete
* user's global role.
[190] Fix | Delete
*
[191] Fix | Delete
* if test project specifically assigned role changes, and test plan role was inherited, then it will also changes, due to inheritance.
[192] Fix | Delete
*
[193] Fix | Delete
*
[194] Fix | Delete
* 'global'
[195] Fix | Delete
* till a role is specifically assigned to test plan, test plan role
[196] Fix | Delete
* will be inherited from user's global role, and NOT from test project
[197] Fix | Delete
* specifically assigned role.
[198] Fix | Delete
*
[199] Fix | Delete
* if test project specifically assigned role changes, will not be changed.
[200] Fix | Delete
*
[201] Fix | Delete
*/
[202] Fix | Delete
$tlCfg->testplan_role_inheritance_mode = 'testproject';
[203] Fix | Delete
[204] Fix | Delete
[205] Fix | Delete
/* [LOCALIZATION] */
[206] Fix | Delete
[207] Fix | Delete
/** @var string Default localization for users */
[208] Fix | Delete
// The value must be available in $$tlCfg->locales (see cfg/const.inc.php).
[209] Fix | Delete
// Note: An attempt will be done to establish the default locale
[210] Fix | Delete
// automatically using $_SERVER['HTTP_ACCEPT_LANGUAGE']
[211] Fix | Delete
$tlCfg->default_language = 'en_GB';
[212] Fix | Delete
[213] Fix | Delete
/**
[214] Fix | Delete
* @var string Charset 'UTF-8' is only officially supported charset (Require
[215] Fix | Delete
* MySQL version >= 4.1) 'ISO-8859-1' or another Charset could be set for
[216] Fix | Delete
* backward compatability by experienced users. However we have not resources
[217] Fix | Delete
* to support such patches.
[218] Fix | Delete
**/
[219] Fix | Delete
$tlCfg->charset = 'UTF-8';
[220] Fix | Delete
[221] Fix | Delete
/**
[222] Fix | Delete
* @var string characters used to surround a description in the user interface
[223] Fix | Delete
* (for example role)
[224] Fix | Delete
**/
[225] Fix | Delete
$tlCfg->gui_separator_open = '[';
[226] Fix | Delete
$tlCfg->gui_separator_close = ']';
[227] Fix | Delete
$tlCfg->gui_room = '[ %s ]';
[228] Fix | Delete
[229] Fix | Delete
/** @var string Title separators are used when componing an title using several strings */
[230] Fix | Delete
$tlCfg->gui_title_separator_1 = ' : '; // object : name (Test Specification : My best product)
[231] Fix | Delete
$tlCfg->gui_title_separator_2 = ' - '; // parent - child
[232] Fix | Delete
[233] Fix | Delete
/**
[234] Fix | Delete
* @var string delimiter used to create DOC ID in this way:
[235] Fix | Delete
* <test_project_Prefix> . g_testcase_cfg->glue_character . <doc_id>
[236] Fix | Delete
* Could not be empty
[237] Fix | Delete
*/
[238] Fix | Delete
$tlCfg->testcase_cfg->glue_character = '-';
[239] Fix | Delete
[240] Fix | Delete
/**
[241] Fix | Delete
* fonts set used to draw charts
[242] Fix | Delete
**/
[243] Fix | Delete
$tlCfg->charts_font_path = TL_ABS_PATH . "third_party/pchart/Fonts/tahoma.ttf";
[244] Fix | Delete
/**
[245] Fix | Delete
* font size used to draw charts
[246] Fix | Delete
**/
[247] Fix | Delete
$tlCfg->charts_font_size = 8;
[248] Fix | Delete
[249] Fix | Delete
[250] Fix | Delete
// ----------------------------------------------------------------------------
[251] Fix | Delete
/* [SERVER ENVIRONMENT] */
[252] Fix | Delete
[253] Fix | Delete
[254] Fix | Delete
/**
[255] Fix | Delete
* TICKET 4969: Add Setting to Force HTTPS
[256] Fix | Delete
*/
[257] Fix | Delete
$tlCfg->force_https = false;
[258] Fix | Delete
[259] Fix | Delete
[260] Fix | Delete
/**
[261] Fix | Delete
* @var integer Set the session timeout for inactivity [minutes].
[262] Fix | Delete
* Default high value disables this feature.
[263] Fix | Delete
*/
[264] Fix | Delete
$tlCfg->sessionInactivityTimeout = 9900;
[265] Fix | Delete
[266] Fix | Delete
/**
[267] Fix | Delete
* Set the session timeout value (in minutes).
[268] Fix | Delete
* This will prevent sessions timing out after very short periods of time
[269] Fix | Delete
* Warning: your server could block this settings
[270] Fix | Delete
**/
[271] Fix | Delete
//ini_set('session.cache_expire',900);
[272] Fix | Delete
[273] Fix | Delete
/**
[274] Fix | Delete
* Set the session garbage collection timeout value (in seconds)
[275] Fix | Delete
* The default session garbage collection in php is set to 1440 seconds (24 minutes)
[276] Fix | Delete
* If you want sessions to last longer this must be set to a higher value.
[277] Fix | Delete
* You may need to set this in your global php.ini if the settings don't take effect.
[278] Fix | Delete
*/
[279] Fix | Delete
//ini_set('session.gc_maxlifetime', 60*90);
[280] Fix | Delete
[281] Fix | Delete
$tlCfg->notifications->userSignUp = new stdClass();
[282] Fix | Delete
$tlCfg->notifications->userSignUp->enabled = TRUE; // @see notifyGlobalAdmins()
[283] Fix | Delete
$tlCfg->notifications->userSignUp->to = new stdClass();
[284] Fix | Delete
$tlCfg->notifications->userSignUp->to->roles = array(TL_ROLES_ADMIN);
[285] Fix | Delete
$tlCfg->notifications->userSignUp->to->users = null; // i.e. array('login01','login02');
[286] Fix | Delete
[287] Fix | Delete
// ----------------------------------------------------------------------------
[288] Fix | Delete
/* [LOGGING] */
[289] Fix | Delete
[290] Fix | Delete
/** Error reporting - do we want php errors to show up for users */
[291] Fix | Delete
/** configure on custom_config.inc.php */
[292] Fix | Delete
/** error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING); */
[293] Fix | Delete
/** error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); */
[294] Fix | Delete
error_reporting(E_ALL);
[295] Fix | Delete
[296] Fix | Delete
/** @var string Default level of logging (NONE, ERROR, INFO, DEBUG, EXTENDED)
[297] Fix | Delete
* is not used by tlLogger, we need to change this in future.
[298] Fix | Delete
*/
[299] Fix | Delete
$tlCfg->log_level = 'ERROR';
[300] Fix | Delete
[301] Fix | Delete
/** @var boolean show smarty debug window */
[302] Fix | Delete
$tlCfg->smarty_debug = false;
[303] Fix | Delete
[304] Fix | Delete
/**
[305] Fix | Delete
* @var string Path to store logs -
[306] Fix | Delete
* for security reasons (see http://itsecuritysolutions.org/2012-08-13-TestLink-1.9.3-multiple-vulnerabilities/)
[307] Fix | Delete
* put it out of reach via web or configure access denied.
[308] Fix | Delete
*/
[309] Fix | Delete
$tlCfg->log_path = '[[softpath]]/logs/'; /* unix example */
[310] Fix | Delete
if (($lp = getenv('TESTLINK_LOG_PATH'))) {
[311] Fix | Delete
$tlCfg->log_path = trim($lp);
[312] Fix | Delete
}
[313] Fix | Delete
[314] Fix | Delete
/**
[315] Fix | Delete
* @var string How to warning user when security weak points exists.
[316] Fix | Delete
*
[317] Fix | Delete
* 'SCREEN': messages will displayed on login screen, and tl desktop
[318] Fix | Delete
* 'FILE': a file with a list is created but users are not notified via GUI
[319] Fix | Delete
* user will receive a message on screen. (default)
[320] Fix | Delete
* 'SILENT': same that FILE, but user will not receive message on screen.
[321] Fix | Delete
*/
[322] Fix | Delete
$tlCfg->config_check_warning_mode = 'SILENT';
[323] Fix | Delete
[324] Fix | Delete
/**
[325] Fix | Delete
* ONCE_FOR_SESSION
[326] Fix | Delete
* ALWAYS
[327] Fix | Delete
*/
[328] Fix | Delete
$tlCfg->config_check_warning_frequence = 'ONCE_FOR_SESSION';
[329] Fix | Delete
[330] Fix | Delete
/**
[331] Fix | Delete
*
[332] Fix | Delete
*/
[333] Fix | Delete
$tlCfg->userDocOnDesktop = OFF;
[334] Fix | Delete
[335] Fix | Delete
[336] Fix | Delete
/**
[337] Fix | Delete
* Configure if individual logging data stores are enabled of disabled
[338] Fix | Delete
* Possibile values to identify loggers: 'db','file'
[339] Fix | Delete
* $g_loggerCfg=null; all loggers enabled
[340] Fix | Delete
* $g_loggerCfg['db']['enable']=true/false;
[341] Fix | Delete
* $g_loggerCfg['file']['enable']=true/false;
[342] Fix | Delete
* $g_loggerCfg['mail']['enable']=true/false;
[343] Fix | Delete
*/
[344] Fix | Delete
$g_loggerCfg = array('mail' => array('enable' => false));
[345] Fix | Delete
[346] Fix | Delete
/** @var integer All events older this value [days] are removed from the db, during login */
[347] Fix | Delete
$g_removeEventsOlderThan = 30;
[348] Fix | Delete
[349] Fix | Delete
[350] Fix | Delete
/** @var map keys: 'all' + values present on proprety of logger class $loggerTypeDomain
[351] Fix | Delete
* values can be only these defined on logger.class.php
[352] Fix | Delete
* @since 1.9.4
[353] Fix | Delete
* example array('all' => array('INFO','AUDIT'),
[354] Fix | Delete
* 'mail' => array('ERROR'))
[355] Fix | Delete
*
[356] Fix | Delete
* $tlCfg->loggerFilter = array('db' => array('DEBUG','AUDIT','WARNING','ERROR'),
[357] Fix | Delete
* 'file' => array('NONE'));
[358] Fix | Delete
*
[359] Fix | Delete
*/
[360] Fix | Delete
$tlCfg->loggerFilter = null; // default defined on logger.class.php ;
[361] Fix | Delete
[362] Fix | Delete
// ----------------------------------------------------------------------------
[363] Fix | Delete
/* [SMTP] */
[364] Fix | Delete
[365] Fix | Delete
/**
[366] Fix | Delete
* @var string SMTP server name or IP address ("localhost" should work in the most cases)
[367] Fix | Delete
* Configure using custom_config.inc.php
[368] Fix | Delete
* @uses lib/functions/email_api.php
[369] Fix | Delete
*/
[370] Fix | Delete
$g_smtp_host = '[smtp_host_not_configured]'; # SMTP server MUST BE configured
[371] Fix | Delete
[372] Fix | Delete
# Configure using custom_config.inc.php
[373] Fix | Delete
$g_tl_admin_email = '[testlink_sysadmin_email_not_configured]'; # for problem/error notification
[374] Fix | Delete
$g_from_email = '[from_email_not_configured]'; # email sender
[375] Fix | Delete
$g_return_path_email = '[return_path_email_not_configured]';
[376] Fix | Delete
[377] Fix | Delete
/**
[378] Fix | Delete
* Email notification priority (low by default)
[379] Fix | Delete
* Urgent = 1, Not Urgent = 5, Disable = 0
[380] Fix | Delete
**/
[381] Fix | Delete
$g_mail_priority = 5;
[382] Fix | Delete
[383] Fix | Delete
/**
[384] Fix | Delete
* Taken from mantis for phpmailer config
[385] Fix | Delete
* select the method to mail by:
[386] Fix | Delete
* PHPMAILER_METHOD_MAIL - mail()
[387] Fix | Delete
* PHPMAILER_METHOD_SENDMAIL - sendmail
[388] Fix | Delete
* PHPMAILER_METHOD_SMTP - SMTP
[389] Fix | Delete
*/
[390] Fix | Delete
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
[391] Fix | Delete
[392] Fix | Delete
/** Configure only if SMTP server requires authentication */
[393] Fix | Delete
$g_smtp_username = ''; # user
[394] Fix | Delete
$g_smtp_password = ''; # password
[395] Fix | Delete
[396] Fix | Delete
/**
[397] Fix | Delete
* This control the connection mode to SMTP server.
[398] Fix | Delete
* Can be '', 'ssl','tls'
[399] Fix | Delete
* @global string $g_smtp_connection_mode
[400] Fix | Delete
*/
[401] Fix | Delete
$g_smtp_connection_mode = '';
[402] Fix | Delete
[403] Fix | Delete
/**
[404] Fix | Delete
* The smtp port to use. The typical SMTP ports are 25 and 587. The port to use
[405] Fix | Delete
* will depend on the SMTP server configuration and hence others may be used.
[406] Fix | Delete
* @global int $g_smtp_port
[407] Fix | Delete
*/
[408] Fix | Delete
$g_smtp_port = 25;
[409] Fix | Delete
[410] Fix | Delete
[411] Fix | Delete
/**
[412] Fix | Delete
* @see https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[413] Fix | Delete
* Opportunistic TLS
[414] Fix | Delete
*/
[415] Fix | Delete
$g_SMTPAutoTLS = false;
[416] Fix | Delete
[417] Fix | Delete
// ----------------------------------------------------------------------------
[418] Fix | Delete
/* [User Authentication] */
[419] Fix | Delete
[420] Fix | Delete
/**
[421] Fix | Delete
* Login authentication method:
[422] Fix | Delete
* 'MD5' => use password stored on db => will be deprecated and DB used.
[423] Fix | Delete
* 'DB' => Same as MD5 use password stored on db
[424] Fix | Delete
* 'LDAP' => use password from LDAP Server
[425] Fix | Delete
*/
[426] Fix | Delete
$tlCfg->authentication['domain'] = array('DB' => array('description' => 'DB', 'allowPasswordManagement' => true) ,
[427] Fix | Delete
'LDAP' => array('description' => 'LDAP', 'allowPasswordManagement' => false) );
[428] Fix | Delete
[429] Fix | Delete
/* Default Authentication method */
[430] Fix | Delete
$tlCfg->authentication['method'] = 'DB';
[431] Fix | Delete
[432] Fix | Delete
// Applies only if authentication methos is DB.
[433] Fix | Delete
// Used when:
[434] Fix | Delete
// 1. user sign up
[435] Fix | Delete
//
[436] Fix | Delete
// null => only check password IS NOT EMPTY
[437] Fix | Delete
//
[438] Fix | Delete
// $tlCfg->passwordChecks = array('minlen' => 8,'maxlen' => 20,'number' => true,'letter' => true,
[439] Fix | Delete
// 'capital' => true, 'symbol' => true);
[440] Fix | Delete
$tlCfg->passwordChecks = null;
[441] Fix | Delete
[442] Fix | Delete
// Applies ONLY to the HTML input.
[443] Fix | Delete
// If auth method is DB, password will be stored as MD5 HASH that requires 32 chars (128 bits)
[444] Fix | Delete
$tlCfg->loginPagePasswordMaxLenght = 40;
[445] Fix | Delete
[446] Fix | Delete
/**
[447] Fix | Delete
* Standard logout url, used also when SSO is used and hint to skip SSO is used.
[448] Fix | Delete
* '' => use standard TestLink page
[449] Fix | Delete
*/
[450] Fix | Delete
$tlCfg->logoutUrl = '';
[451] Fix | Delete
[452] Fix | Delete
// users that will not allow expiration date management on GUI
[453] Fix | Delete
$tlCfg->noExpDateUsers = array('admin');
[454] Fix | Delete
[455] Fix | Delete
[456] Fix | Delete
/**
[457] Fix | Delete
* OAUTH auth
[458] Fix | Delete
* Configure this on custom_config.inc.php
[459] Fix | Delete
*/
[460] Fix | Delete
[461] Fix | Delete
$tlCfg->OAuthServers = array();
[462] Fix | Delete
[463] Fix | Delete
// Google
[464] Fix | Delete
// $tlCfg->OAuthServers = array();
[465] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_enabled'] = true;
[466] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_name'] = 'google';
[467] Fix | Delete
[468] Fix | Delete
// Get from /gui/themes/default/images
[469] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_client_id'] = 'CLIENT_ID';
[470] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_client_secret'] = 'CLIENT_SECRET';
[471] Fix | Delete
// Can be authorization_code (by default), client_credentials or password
[472] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_grant_type'] = 'authorization_code';
[473] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_url'] = 'https://accounts.google.com/o/oauth2/auth';
[474] Fix | Delete
// $tlCfg->OAuthServers[1]['token_url'] = 'https://accounts.google.com/o/oauth2/token';
[475] Fix | Delete
// false => then the only user will be selected automatically (applied for google)
[476] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_force_single'] = false;
[477] Fix | Delete
// the domain you want to whitelist
[478] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_domain'] = 'google.com';
[479] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_profile'] = 'https://www.googleapis.com/oauth2/v1/userinfo';
[480] Fix | Delete
// $tlCfg->OAuthServers[1]['oauth_scope'] = 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile';
[481] Fix | Delete
[482] Fix | Delete
// Github
[483] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_enabled'] = true;
[484] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_name'] = 'github';
[485] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_client_id'] = 'CLIENT_ID';
[486] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_client_secret'] = 'CLIENT_SECRET';
[487] Fix | Delete
[488] Fix | Delete
// Can be authorization_code (by default), client_credentials or password
[489] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_grant_type'] = 'authorization_code';
[490] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_url'] = 'https://github.com/login/oauth/authorize';
[491] Fix | Delete
[492] Fix | Delete
// $tlCfg->OAuthServers[2]['token_url'] = 'https://github.com/login/oauth/access_token';
[493] Fix | Delete
// false => then the only user will be selected automatically (applied for google)
[494] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_force_single'] = false;
[495] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_profile'] = 'https://api.github.com/user';
[496] Fix | Delete
// $tlCfg->OAuthServers[2]['oauth_scope'] = 'user:email';
[497] Fix | Delete
[498] Fix | Delete
//Microsoft
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function