Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../chamilo
File: configuration.php
<?php
[0] Fix | Delete
// Chamilo version 1.11.28
[1] Fix | Delete
// File generated by /install/index.php script - [[DATE_GENERATED]]
[2] Fix | Delete
/* For licensing terms, see /license.txt */
[3] Fix | Delete
/**
[4] Fix | Delete
* This file contains a list of variables that can be modified by the campus site's server administrator.
[5] Fix | Delete
* Pay attention when changing these variables, some changes may cause Chamilo to stop working.
[6] Fix | Delete
* If you changed some settings and want to restore them, please have a look at
[7] Fix | Delete
* configuration.dist.php. That file is an exact copy of the config file at install time.
[8] Fix | Delete
* Besides the $_configuration, a $_settings array also exists, that
[9] Fix | Delete
* contains variables that can be changed and will not break the platform.
[10] Fix | Delete
* These optional settings are defined in the database, now
[11] Fix | Delete
* (table settings_current).
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
// Database connection settings.
[15] Fix | Delete
$_configuration['db_host'] = '[[softdbhost]]';
[16] Fix | Delete
$_configuration['db_port'] = '3306';
[17] Fix | Delete
$_configuration['main_database'] = '[[softdb]]';
[18] Fix | Delete
$_configuration['db_user'] = '[[softdbuser]]';
[19] Fix | Delete
$_configuration['db_password'] = '[[softdbpass]]';
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Directory settings.
[23] Fix | Delete
*/
[24] Fix | Delete
// URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
[25] Fix | Delete
$_configuration['root_web'] = '[[softurl]]/';
[26] Fix | Delete
// Path to the webroot of system, example: /var/www/
[27] Fix | Delete
$_configuration['root_sys'] = '[[softpath]]/';
[28] Fix | Delete
// Path from your WWW-root to the root of your Chamilo installation,
[29] Fix | Delete
// example: chamilo (this means chamilo is installed in /var/www/chamilo/
[30] Fix | Delete
$_configuration['url_append'] = '';
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* Login modules settings.
[34] Fix | Delete
*/
[35] Fix | Delete
// CAS IMPLEMENTATION
[36] Fix | Delete
// -> Go to your portal Chamilo > Administration > CAS to activate CAS
[37] Fix | Delete
// You can leave these lines uncommented even if you don't use CAS authentification
[38] Fix | Delete
//$extAuthSource["cas"]["login"] = $_configuration['root_sys']."main/auth/cas/login.php";
[39] Fix | Delete
//$extAuthSource["cas"]["newUser"] = $_configuration['root_sys']."main/auth/cas/newUser.php";
[40] Fix | Delete
[41] Fix | Delete
// Map CAS attributes with user/user extrafields values BT#17620
[42] Fix | Delete
/*$_configuration['cas_user_map'] = [
[43] Fix | Delete
'fields' => [
[44] Fix | Delete
'email' => 'mail',
[45] Fix | Delete
'firstname' => 'cn',
[46] Fix | Delete
'lastname' => 'sn',
[47] Fix | Delete
'active' => 'disabled',
[48] Fix | Delete
'status' => 'role',
[49] Fix | Delete
],
[50] Fix | Delete
'extra' => [
[51] Fix | Delete
'isFromNewLogin',
[52] Fix | Delete
'authenticationDate',
[53] Fix | Delete
'successfulAuthenticationHandlers',
[54] Fix | Delete
'created_by',
[55] Fix | Delete
'credentialType',
[56] Fix | Delete
'uid',
[57] Fix | Delete
'authenticationMethod',
[58] Fix | Delete
'longTermAuthenticationRequestTokenUsed',
[59] Fix | Delete
],
[60] Fix | Delete
'replace' => [
[61] Fix | Delete
'role' => [
[62] Fix | Delete
'STUDENT' => 5,
[63] Fix | Delete
'GUEST' => 5,
[64] Fix | Delete
'HEI_COORD' => 1,
[65] Fix | Delete
'SCHOOL_COORD' => 1,
[66] Fix | Delete
'HEI_TUTOR' => 1,
[67] Fix | Delete
'SCHOOL_TUTOR' => 1,
[68] Fix | Delete
'ADMIN' => 11,
[69] Fix | Delete
],
[70] Fix | Delete
],
[71] Fix | Delete
];*/
[72] Fix | Delete
[73] Fix | Delete
// NEW LDAP IMPLEMENTATION BASED ON external_login info
[74] Fix | Delete
// -> Uncomment the two lines bellow to activate LDAP AND edit app/config/auth.conf.php for configuration
[75] Fix | Delete
// $extAuthSource["extldap"]["login"] = $_configuration['root_sys']."main/auth/external_login/login.ldap.php";
[76] Fix | Delete
// $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.ldap.php";
[77] Fix | Delete
//
[78] Fix | Delete
// FACEBOOK IMPLEMENTATION BASED ON external_login info
[79] Fix | Delete
// -> Uncomment the line bellow to activate Facebook Auth AND edit app/config/auth.conf.php for configuration
[80] Fix | Delete
// $_configuration['facebook_auth'] = 1;
[81] Fix | Delete
//
[82] Fix | Delete
// OTHER EXTERNAL LOGIN INFORMATION
[83] Fix | Delete
// To fetch external login information, uncomment those 2 lines and modify the following files: auth/external_login/newUser.php and auth/external_login/updateUser.php
[84] Fix | Delete
// $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.php";
[85] Fix | Delete
// $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys']."main/auth/external_login/updateUser.php";
[86] Fix | Delete
[87] Fix | Delete
/**
[88] Fix | Delete
* Hosting settings - Allows you to set limits to the Chamilo portal when
[89] Fix | Delete
* hosting it for a third party. These settings can be overwritten by an
[90] Fix | Delete
* optionally-loaded extension file with only the settings (no comments).
[91] Fix | Delete
* The settings use an index at the first level to represent the ID of the
[92] Fix | Delete
* URL in case you use multi-url (otherwise it will always use 1, which is
[93] Fix | Delete
* the ID of the only URL inside the access_url table).
[94] Fix | Delete
*/
[95] Fix | Delete
// Set a maximum number of users. Default (0) = no limit
[96] Fix | Delete
$_configuration[1]['hosting_limit_users'] = 0;
[97] Fix | Delete
// Set a maximum number of teachers. Default (0) = no limit
[98] Fix | Delete
$_configuration[1]['hosting_limit_teachers'] = 0;
[99] Fix | Delete
// Set a maximum number of courses. Default (0) = no limit
[100] Fix | Delete
$_configuration[1]['hosting_limit_courses'] = 0;
[101] Fix | Delete
// Set a maximum number of sessions. Default (0) = no limit
[102] Fix | Delete
$_configuration[1]['hosting_limit_sessions'] = 0;
[103] Fix | Delete
// Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
[104] Fix | Delete
// Default (0) = no limit
[105] Fix | Delete
$_configuration[1]['hosting_limit_disk_space'] = 0;
[106] Fix | Delete
// Set a maximum number of usable courses. Default (0) = no limit.
[107] Fix | Delete
// Should always be lower than the hosting_limit_courses.
[108] Fix | Delete
// If set, defining a course as "hidden" will free room for
[109] Fix | Delete
// new courses (up to the hosting_limit_courses, if any value is set there).
[110] Fix | Delete
// hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden.
[111] Fix | Delete
$_configuration[1]['hosting_limit_active_courses'] = 0;
[112] Fix | Delete
// Email to warn if limit was reached.
[113] Fix | Delete
//$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
[114] Fix | Delete
// Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
[115] Fix | Delete
// Check main/cron/hosting_total_size_limit.php for how to use this limit.
[116] Fix | Delete
$_configuration['hosting_total_size_limit'] = 0;
[117] Fix | Delete
[118] Fix | Delete
/**
[119] Fix | Delete
* Content Delivery Network (CDN) settings. Only use if you need a separate
[120] Fix | Delete
* server to serve your static data. If you don't know what a CDN is, you
[121] Fix | Delete
* don't need it. These settings are for simple Origin Pull CDNs and are
[122] Fix | Delete
* experimental. Enable only if you really know what you're doing.
[123] Fix | Delete
* This might conflict with multiple-access urls.
[124] Fix | Delete
* Please note that recent browsers forbid the loading of resources from
[125] Fix | Delete
* a different portal URL then where they are, due to CORS rules.
[126] Fix | Delete
* To allow for CDN usage with different URLs, you need to specifically
[127] Fix | Delete
* allow CORS Access-Control-Allow-Origin for your main Chamilo URL.
[128] Fix | Delete
* This has to be done at the web server level, because Chamilo's PHP code
[129] Fix | Delete
* doesn't change HTTP headers of all files served from the Chamilo directory.
[130] Fix | Delete
* To do that on Apache, use
[131] Fix | Delete
* Header set Access-Control-Allow-Origin "http(s)://main-chamilo-url"
[132] Fix | Delete
* in Nginx:
[133] Fix | Delete
* add_header 'Access-Control-Allow-Origin' 'http(s)://main-chamilo-url';.
[134] Fix | Delete
*/
[135] Fix | Delete
// Set the following setting to true to start using the CDN
[136] Fix | Delete
$_configuration['cdn_enable'] = false;
[137] Fix | Delete
// The following setting will be ignored if the previous one is set to false
[138] Fix | Delete
$_configuration['cdn'] = [
[139] Fix | Delete
// You can define several CDNs and split them by extensions
[140] Fix | Delete
// Replace the following by your full CDN URL, which should point to
[141] Fix | Delete
// your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
[142] Fix | Delete
'http://cdn.chamilo.org' => [
[143] Fix | Delete
'.css',
[144] Fix | Delete
'.js',
[145] Fix | Delete
'.jpg',
[146] Fix | Delete
'.jpeg',
[147] Fix | Delete
'.png',
[148] Fix | Delete
'.gif',
[149] Fix | Delete
'.avi',
[150] Fix | Delete
'.flv',
[151] Fix | Delete
],
[152] Fix | Delete
// copy the line above and modify following your needs
[153] Fix | Delete
];
[154] Fix | Delete
[155] Fix | Delete
/**
[156] Fix | Delete
* Misc. settings.
[157] Fix | Delete
*/
[158] Fix | Delete
// Security word for password recovery
[159] Fix | Delete
$_configuration['security_key'] = '[[SECURITY_KEY]]';
[160] Fix | Delete
// Hash function method
[161] Fix | Delete
$_configuration['password_encryption'] = 'sha1';
[162] Fix | Delete
// Set to true to allow automated password conversion after login if
[163] Fix | Delete
// password_encryption has changed since last login. See GH#4063 for details.
[164] Fix | Delete
//$_configuration['password_conversion'] = false;
[165] Fix | Delete
// You may have to restart your web server if you change this
[166] Fix | Delete
$_configuration['session_stored_in_db'] = false;
[167] Fix | Delete
// Session lifetime
[168] Fix | Delete
$_configuration['session_lifetime'] = 360000;
[169] Fix | Delete
// Activation for multi-url access
[170] Fix | Delete
// When enabling multi-url, settings can be configured by multi-url using a simple
[171] Fix | Delete
// sub-element. E.g. $_configuration['session_lifetime'][1] = true; could be turned into
[172] Fix | Delete
// something like $_configuration['session_lifetime'][2] = false; to affect only URL
[173] Fix | Delete
// with ID 2. The ID can be found in the access_url table.
[174] Fix | Delete
//$_configuration['multiple_access_urls'] = true;
[175] Fix | Delete
$_configuration['software_name'] = 'Chamilo';
[176] Fix | Delete
$_configuration['software_url'] = 'https://chamilo.org/';
[177] Fix | Delete
// Deny the elimination of users
[178] Fix | Delete
$_configuration['deny_delete_users'] = false;
[179] Fix | Delete
// Version settings
[180] Fix | Delete
$_configuration['system_version'] = '1.11.28';
[181] Fix | Delete
$_configuration['system_stable'] = true;
[182] Fix | Delete
[183] Fix | Delete
/**
[184] Fix | Delete
* Settings to be included as settings_current in future versions.
[185] Fix | Delete
*/
[186] Fix | Delete
// Uncomment the following to prevent all admins to use the "login as" feature
[187] Fix | Delete
//$_configuration['login_as_forbidden_globally'] = true;
[188] Fix | Delete
// If session_stored_in_db is false, an alternative session storage mechanism
[189] Fix | Delete
// can be used, which allows for a volatile storage in Memcache, and a more
[190] Fix | Delete
// permanent "backup" storage in the database, every once in a while (see
[191] Fix | Delete
// frequency). This is generally used in HA clusters configurations
[192] Fix | Delete
// This requires memcache or memcached and the php5-memcache module to be setup
[193] Fix | Delete
//$_configuration['session_stored_in_db_as_backup'] = true;
[194] Fix | Delete
// Define the different memcache servers available
[195] Fix | Delete
//$_configuration['memcache_server'] = array(
[196] Fix | Delete
// 0 => array(
[197] Fix | Delete
// 'host' => 'chamilo8',
[198] Fix | Delete
// 'port' => '11211',
[199] Fix | Delete
// ),
[200] Fix | Delete
// 1 => array(
[201] Fix | Delete
// 'host' => 'chamilo9',
[202] Fix | Delete
// 'port' => '11211',
[203] Fix | Delete
// ),
[204] Fix | Delete
//);
[205] Fix | Delete
// Define the frequency to which the data must be stored in the database
[206] Fix | Delete
//$_configuration['session_stored_after_n_times'] = 10;
[207] Fix | Delete
// If the database is down this css style will be used to show the errors.
[208] Fix | Delete
//$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
[209] Fix | Delete
// The default template that will be use in the system.
[210] Fix | Delete
//$_configuration['default_template'] = 'default'; // (main/template/default)
[211] Fix | Delete
// Hide fields in the main/user/user.php page
[212] Fix | Delete
//$_configuration['hide_user_field_from_list'] = ['fields' => ['username']];
[213] Fix | Delete
// Aspell Settings
[214] Fix | Delete
//$_configuration['aspell_bin'] = '/usr/bin/hunspell';
[215] Fix | Delete
//$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
[216] Fix | Delete
//$_configuration['aspell_temp_dir'] = './';
[217] Fix | Delete
// Custom name_order_conventions
[218] Fix | Delete
//$_configuration['name_order_conventions'] = array(
[219] Fix | Delete
// 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
[220] Fix | Delete
//);
[221] Fix | Delete
// Course log - Default columns to hide
[222] Fix | Delete
//$_configuration['course_log_hide_columns'] = ['columns' => [1, 9]];
[223] Fix | Delete
// Course log - User extra fields to show as columns for default
[224] Fix | Delete
//$_configuration['course_log_default_extra_fields'] = ['extra_fields' => ['office_address', 'office_phone_extension']];
[225] Fix | Delete
// Unoconv binary file
[226] Fix | Delete
//$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
[227] Fix | Delete
// Proxy settings for access external services
[228] Fix | Delete
/*$_configuration['proxy_settings'] = [
[229] Fix | Delete
'stream_context_create' => [
[230] Fix | Delete
'http' => [
[231] Fix | Delete
'proxy' => 'tcp://example.com:8080',
[232] Fix | Delete
'request_fulluri' => true
[233] Fix | Delete
]
[234] Fix | Delete
],
[235] Fix | Delete
'curl_setopt_array' => [
[236] Fix | Delete
'CURLOPT_PROXY' => 'http://example.com',
[237] Fix | Delete
'CURLOPT_PROXYPORT' => '8080'
[238] Fix | Delete
]
[239] Fix | Delete
];*/
[240] Fix | Delete
[241] Fix | Delete
// E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
[242] Fix | Delete
//$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
[243] Fix | Delete
[244] Fix | Delete
// Help desk emails that will recieve email notifications in import_csv.php
[245] Fix | Delete
//$_configuration['cron_notification_help_desk'] = array('email@example.com', 'email2@example.com');
[246] Fix | Delete
[247] Fix | Delete
// Only shows the fields in this list
[248] Fix | Delete
/*$_configuration['allow_fields_inscription'] = [
[249] Fix | Delete
'fields' => [
[250] Fix | Delete
'official_code',
[251] Fix | Delete
'phone',
[252] Fix | Delete
'status',
[253] Fix | Delete
'language'
[254] Fix | Delete
],
[255] Fix | Delete
'extra_fields' => [
[256] Fix | Delete
'birthday'
[257] Fix | Delete
]
[258] Fix | Delete
];*/
[259] Fix | Delete
// Boost option to ignore encoding check for learning paths
[260] Fix | Delete
//$_configuration['lp_fixed_encoding'] = 'false';
[261] Fix | Delete
// Fix urls changing http with https in scorm packages.
[262] Fix | Delete
//$_configuration['lp_replace_http_to_https'] = false;
[263] Fix | Delete
// Fix embedded videos inside lps, adding an optional popup
[264] Fix | Delete
//$_configuration['lp_fix_embed_content'] = false;
[265] Fix | Delete
// Check the prerequisite in lp of a quiz to use only the last score in the attempts
[266] Fix | Delete
// $_configuration['lp_prerequisite_use_last_attempt_only'] = false;
[267] Fix | Delete
// Manage deleted files marked with "DELETED" (by course and only by allowed by admin)
[268] Fix | Delete
//$_configuration['document_manage_deleted_files'] = false;
[269] Fix | Delete
// Hide tabs in the main/session/index.php page
[270] Fix | Delete
//$_configuration['session_hide_tab_list'] = array();
[271] Fix | Delete
// Show invisible exercise in LP list
[272] Fix | Delete
//$_configuration['show_invisible_exercise_in_lp_list'] = false;
[273] Fix | Delete
// Chamilo is installed/downloaded. Packagers can change this
[274] Fix | Delete
// to reflect their packaging method. The default value is 'chamilo'. This will
[275] Fix | Delete
// be reflected on the https://version.chamilo.org/stats page in the future.
[276] Fix | Delete
$_configuration['packager'] = 'Softaculous';
[277] Fix | Delete
// If true exercises added in LP can be modified.
[278] Fix | Delete
//$_configuration['force_edit_exercise_in_lp'] = false;
[279] Fix | Delete
// List of driver to plugin in ckeditor
[280] Fix | Delete
//$_configuration['editor_driver_list'] = ['PersonalDriver', 'CourseDriver'];
[281] Fix | Delete
// Hide send to hrm users options in announcements
[282] Fix | Delete
//$_configuration['announcements_hide_send_to_hrm_users'] = true;
[283] Fix | Delete
// Hide certificate link in index/userportal pages
[284] Fix | Delete
//$_configuration['hide_my_certificate_link'] = false;
[285] Fix | Delete
// Hide header and footer in certificate pdf
[286] Fix | Delete
//$_configuration['hide_header_footer_in_certificate'] = false;
[287] Fix | Delete
// Security: block direct access from logged in users to contents in OPEN (but not public) courses. Set to true to block
[288] Fix | Delete
//$_configuration['block_registered_users_access_to_open_course_contents'] = false;
[289] Fix | Delete
// Allows syncing the database with the current entity schema
[290] Fix | Delete
//$_configuration['sync_db_with_schema'] = false;
[291] Fix | Delete
// When exporting a LP, all files and folders in the same path of an html will be exported too.
[292] Fix | Delete
//$_configuration['add_all_files_in_lp_export'] = false;
[293] Fix | Delete
// Send exercise student score to manager in email notification
[294] Fix | Delete
//$_configuration['send_score_in_exam_notification_mail_to_manager'] = false;
[295] Fix | Delete
// Show blocked LPs by prerequisite to students
[296] Fix | Delete
//$_configuration['show_prerequisite_as_blocked'] = false;
[297] Fix | Delete
// Mail header extra HTML attributes
[298] Fix | Delete
//$_configuration['mail_header_style'] = '';
[299] Fix | Delete
// Mail body extra HTML attributes
[300] Fix | Delete
//$_configuration['mail_content_style'] = '';
[301] Fix | Delete
// Show all agenda events in personal agenda from all session no matter the visibility.
[302] Fix | Delete
//$_configuration['personal_agenda_show_all_session_events'] = false;
[303] Fix | Delete
// Allows to redirect to the session after the inscription in session about
[304] Fix | Delete
// $_configuration['allow_redirect_to_session_after_inscription_about'] = false;
[305] Fix | Delete
// Allows to do a remove_XSS in course introduction with user status COURSEMANAGERLOWSECURITY
[306] Fix | Delete
// in order to accept all embed type videos (like vimeo, wistia, etc)
[307] Fix | Delete
// $_configuration['course_introduction_html_strict_filtering'] = true;
[308] Fix | Delete
// Allows to do a remove_XSS in question of exersice with user status COURSEMANAGERLOWSECURITY
[309] Fix | Delete
// $_configuration['question_exercise_html_strict_filtering'] = true;
[310] Fix | Delete
// Allows to do a remove_XSS in exersice result end text with user status COURSEMANAGERLOWSECURITY
[311] Fix | Delete
// $_configuration['exercise_result_end_text_html_strict_filtering'] = true;
[312] Fix | Delete
// Allows to do a remove_XSS in wiki pages with user status COURSEMANAGERLOWSECURITY
[313] Fix | Delete
// $_configuration['wiki_html_strict_filtering'] = true;
[314] Fix | Delete
// Prevents the duplicate upload in assignments
[315] Fix | Delete
// $_configuration['assignment_prevent_duplicate_upload'] = false;
[316] Fix | Delete
//Show student progress in My courses page
[317] Fix | Delete
//$_configuration['course_student_info']['score'] = false;
[318] Fix | Delete
//$_configuration['course_student_info']['progress'] = false;
[319] Fix | Delete
//$_configuration['course_student_info']['certificate'] = false;
[320] Fix | Delete
// Set ConsideredWorkingTime work extra field variable to show in MyStudents page works report
[321] Fix | Delete
// (with internal id 'work_time' as below) and enable the following line to show in MyStudents page works report
[322] Fix | Delete
// $_configuration['considered_working_time'] = 'work_time';
[323] Fix | Delete
// Allow add/remove working time in reporting page
[324] Fix | Delete
// $_configuration['allow_working_time_edition'] = false;
[325] Fix | Delete
// During CSV special imports update users emails to x@example.com
[326] Fix | Delete
// $_configuration['update_users_email_to_dummy_except_admins'] = false;
[327] Fix | Delete
// Certification pdf export orientation
[328] Fix | Delete
// $_configuration['certificate_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape'
[329] Fix | Delete
// Hide main navigation menu (left column in userportal)
[330] Fix | Delete
// $_configuration['hide_main_navigation_menu'] = false;
[331] Fix | Delete
// PDF image dpi value. Default value 96
[332] Fix | Delete
// $_configuration['pdf_img_dpi'] = 96;
[333] Fix | Delete
// Hide LP time in reports.
[334] Fix | Delete
// $_configuration['hide_lp_time'] = false;
[335] Fix | Delete
// Hide rating elements in pages ("Courses catalog" & "Most Popular courses")
[336] Fix | Delete
// $_configuration['hide_course_rating'] = false;
[337] Fix | Delete
// Customize password generation and verification
[338] Fix | Delete
// For this configuration to be taken into account you need to set define('CHECK_PASS_EASY_TO_FIND', true); in app/config/profile.conf.php
[339] Fix | Delete
/*$_configuration['password_requirements'] = [
[340] Fix | Delete
'min' => [
[341] Fix | Delete
'lowercase' => 2,
[342] Fix | Delete
'uppercase' => 2,
[343] Fix | Delete
'numeric' => 2,
[344] Fix | Delete
'length' => 8,
[345] Fix | Delete
'specials' => 1,
[346] Fix | Delete
],
[347] Fix | Delete
'force_different_password' => false,
[348] Fix | Delete
];*/
[349] Fix | Delete
// Customize course session tracking columns
[350] Fix | Delete
/*
[351] Fix | Delete
$_configuration['tracking_columns'] = [
[352] Fix | Delete
'course_session' => [
[353] Fix | Delete
'course_title' => true,
[354] Fix | Delete
'published_exercises' => true,
[355] Fix | Delete
'new_exercises' => true,
[356] Fix | Delete
'my_average' => true,
[357] Fix | Delete
'average_exercise_result' => true,
[358] Fix | Delete
'time_spent' => true,
[359] Fix | Delete
'lp_progress' => true,
[360] Fix | Delete
'score' => true,
[361] Fix | Delete
'best_score' => true,
[362] Fix | Delete
'last_connection' => true,
[363] Fix | Delete
'details' => true,
[364] Fix | Delete
],
[365] Fix | Delete
'my_students_lp' => [
[366] Fix | Delete
'lp' => true,
[367] Fix | Delete
'time' => true,
[368] Fix | Delete
'best_score' => true,
[369] Fix | Delete
'latest_attempt_avg_score' => true,
[370] Fix | Delete
'progress' => true,
[371] Fix | Delete
'last_connection' => true,
[372] Fix | Delete
],
[373] Fix | Delete
'my_progress_lp' => [
[374] Fix | Delete
'lp' => true,
[375] Fix | Delete
'time' => true,
[376] Fix | Delete
'progress' => true,
[377] Fix | Delete
'score' => true,
[378] Fix | Delete
'best_score' => true,
[379] Fix | Delete
'last_connection' => true,
[380] Fix | Delete
],
[381] Fix | Delete
'my_progress_courses' => [
[382] Fix | Delete
'course_title' => true,
[383] Fix | Delete
'time_spent' => true,
[384] Fix | Delete
'progress' => true,
[385] Fix | Delete
'best_score_in_lp' => true,
[386] Fix | Delete
'best_score_not_in_lp' => true,
[387] Fix | Delete
'latest_login' => true,
[388] Fix | Delete
'details' => true
[389] Fix | Delete
]
[390] Fix | Delete
];
[391] Fix | Delete
*/
[392] Fix | Delete
// Add column "Unlocked" in student LPs table to display info about a lp subscription
[393] Fix | Delete
//$_configuration['student_follow_page_add_LP_subscription_info'] = false;
[394] Fix | Delete
// Add column "Acquisition" in student LPs table to display info about a lo adquisition. Requires DB changes:
[395] Fix | Delete
/*
[396] Fix | Delete
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES
[397] Fix | Delete
(20, 3, 'acquisition', 'Acquisition', '', 0, 1, 0, 0, 0, NOW());
[398] Fix | Delete
SET @ef_id = LAST_INSERT_ID();
[399] Fix | Delete
INSERT INTO extra_field_options (field_id, option_value, display_text, priority, priority_message, option_order) VALUES
[400] Fix | Delete
(@ef_id, '1', 'Acquired', NULL, NULL, 1),
[401] Fix | Delete
(@ef_id, '2', 'In the process of acquisition', NULL, NULL, 2),
[402] Fix | Delete
(@ef_id, '3', 'Not acquired', NULL, NULL, 3);
[403] Fix | Delete
[404] Fix | Delete
*/
[405] Fix | Delete
//$_configuration['student_follow_page_add_LP_acquisition_info'] = false;
[406] Fix | Delete
// Prepend a column in student LPs table to display a checkbox to select the LP category and its LPs. Requires DB changes:
[407] Fix | Delete
/*
[408] Fix | Delete
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES
[409] Fix | Delete
(20, 13, 'invisible', 'Invisible', '', 0, 1, 0, 0, 0, NOW());
[410] Fix | Delete
*/
[411] Fix | Delete
//$_configuration['student_follow_page_add_LP_invisible_checkbox'] = false;
[412] Fix | Delete
// Show the LP not marked as invisible by teacher in tracking page
[413] Fix | Delete
//$_configuration['student_follow_page_include_not_subscribed_lp_students'] = false;
[414] Fix | Delete
// Show certificate of achievement icon from the student details in course tracking
[415] Fix | Delete
//$_configuration['course_tracking_student_detail_show_certificate_of_achievement'] = false;
[416] Fix | Delete
// Allow change the order to show the tools in "My progress" page.
[417] Fix | Delete
/*$_configuration['my_progress_course_tools_order'] = [
[418] Fix | Delete
'order' => ['quizzes', 'learning_paths', 'skills'],
[419] Fix | Delete
];*/
[420] Fix | Delete
// Allow show all details of each course in session when clicking on session details
[421] Fix | Delete
//$_configuration['my_progress_session_show_all_courses'] = false;
[422] Fix | Delete
// Hide session link of course_block on index/userportal
[423] Fix | Delete
//$_configuration['remove_session_url']= false ;
[424] Fix | Delete
// Allow foldable block for session list in session category on My courses tab
[425] Fix | Delete
//$_configuration['user_portal_foldable_session_category'] = false;
[426] Fix | Delete
//
[427] Fix | Delete
//
[428] Fix | Delete
// ------ AGENDA CONFIGURATION SETTINGS
[429] Fix | Delete
// Shows a legend in the agenda tool
[430] Fix | Delete
/*
[431] Fix | Delete
$_configuration['agenda_legend'] = [
[432] Fix | Delete
'red' => 'red caption',
[433] Fix | Delete
'#f0f' => 'another caption'
[434] Fix | Delete
];*/
[435] Fix | Delete
// Set customs colors to agenda events
[436] Fix | Delete
/*
[437] Fix | Delete
$_configuration['agenda_colors'] = [
[438] Fix | Delete
'platform' => 'red',
[439] Fix | Delete
'course' => '#458B00',
[440] Fix | Delete
'group' => '#A0522D',
[441] Fix | Delete
'session' => '#00496D',
[442] Fix | Delete
'other_session' => '#999',
[443] Fix | Delete
'personal' => 'steel blue',
[444] Fix | Delete
'student_publication' => '#FF8C00'
[445] Fix | Delete
];
[446] Fix | Delete
*/
[447] Fix | Delete
// Display sessions occupations in personal agenda
[448] Fix | Delete
//$_configuration['personal_calendar_show_sessions_occupation'] = false;
[449] Fix | Delete
// It allows to send invitations to friends for an agenda event. Requires DB changes:
[450] Fix | Delete
/*
[451] Fix | Delete
CREATE TABLE agenda_event_invitee (id BIGINT AUTO_INCREMENT NOT NULL, invitation_id BIGINT DEFAULT NULL, user_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_4F5757FEA35D7AF0 (invitation_id), INDEX IDX_4F5757FEA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB;
[452] Fix | Delete
CREATE TABLE agenda_event_invitation (id BIGINT AUTO_INCREMENT NOT NULL, creator_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_52A2D5E161220EA6 (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB;
[453] Fix | Delete
ALTER TABLE agenda_event_invitee ADD CONSTRAINT FK_4F5757FEA35D7AF0 FOREIGN KEY (invitation_id) REFERENCES agenda_event_invitation (id) ON DELETE CASCADE;
[454] Fix | Delete
ALTER TABLE agenda_event_invitee ADD CONSTRAINT FK_4F5757FEA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE SET NULL;
[455] Fix | Delete
ALTER TABLE agenda_event_invitation ADD CONSTRAINT FK_52A2D5E161220EA6 FOREIGN KEY (creator_id) REFERENCES user (id) ON DELETE CASCADE;
[456] Fix | Delete
ALTER TABLE personal_agenda ADD agenda_event_invitation_id BIGINT DEFAULT NULL, ADD collective TINYINT(1) NOT NULL;
[457] Fix | Delete
ALTER TABLE personal_agenda ADD CONSTRAINT FK_D8612460AF68C6B FOREIGN KEY (agenda_event_invitation_id) REFERENCES agenda_event_invitation (id) ON DELETE CASCADE;
[458] Fix | Delete
CREATE UNIQUE INDEX UNIQ_D8612460AF68C6B ON personal_agenda (agenda_event_invitation_id);
[459] Fix | Delete
*/
[460] Fix | Delete
// Then add the "@" symbol to AgendaEventInvitation and AgendaEventInvitee classes in the ORM\Entity() line.
[461] Fix | Delete
// Then uncomment the "use EventCollectiveTrait;" line in the PersonalAgenda class.
[462] Fix | Delete
//$_configuration['agenda_collective_invitations'] = false;
[463] Fix | Delete
[464] Fix | Delete
// It allows to other users to subscribe for events.
[465] Fix | Delete
// Requires enable agenda_collective_invitations before.
[466] Fix | Delete
// Requires DB changes:
[467] Fix | Delete
/*
[468] Fix | Delete
ALTER TABLE personal_agenda ADD subscription_visibility INT DEFAULT 0 NOT NULL, ADD subscription_item_id INT DEFAULT NULL;
[469] Fix | Delete
ALTER TABLE agenda_event_invitee ADD type VARCHAR(255) NOT NULL;
[470] Fix | Delete
ALTER TABLE agenda_event_invitation ADD type VARCHAR(255) NOT NULL, ADD max_attendees INT DEFAULT 0;
[471] Fix | Delete
UPDATE agenda_event_invitation SET type = 'invitation';
[472] Fix | Delete
UPDATE agenda_event_invitee SET type = 'invitee';
[473] Fix | Delete
*/
[474] Fix | Delete
// Then uncomment the "use EventSubscribableTrait;" line in the PersonalAgenda class.
[475] Fix | Delete
// Then add the "@" symbol in ORM\InheritanceType, ORM\DiscriminatorColumn and ORM\DiscriminatorMap lines in the AgendaEventInvitation class.
[476] Fix | Delete
// Then add the "@" symbol in @ORM\Entity line in the AgendaEventSubscription class.
[477] Fix | Delete
// Then add the "@" symbol in ORM\InheritanceType, ORM\DiscriminatorColumn and ORM\DiscriminatorMap lines in the AgendaEventInvitee class.
[478] Fix | Delete
// Then add the "@" symbol in @ORM\Entity line in the AgendaEventSubscriber class.
[479] Fix | Delete
//$_configuration['agenda_event_subscriptions'] = false;
[480] Fix | Delete
[481] Fix | Delete
// Enable reminders for agenda events. Requires database changes:
[482] Fix | Delete
/*
[483] Fix | Delete
CREATE TABLE agenda_reminder (id BIGINT AUTO_INCREMENT NOT NULL, type VARCHAR(255) NOT NULL, event_id INT NOT NULL, date_interval VARCHAR(255) NOT NULL COMMENT '(DC2Type:dateinterval)', sent TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB;
[484] Fix | Delete
*/
[485] Fix | Delete
// Then add the "@" symbol to AgendaReminder class in the ORM\Entity() line.
[486] Fix | Delete
//$_configuration['agenda_reminders'] = false;
[487] Fix | Delete
// Sets the sender ID when using the cron main/cron/agenda_reminders.php to send reminders in course events.
[488] Fix | Delete
//$_configuration['agenda_reminders_sender_id'] = 0;
[489] Fix | Delete
// ------
[490] Fix | Delete
//
[491] Fix | Delete
// Save some tool titles with HTML editor. Require DB changes:
[492] Fix | Delete
/*
[493] Fix | Delete
ALTER TABLE course_category CHANGE name name LONGTEXT NOT NULL;
[494] Fix | Delete
ALTER TABLE c_course_description CHANGE title title LONGTEXT NOT NULL;
[495] Fix | Delete
ALTER TABLE c_thematic CHANGE title title LONGTEXT NOT NULL;
[496] Fix | Delete
ALTER TABLE c_quiz CHANGE title title LONGTEXT NOT NULL;
[497] Fix | Delete
ALTER TABLE c_lp_category CHANGE name name LONGTEXT NOT NULL;
[498] Fix | Delete
ALTER TABLE c_glossary CHANGE name name LONGTEXT NOT NULL;
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function