Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../forma
File: config.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* FORMA - The E-Learning Suite
[3] Fix | Delete
*
[4] Fix | Delete
* Copyright (c) 2013-2023 (Forma)
[5] Fix | Delete
* https://www.formalms.org
[6] Fix | Delete
* License https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
[7] Fix | Delete
*
[8] Fix | Delete
* from docebo 4.0.5 CE 2008-2012 (c) docebo
[9] Fix | Delete
* License https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
defined('IN_FORMA') or exit('Direct access is forbidden.');
[13] Fix | Delete
[14] Fix | Delete
/*
[15] Fix | Delete
* Db info
[16] Fix | Delete
* -------------------------------------------------------------------------
[17] Fix | Delete
* db type, mysqli is supported
[18] Fix | Delete
* db server address
[19] Fix | Delete
* db user name
[20] Fix | Delete
* db user password
[21] Fix | Delete
* db name
[22] Fix | Delete
* charset to use in the db connection
[23] Fix | Delete
*/
[24] Fix | Delete
$cfg['db_type'] = 'mysqli';
[25] Fix | Delete
$cfg['db_host'] = '[[softdbhost]]';
[26] Fix | Delete
$cfg['db_user'] = '[[softdbuser]]';
[27] Fix | Delete
$cfg['db_pass'] = '[[softdbpass]]';
[28] Fix | Delete
$cfg['db_name'] = '[[softdb]]';
[29] Fix | Delete
$cfg['db_charset'] = 'utf8';
[30] Fix | Delete
[31] Fix | Delete
/*
[32] Fix | Delete
* Tables prefix
[33] Fix | Delete
* -------------------------------------------------------------------------
[34] Fix | Delete
* prefix for the core tables
[35] Fix | Delete
* prefix for the lms tables
[36] Fix | Delete
* prefix for the cms tables
[37] Fix | Delete
* prefix for the scs tables
[38] Fix | Delete
* prefix for the ecom tables
[39] Fix | Delete
* prefix for the ecom tables
[40] Fix | Delete
*/
[41] Fix | Delete
$cfg['prefix_fw'] = 'core';
[42] Fix | Delete
$cfg['prefix_lms'] = 'learning';
[43] Fix | Delete
$cfg['prefix_cms'] = 'cms';
[44] Fix | Delete
$cfg['prefix_scs'] = 'conference';
[45] Fix | Delete
$cfg['prefix_ecom'] = 'ecom';
[46] Fix | Delete
$cfg['prefix_crm'] = 'crm';
[47] Fix | Delete
[48] Fix | Delete
[49] Fix | Delete
/*
[50] Fix | Delete
* External smtp config
[51] Fix | Delete
* -------------------------------------------------------------------------
[52] Fix | Delete
*/
[53] Fix | Delete
$cfg['use_smtp_database'] = 'off';
[54] Fix | Delete
$cfg['use_smtp'] = 'off';
[55] Fix | Delete
$cfg['smtp_host'] = ''; // Options: hostname;hostname:port;...
[56] Fix | Delete
$cfg['smtp_port'] = ''; // Options: '' (default port) , port number
[57] Fix | Delete
$cfg['smtp_secure'] = ''; // Options: "", "ssl", "tls"
[58] Fix | Delete
$cfg['smtp_auto_tls'] = ''; // Options: true, false
[59] Fix | Delete
$cfg['smtp_user'] = '';
[60] Fix | Delete
$cfg['smtp_pwd'] = '';
[61] Fix | Delete
$cfg['smtp_debug'] = '0'; // Options: debug level 0,1,2,3,...
[62] Fix | Delete
[63] Fix | Delete
/*
[64] Fix | Delete
* Other params
[65] Fix | Delete
* -------------------------------------------------------------------------
[66] Fix | Delete
* timezone = default site timezone , if not specified get default from php.ini date.timezone
[67] Fix | Delete
* for valid timezone see http://www.php.net/manual/en/timezones.php
[68] Fix | Delete
* set_mysql_tz = set mysql timezone same as php timezone , valid value
[69] Fix | Delete
* true = set , false = (default) not set
[70] Fix | Delete
* keepalive = set TMO for keepalive scorm tracking. must be < session lifetime, 0 to disable keepalive
[71] Fix | Delete
* default session lifetime - 15 sec
[72] Fix | Delete
* enable_customscripts = enable custom scripts processing; accepted vaule: true , false ; default false
[73] Fix | Delete
*
[74] Fix | Delete
*/
[75] Fix | Delete
[76] Fix | Delete
//$cfg['timezone'] = 'Europe/Rome'; // define if different from php.ini setting
[77] Fix | Delete
//$cfg['set_mysql_tz'] = false; // set mysql timezone same as php timezone , default false
[78] Fix | Delete
[79] Fix | Delete
//$cfg['keepalivetmo'] = ''; // timeout for keepalive, must be < session lifetime, 0 to disable keepalive
[80] Fix | Delete
[81] Fix | Delete
//$cfg['enable_customscripts'] = false; // enable custom scripts processing; accepted value: true , false ; default false
[82] Fix | Delete
[83] Fix | Delete
/*
[84] Fix | Delete
* Template engine custom param
[85] Fix | Delete
* -------------------------------------------------------------------------
[86] Fix | Delete
* add all template_engine enabled (if exists)
[87] Fix | Delete
* parameter : array value=file extension
[88] Fix | Delete
* template_engine available: twig
[89] Fix | Delete
*
[90] Fix | Delete
* If not defined no alternate template engine. Twig is enabled on default
[91] Fix | Delete
*/
[92] Fix | Delete
$cfg['template_engine']['twig'] = ['ext' => '.html.twig'];
[93] Fix | Delete
$cfg['twig_debug'] = false;
[94] Fix | Delete
[95] Fix | Delete
/*
[96] Fix | Delete
* Session custom param
[97] Fix | Delete
* -------------------------------------------------------------------------
[98] Fix | Delete
* debug is enabled ?
[99] Fix | Delete
* session must survive at least X seconds
[100] Fix | Delete
* session save_path if specified will be used instead of the defaul one
[101] Fix | Delete
*/
[102] Fix | Delete
$cfg['do_debug'] = false; //false || (bool)getenv('DO_DEBUG');
[103] Fix | Delete
//$cfg['debug_level'] = 'all' || (bool)getenv('DEBUG_LEVEL'); //error,warning,notice,deprecated else all
[104] Fix | Delete
//$cfg['enable_log'] = true;
[105] Fix | Delete
//$cfg['log_level'] = Monolog\Logger::DEBUG; //
[106] Fix | Delete
//$cfg['log_path'] = '/app/logger.log';
[107] Fix | Delete
$cfg['demo_mode'] = false;
[108] Fix | Delete
[109] Fix | Delete
//$cfg['session']['handler'] = \FormaLms\lib\Session\SessionManager::FILESYSTEM; //filesystem | memcached | redis | pdo | mongodb
[110] Fix | Delete
//$cfg['session']['url'] = '';
[111] Fix | Delete
//$cfg['session']['timeout'] = (float)'2.5';
[112] Fix | Delete
//$cfg['session']['lifetime'] = (int) 3600; //session lifetime
[113] Fix | Delete
//$cfg['session']['prefix'] = 'core_sessions'; //session prefix or session table name in case of pdo
[114] Fix | Delete
//$cfg['session']['name'] = $cfg['db_name']; //db name
[115] Fix | Delete
//$cfg['session']['port'] = 3306; // process port session handler
[116] Fix | Delete
//$cfg['session']['host'] = $cfg['db_host']; //host
[117] Fix | Delete
//$cfg['session']['authentication'] = true; //true | false
[118] Fix | Delete
//$cfg['session']['user'] = $cfg['db_user']; // authentication user session handler
[119] Fix | Delete
//$cfg['session']['pass'] = $cfg['db_pass']; // authentication psw session handler
[120] Fix | Delete
//$cfg['session']['options'] = []; // other options key value array to pass based on selected handler
[121] Fix | Delete
//$cfg['session']['cookieName'] = '__Secure-FORMALMS';
[122] Fix | Delete
/*
[123] Fix | Delete
* Technical preferences
[124] Fix | Delete
* -------------------------------------------------------------------------
[125] Fix | Delete
* filter_tool: the class for input filtering that you want to use
[126] Fix | Delete
* mail_br: used in mail composition (no longer needed?)
[127] Fix | Delete
*/
[128] Fix | Delete
$cfg['filter_tool'] = 'htmlpurifier';
[129] Fix | Delete
$cfg['mail_br'] = "\r\n";
[130] Fix | Delete
[131] Fix | Delete
/*
[132] Fix | Delete
* Certificate Encryption
[133] Fix | Delete
* -------------------------------------------------------------------------
[134] Fix | Delete
* certificate_encryption: boolean to set whether to enable or not the pdf encryption of certificates (default is TRUE)
[135] Fix | Delete
* certificate_password: password to use when encryption is enabled. It must be exactly 32 chars! (default is a random generated one)
[136] Fix | Delete
*/
[137] Fix | Delete
//$cfg['certificate_encryption'] = true;
[138] Fix | Delete
//$cfg['certificate_password'] = "12345678901234567890123456789012";
[139] Fix | Delete
[140] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function