configuration.dist.php 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. <?php
  2. // Chamilo version {NEW_VERSION}
  3. // File generated by /install/index.php script - {DATE_GENERATED}
  4. /* For licensing terms, see /license.txt */
  5. /**
  6. * Campus configuration.
  7. *
  8. * This file contains a list of variables that can be modified by the campus
  9. * site's server administrator. Pay attention when changing these variables,
  10. * some changes may cause Chamilo to stop working.
  11. * If you changed some settings and want to restore them, please have a look at
  12. * configuration.dist.php. That file is an exact copy of the config file at
  13. * install time.
  14. */
  15. /**
  16. * $_configuration define only the bare essential variables
  17. * for configuring the platform (paths, database connections, ...).
  18. * Changing a $_configuration variable CAN generally break the installation.
  19. * Besides the $_configuration, a $_settings array also exists, that
  20. * contains variables that can be changed and will not break the platform.
  21. * These optional settings are defined in the database, now
  22. * (table settings_current).
  23. */
  24. /**
  25. * Database connection settings.
  26. */
  27. // Enable access to database management for platform admins.
  28. $_configuration['db_manager_enabled'] = false;
  29. /**
  30. * Directory settings.
  31. */
  32. // Path to the webroot of system, example: /var/www/
  33. $_configuration['root_sys'] = '{ROOT_SYS}';
  34. // Path from your WWW-root to the root of your Chamilo installation,
  35. // example: chamilo (this means chamilo is installed in /var/www/chamilo/
  36. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  37. /**
  38. * Hosting settings - Allows you to set limits to the Chamilo portal when
  39. * hosting it for a third party. These settings can be overwritten by an
  40. * optionally-loaded extension file with only the settings (no comments).
  41. * The settings use an index at the first level to represent the ID of the
  42. * URL in case you use multi-url (otherwise it will always use 1, which is
  43. * the ID of the only URL inside the access_url table).
  44. */
  45. // Set a maximum number of users. Default (0) = no limit
  46. $_configuration[1]['hosting_limit_users'] = 0;
  47. // Set a maximum number of teachers. Default (0) = no limit
  48. $_configuration[1]['hosting_limit_teachers'] = 0;
  49. // Set a maximum number of courses. Default (0) = no limit
  50. $_configuration[1]['hosting_limit_courses'] = 0;
  51. // Set a maximum number of sessions. Default (0) = no limit
  52. $_configuration[1]['hosting_limit_sessions'] = 0;
  53. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
  54. // Default (0) = no limit
  55. $_configuration[1]['hosting_limit_disk_space'] = 0;
  56. // Set a maximum number of usable courses. Default (0) = no limit.
  57. // Should always be lower than the hosting_limit_courses.
  58. // If set, defining a course as "hidden" will free room for
  59. // new courses (up to the hosting_limit_courses, if any value is set there).
  60. // hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden.
  61. $_configuration[1]['hosting_limit_active_courses'] = 0;
  62. // Email to warn if limit was reached.
  63. //$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
  64. // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
  65. // Check main/cron/hosting_total_size_limit.php for how to use this limit.
  66. $_configuration['hosting_total_size_limit'] = 0;
  67. /**
  68. * Content Delivery Network (CDN) settings. Only use if you need a separate
  69. * server to serve your static data. If you don't know what a CDN is, you
  70. * don't need it. These settings are for simple Origin Pull CDNs and are
  71. * experimental. Enable only if you really know what you're doing.
  72. * This might conflict with multiple-access urls.
  73. * Please note that recent browsers forbid the loading of resources from
  74. * a different portal URL then where they are, due to CORS rules.
  75. * To allow for CDN usage with different URLs, you need to specifically
  76. * allow CORS Access-Control-Allow-Origin for your main Chamilo URL.
  77. * This has to be done at the web server level, because Chamilo's PHP code
  78. * doesn't change HTTP headers of all files served from the Chamilo directory.
  79. * To do that on Apache, use
  80. * Header set Access-Control-Allow-Origin "http(s)://main-chamilo-url"
  81. * in Nginx:
  82. * add_header 'Access-Control-Allow-Origin' 'http(s)://main-chamilo-url';.
  83. */
  84. // Set the following setting to true to start using the CDN
  85. $_configuration['cdn_enable'] = false;
  86. // The following setting will be ignored if the previous one is set to false
  87. $_configuration['cdn'] = [
  88. // You can define several CDNs and split them by extensions
  89. // Replace the following by your full CDN URL, which should point to
  90. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  91. 'http://cdn.chamilo.org' => [
  92. '.css',
  93. '.js',
  94. '.jpg',
  95. '.jpeg',
  96. '.png',
  97. '.gif',
  98. '.avi',
  99. '.flv',
  100. ],
  101. // copy the line above and modify following your needs
  102. ];
  103. /**
  104. * Misc. settings.
  105. */
  106. // Security word for password recovery
  107. $_configuration['security_key'] = '{SECURITY_KEY}';
  108. // Hash function method
  109. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  110. // Session lifetime
  111. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  112. // Activation for multi-url access
  113. // When enabling multi-url, settings can be configured by multi-url using a simple
  114. // sub-element. E.g. $_configuration['session_lifetime'][1] = true; could be turned into
  115. // something like $_configuration['session_lifetime'][2] = false; to affect only URL
  116. // with ID 2. The ID can be found in the access_url table.
  117. //$_configuration['multiple_access_urls'] = true;
  118. $_configuration['software_name'] = 'Chamilo';
  119. $_configuration['software_url'] = 'https://chamilo.org/';
  120. // Deny the elimination of users
  121. $_configuration['deny_delete_users'] = false;
  122. // Version settings
  123. $_configuration['system_version'] = '{NEW_VERSION}';
  124. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  125. /**
  126. * Settings to be included as settings_current in future versions.
  127. */
  128. // Uncomment the following to prevent all admins to use the "login as" feature
  129. //$_configuration['login_as_forbidden_globally'] = true;
  130. // If the database is down this css style will be used to show the errors.
  131. //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
  132. //$_configuration['hide_user_field_from_list'] = ['fields' => ['username']];
  133. // Custom name_order_conventions
  134. //$_configuration['name_order_conventions'] = array(
  135. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  136. //);
  137. // Course log - Default columns to hide
  138. //$_configuration['course_log_hide_columns'] = ['columns' => [1, 9]];
  139. // Unoconv binary file
  140. //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
  141. // Proxy settings for access external services
  142. /*$_configuration['proxy_settings'] = [
  143. 'stream_context_create' => [
  144. 'http' => [
  145. 'proxy' => 'tcp://example.com:8080',
  146. 'request_fulluri' => true
  147. ]
  148. ],
  149. 'curl_setopt_array' => [
  150. 'CURLOPT_PROXY' => 'http://example.com',
  151. 'CURLOPT_PROXYPORT' => '8080'
  152. ]
  153. ];*/
  154. // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
  155. //$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
  156. // Only shows the fields in this list
  157. /*$_configuration['allow_fields_inscription'] = [
  158. 'fields' => [
  159. 'official_code',
  160. 'phone',
  161. 'status',
  162. 'language'
  163. ],
  164. 'extra_fields' => [
  165. 'birthday'
  166. ]
  167. ];*/
  168. // Fix urls changing http with https in scorm packages.
  169. //$_configuration['lp_replace_http_to_https'] = false;
  170. // Fix embedded videos inside lps, adding an optional popup
  171. //$_configuration['lp_fix_embed_content'] = false;
  172. // Manage deleted files marked with "DELETED" (by course and only by allowed by admin)
  173. //$_configuration['document_manage_deleted_files'] = false;
  174. // Chamilo is installed/downloaded. Packagers can change this
  175. // to reflect their packaging method. The default value is 'chamilo'. This will
  176. // be reflected on the https://version.chamilo.org/stats page in the future.
  177. //$_configuration['packager'] = 'chamilo';
  178. // List of driver to plugin in ckeditor
  179. //$_configuration['editor_driver_list'] = ['PersonalDriver', 'CourseDriver'];
  180. // Hide header and footer in certificate pdf
  181. //$_configuration['hide_header_footer_in_certificate'] = false;
  182. // Allows syncing the database with the current entity schema
  183. //$_configuration['sync_db_with_schema'] = false;
  184. // When exporting a LP, all files and folders in the same path of an html will be exported too.
  185. //$_configuration['add_all_files_in_lp_export'] = false;
  186. // Send exercise student score to manager in email notification
  187. //$_configuration['send_score_in_exam_notification_mail_to_manager'] = false;
  188. // Show blocked LPs by prerequisite to students
  189. //$_configuration['show_prerequisite_as_blocked'] = false;
  190. // Mail header extra HTML attributes
  191. //$_configuration['mail_header_style'] = '';
  192. // Mail body extra HTML attributes
  193. //$_configuration['mail_content_style'] = '';
  194. // Show all agenda events in personal agenda from all session no matter the visibility.
  195. //$_configuration['personal_agenda_show_all_session_events'] = false;
  196. // Allows to redirect to the session after the inscription in session about
  197. // $_configuration['allow_redirect_to_session_after_inscription_about'] = false;
  198. // Allows to do a remove_XSS in course introduction with user status COURSEMANAGERLOWSECURITY
  199. // in order to accept all embed type videos (like vimeo, wistia, etc)
  200. // $_configuration['course_introduction_html_strict_filtering'] = true;
  201. // Prevents the duplicate upload in assignments
  202. // $_configuration['assignment_prevent_duplicate_upload'] = false;
  203. //Show student progress in My courses page
  204. //$_configuration['course_student_info']['score'] = false;
  205. //$_configuration['course_student_info']['progress'] = false;
  206. //$_configuration['course_student_info']['certificate'] = false;
  207. // Set ConsideredWorkingTime work extra field variable to show in MyStudents page works report
  208. // (with internal id 'work_time' as below) and enable the following line to show in MyStudents page works report
  209. // $_configuration['considered_working_time'] = 'work_time';
  210. // During CSV special imports update users emails to x@example.com
  211. // $_configuration['update_users_email_to_dummy_except_admins'] = false;
  212. // Certification pdf export orientation
  213. // $_configuration['certificate_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape'
  214. // Hide main navigation menu (left column in userportal)
  215. // $_configuration['hide_main_navigation_menu'] = false;
  216. // PDF image dpi value. Default value 96
  217. // $_configuration['pdf_img_dpi'] = 96;
  218. // Hide LP time in reports.
  219. // $_configuration['hide_lp_time'] = false;
  220. // Hide rating elements in pages ("Courses catalog" & "Most Popular courses")
  221. // $_configuration['hide_course_rating'] = false;
  222. // Customize password generation and verification
  223. /*$_configuration['password_requirements'] = [
  224. 'min' => [
  225. 'lowercase' => 2,
  226. 'uppercase' => 2,
  227. 'numeric' => 2,
  228. 'length' => 8
  229. ]
  230. ];*/
  231. // Customize course session tracking columns
  232. /*
  233. $_configuration['tracking_columns'] = [
  234. 'course_session' => [
  235. 'course_title' => true,
  236. 'published_exercises' => true,
  237. 'new_exercises' => true,
  238. 'my_average' => true,
  239. 'average_exercise_result' => true,
  240. 'time_spent' => true,
  241. 'lp_progress' => true,
  242. 'score' => true,
  243. 'best_score' => true,
  244. 'last_connection' => true,
  245. 'details' => true,
  246. ],
  247. 'my_students_lp' => [
  248. 'lp' => true,
  249. 'time' => true,
  250. 'best_score' => true,
  251. 'latest_attempt_avg_score' => true,
  252. 'progress' => true,
  253. 'last_connection' => true,
  254. ],
  255. 'my_progress_lp' => [
  256. 'lp' => true,
  257. 'time' => true,
  258. 'progress' => true,
  259. 'score' => true,
  260. 'best_score' => true,
  261. 'last_connection' => true,
  262. ],
  263. 'my_progress_courses' => [
  264. 'course_title' => true,
  265. 'time_spent' => true,
  266. 'progress' => true,
  267. 'best_score_in_lp' => true,
  268. 'best_score_not_in_lp' => true,
  269. 'latest_login' => true,
  270. 'details' => true
  271. ]
  272. ];
  273. */
  274. // ------ AGENDA CONFIGURATION SETTINGS
  275. // Shows a legend in the agenda tool
  276. /*
  277. $_configuration['agenda_legend'] = [
  278. 'red' => 'red caption',
  279. '#f0f' => 'another caption'
  280. ];*/
  281. // Set customs colors to agenda events
  282. /*
  283. $_configuration['agenda_colors'] = [
  284. 'platform' => 'red',
  285. 'course' => '#458B00',
  286. 'group' => '#A0522D',
  287. 'session' => '#00496D',
  288. 'other_session' => '#999',
  289. 'personal' => 'steel blue',
  290. 'student_publication' => '#FF8C00'
  291. ];
  292. */
  293. // ------
  294. //
  295. // Save some tool titles with HTML editor. Require DB changes:
  296. /*
  297. ALTER TABLE course_category CHANGE name name LONGTEXT NOT NULL;
  298. ALTER TABLE c_course_description CHANGE title title LONGTEXT NOT NULL;
  299. ALTER TABLE c_thematic CHANGE title title LONGTEXT NOT NULL;
  300. ALTER TABLE c_quiz CHANGE title title LONGTEXT NOT NULL;
  301. ALTER TABLE c_lp_category CHANGE name name LONGTEXT NOT NULL;
  302. ALTER TABLE c_glossary CHANGE name name LONGTEXT NOT NULL;
  303. ALTER TABLE c_tool CHANGE name name LONGTEXT NOT NULL;
  304. -- Only with allow_portfolio_tool enabled
  305. ALTER TABLE portfolio CHANGE title title LONGTEXT NOT NULL;
  306. ALTER TABLE portfolio_category CHANGE title title LONGTEXT NOT NULL;
  307. --
  308. */
  309. // $_configuration['save_titles_as_html'] = false;
  310. // Show the full toolbar set to all CKEditor
  311. //$_configuration['full_ckeditor_toolbar_set'] = false;
  312. // Allow change the orientation when export a (course progress) thematic to pdf. Portrait or landscape
  313. //$_configuration['thematic_pdf_orientation'] = 'landscape';
  314. // Show number of users in session list
  315. //$_configuration['session_list_show_count_users'] = false;
  316. // Session admin access to all course content
  317. //$_configuration['session_admins_access_all_content'] = false;
  318. // Adds roles to the system announcements (requires DB change BT#12476)
  319. //$_configuration['system_announce_extra_roles'] = false;
  320. // Limits that a session admin has access to list users
  321. //$_configuration['limit_session_admin_list_users'] = false;
  322. // Course tools visibility edition in sessions
  323. //$_configuration['allow_edit_tool_visibility_in_session'] = false;
  324. // Enable the support to ODF files
  325. //$_configuration['enabled_support_odf'] = true;
  326. // Pdf orientation when exporting documents
  327. // $_configuration['document_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape'
  328. // Use alternative footer when exporting document to PDF
  329. //$_configuration['use_alternative_document_pdf_footer'] = false;
  330. // If the MySpace page takes too long to load, you might want to remove the
  331. // processing of generic statistics for the user. In this case set the following to true.
  332. //$_configuration['tracking_skip_generic_data'] = false;
  333. // Show view accordion lp_category
  334. //$_configuration['lp_category_accordion'] = false;
  335. //
  336. // Show view accordion lp_item_view
  337. // $_configuration['lp_view_accordion'] = false;
  338. //
  339. // ------ HTTP headers security
  340. // This section relates to options to increase the security of your Chamilo
  341. // portal against attacks specifically focused on HTTP headers vulnerabilities
  342. // These are all disabled by default, because some of these settings might
  343. // affect some features of Chamilo, like the inclusion of iframes or the
  344. // submission of forms by anonymous users. Please make sure you do the due
  345. // tests before enabling in production. Learn more about how to form secure
  346. // headers at https://securityheaders.io/
  347. //
  348. // HTTP Strict Transport Security is an excellent feature to support on your
  349. // site and strengthens your implementation of TLS by getting the User Agent
  350. // to enforce the use of HTTPS. Recommended value
  351. // "strict-transport-security: max-age=31536000; includeSubDomains".
  352. //$_configuration['security_strict_transport'] = 'strict-transport-security: max-age=31536000; includeSubDomains';
  353. //
  354. // Content Security Policy is an effective measure to protect your site from
  355. // XSS attacks. By whitelisting sources of approved content, you can prevent
  356. // the browser from loading malicious assets.
  357. // The provided default is an *example*, please customize.
  358. // This setting is particularly complicated to set with CKeditor, but if you
  359. // add all domains that you want to authorize for iframes inclusion in the
  360. // child-src statement, this example should work for you
  361. //$_configuration['security_content_policy'] = 'default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; child-src 'self' *.youtube.com yt.be *.vimeo.com *.slideshare.com;';
  362. //$_configuration['security_content_policy_report_only'] = 'default-src \'self\'; script-src *://*.google.com:*';
  363. //
  364. // HTTP Public Key Pinning protects your site from MiTM attacks using rogue
  365. // X.509 certificates. By whitelisting only the identities that the browser
  366. // should trust, your users are protected in the event a certificate
  367. // authority is compromised.
  368. //$_configuration['security_public_key_pins'] = '';
  369. //$_configuration['security_public_key_pins_report_only'] = '';
  370. //
  371. // X-Frame-Options tells the browser whether you want to allow your site to
  372. // be framed or not. By preventing a browser from framing your site you can
  373. // defend against attacks like clickjacking.
  374. // If defining a URL here, it should define the URL(s) from which your content
  375. // should be visible, not the URLs from which your site accepts content.
  376. // For example, if your main URL (root_web above) is https://11.chamilo.org/,
  377. // then this setting should be: 'ALLOW-FROM https://11.chamilo.org'.
  378. // These headers only apply to pages where Chamilo is responsible of the HTTP
  379. // headers generation (i.e. ".php" files). It does not apply to static files.
  380. // If playing with this feature, make sure you also update your web server
  381. // configuration to add the right headers for static files. See CDN
  382. // configuration documentation above (search for "add_header") for more
  383. // information.
  384. // Recommended (strict) value for this setting, if enabled: "SAMEORIGIN".
  385. //$_configuration['security_x_frame_options'] = 'SAMEORIGIN';
  386. //
  387. // X-XSS-Protection sets the configuration for the cross-site scripting
  388. // filter built into most browsers.
  389. // Recommended value "1; mode=block".
  390. //$_configuration['security_xss_protection'] = '1; mode=block';
  391. //
  392. // X-Content-Type-Options stops a browser from trying to MIME-sniff the
  393. // content type and forces it to stick with the declared content-type. The only
  394. // valid value for this header is "nosniff".
  395. //$_configuration['security_x_content_type_options'] = 'nosniff';
  396. //
  397. // Referrer Policy is a new header that allows a site to control how much
  398. // information the browser includes with navigation away from a document
  399. // and should be set by all sites.
  400. //$_configuration['security_referrer_policy'] = 'origin-when-cross-origin';
  401. // ------ HTTP headers security section ends here
  402. //
  403. // ------ Survey configuration settings
  404. // Add answered_at field in table survey_invitation
  405. // Requires DB change:
  406. // ALTER TABLE c_survey_invitation ADD answered_at DATETIME DEFAULT NULL;
  407. //$_configuration['survey_answered_at_field'] = false;
  408. // Add support to mandatory surveys. The user will not be able to enter to the course until fill the mandatory surveys
  409. // Requires DB change:
  410. /*
  411. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at)
  412. VALUES (12, 13, 'is_mandatory', 'IsMandatory', 1, 1, NOW());
  413. */
  414. //$_configuration['allow_mandatory_survey'] = false;
  415. // Allow required survey questions. Applies to yesno/multiplechoice question type. Requires DB change:
  416. /*
  417. ALTER TABLE c_survey_question ADD is_required TINYINT(1) DEFAULT 0 NOT NULL;
  418. */
  419. //$_configuration['allow_required_survey_questions'] = false;
  420. // Hide Survey Reporting button
  421. //$_configuration['hide_survey_reporting_button'] = false;
  422. // Hide survey edition tools for all or some surveys.
  423. //Set an asterisk to hide for all, otherwise set an array with the survey codes in which the options will be blocked
  424. //$_configuration['hide_survey_edition'] = ['codes' => []];
  425. // Allows to set the date and time of availability for surveys. Requires DB changes:
  426. // ALTER TABLE c_survey CHANGE avail_from avail_from DATETIME DEFAULT NULL, CHANGE avail_till avail_till DATETIME DEFAULT NULL;
  427. // Requires change the Doctrine type from date to datime in CSurvey::$availFrom and CSurvey::$availTill
  428. //$_configuration['allow_survey_availability_datetime'] = false;
  429. // ------
  430. // Allow career diagram, requires a DB change:
  431. //UPDATE extra_field_values SET created_at = NULL WHERE CAST(created_at AS CHAR(20)) = '0000-00-00 00:00:00';
  432. //UPDATE extra_field_values SET updated_at = NULL WHERE CAST(updated_at AS CHAR(20)) = '0000-00-00 00:00:00';
  433. //ALTER TABLE extra_field_values modify column value longtext null;
  434. //$_configuration['allow_career_diagram'] = false;
  435. // Allow scheduled emails to session users.
  436. //CREATE TABLE scheduled_announcements (id INT AUTO_INCREMENT NOT NULL, subject VARCHAR(255) NOT NULL, message LONGTEXT NOT NULL, date DATETIME DEFAULT NULL, sent TINYINT(1) NOT NULL, session_id INT NOT NULL, c_id INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
  437. // sudo mkdir app/upload/scheduled_announcement
  438. // Add "attachment" file extra field in: main/admin/extra_fields.php?type=scheduled_announcement&action=add
  439. //$_configuration['allow_scheduled_announcements'] = false;
  440. // Add the list of emails as a bcc when sending an email.
  441. /*
  442. $_configuration['send_all_emails_to'] = [
  443. 'emails' => [
  444. 'admin1@example.com',
  445. 'admin2@example.com',
  446. ]
  447. ];*/
  448. // Allow ticket projects to be access by specific chamilo roles
  449. /*$_configuration['ticket_project_user_roles'] = [
  450. 'permissions' => [
  451. 1 => [17] // project_id = 1, STUDENT_BOSS = 17
  452. ]
  453. ];*/
  454. // Exercises configuration settings
  455. // Send only quiz answer notifications to course coaches and not general coach
  456. //$_configuration['block_quiz_mail_notification_general_coach'] = false;
  457. // Show question feedback (requires DB change: "ALTER TABLE c_quiz_question ADD COLUMN feedback text;")
  458. //$_configuration['allow_quiz_question_feedback'] = false;
  459. // Add option in exercise to show or hide the "previous" button.
  460. //ALTER TABLE c_quiz ADD show_previous_button TINYINT(1) DEFAULT 1;
  461. //$_configuration['allow_quiz_show_previous_button_setting'] = false;
  462. // Allow to teachers review exercises question with audio notes
  463. //$_configuration["allow_teacher_comment_audio"] = false;
  464. // Hide search form in session list
  465. //$_configuration['hide_search_form_in_session_list'] = false;
  466. // Allow exchange of messages from teachers/bosses about a user.
  467. //$_configuration['private_messages_about_user'] = false;
  468. // Allow the messages to be visible for the students
  469. //$_configuration['private_messages_about_user_visible_to_user'] = false;
  470. // Allow send email notification per exercise
  471. //ALTER TABLE c_quiz ADD COLUMN notifications VARCHAR(255) NULL DEFAULT NULL;
  472. //$_configuration['allow_notification_setting_per_exercise'] = false;
  473. // Hide free/oral/annotation question result see BT#12613
  474. //$_configuration['hide_free_question_score'] = false;
  475. // Hide user information in the quiz result's page
  476. //$_configuration['hide_user_info_in_quiz_result'] = false;
  477. // Show the username field in exercise results report
  478. //$_configuration['exercise_attempts_report_show_username'] = false;
  479. // Score model
  480. // Allow to convert a score into a text/color label
  481. // using a model if score is inside those values. See BT#12898
  482. /*
  483. $_configuration['score_grade_model'] = [
  484. 'models' => [
  485. [
  486. 'id' => 1,
  487. 'name' => 'ThisIsMyModel', // Value will be translated using get_lang
  488. 'score_list' => [
  489. [
  490. 'name' => 'VeryBad', // Value will be translated using get_lang
  491. 'css_class' => 'btn-danger',
  492. 'min' => 0,
  493. 'max' => 20,
  494. 'score_to_qualify' => 0
  495. ],
  496. [
  497. 'name' => 'Bad',
  498. 'css_class' => 'btn-danger',
  499. 'min' => 21,
  500. 'max' => 50,
  501. 'score_to_qualify' => 25
  502. ],
  503. [
  504. 'name' => 'Good',
  505. 'css_class' => 'btn-warning',
  506. 'min' => 51,
  507. 'max' => 70,
  508. 'score_to_qualify' => 60
  509. ],
  510. [
  511. 'name' => 'VeryGood',
  512. 'css_class' => 'btn-success',
  513. 'min' => 71,
  514. 'max' => 100,
  515. 'score_to_qualify' => 100
  516. ]
  517. ]
  518. ]
  519. ]
  520. ];
  521. */
  522. // Allow show link to request relation between HRM and user
  523. //$_configuration['show_link_request_hrm_user'] = false;
  524. // Allow CKEditor start up with ShowBlocks plugin active
  525. //$_configuration['ckeditor_startup_outline_blocks'] = false;
  526. // SETTINGS FOR USER COURSE LIST
  527. // Manage the links to Session Index page
  528. // 1 = Default. Works as it is now (default is to link to the special session page)
  529. // 0 = No link (not clickable)
  530. // 2 = Link to the course if there is only one course
  531. // 3 = Session link will make course list foldable
  532. //$_configuration['courses_list_session_title_link'] = 1;
  533. // New grid view the list of courses
  534. //$_configuration['view_grid_courses'] = true;
  535. // Show courses grouped by categories when $_configuration['view_grid_courses'] is enabled
  536. //$_configuration['view_grid_courses_grouped_categories_in_sessions'] = true;
  537. // Load course notifications in user_portal.php using ajax
  538. //$_configuration['user_portal_load_notification_by_ajax'] = false;
  539. // Hide the "what's new" icon notifications in course list
  540. // $_configuration['hide_course_notification'] = true;
  541. // Show less session information in course list
  542. //$_configuration['show_simple_session_info'] = true;
  543. // Show course category list on My Courses page before the courses. Requires a DB change
  544. //ALTER TABLE course_category ADD image varchar(255) NULL;
  545. //ALTER TABLE course_category ADD description LONGTEXT NULL;
  546. //$_configuration['my_courses_list_as_category'] = false;
  547. // ------
  548. // Skills can only be visible for admins, teachers (related to a user via a course),
  549. // and HRM users (if related to a user).
  550. // $_configuration['allow_private_skills'] = false;
  551. // Additional gradebook dependencies BT#13099
  552. // ALTER TABLE gradebook_category ADD COLUMN depends TEXT DEFAULT NULL;
  553. // ALTER TABLE gradebook_category ADD COLUMN minimum_to_validate INT DEFAULT NULL;
  554. // ALTER TABLE gradebook_category ADD COLUMN gradebooks_to_validate_in_dependence INT DEFAULT NULL;
  555. // $_configuration['gradebook_dependency'] = false;
  556. // Courses id list to check in the gradebook sidebar see BT#13099
  557. /*$_configuration['gradebook_dependency_mandatory_courses'] = [
  558. 'courses' => [1, 2]
  559. ];*/
  560. // Gradebook id list needed to build the gradebook sidebar see BT#13099
  561. /*
  562. $_configuration['gradebook_badge_sidebar'] = [
  563. 'gradebooks' => [1, 2, 3]
  564. ];*/
  565. // When using the my-courses list filter by category, set this option to true
  566. // to only show courses in the user's configured language
  567. // $_configuration['my_courses_show_courses_in_user_language_only'] = false;
  568. // Hide base course announcements when entering a group.
  569. //$_configuration['hide_base_course_announcements_in_group'] = false;
  570. // Disable delete all announcements button
  571. //$_configuration['disable_delete_all_announcements'] = false;
  572. // Default glossary view "table" or "list"
  573. //$_configuration['default_glossary_view'] = 'table';
  574. // Allow or block user subscriptions to a lp/lp category
  575. /*$_configuration['lp_subscription_settings'] = [
  576. 'options' => [
  577. 'allow_add_users_to_lp' => true,
  578. 'allow_add_users_to_lp_category' => true,
  579. ]
  580. ];*/
  581. // Allow public courses access with no terms and conditions validation.
  582. //$_configuration['allow_public_course_with_no_terms_conditions'] = false;
  583. // Allow delete user for session admin
  584. //$_configuration['allow_delete_user_for_session_admin'] = false;
  585. // Allow enable/disable user accounts for session admin
  586. //$_configuration['allow_disable_user_for_session_admin'] = false;
  587. // Allow edit/delete agenda events for HRM users
  588. //$_configuration['allow_agenda_edit_for_hrm'] = false;
  589. // Allow double validation in registration page
  590. //$_configuration['allow_double_validation_in_registration'] = false;
  591. // Allow multiple anon users see BT#13324
  592. //$_configuration['max_anonymous_users'] = 0;
  593. // Send email notification to admin when a user is created
  594. //$_configuration['send_notification_when_user_added'] = ['admins' => [1] ];
  595. // Send email notification to course members when document is added BT#13964
  596. //$_configuration['send_notification_when_document_added'] = false;
  597. // Hide email content forcing using to click in a link to visit the portal to check the message
  598. //$_configuration['messages_hide_mail_content'] = false;
  599. // If you install plugin redirection you need to change to true
  600. //$_configuration['plugin_redirection_enabled'] = false;
  601. // Customize on hover agenda view. Show agenda comment and/or description
  602. /*$_configuration['agenda_on_hover_info'] = [
  603. 'options' => [
  604. 'comment' => true,
  605. 'description' => true,
  606. ]
  607. ];*/
  608. // Disable jquery, jquery-ui libs added in the learning path view
  609. //$_configuration['disable_js_in_lp_view'] = true;
  610. // Show all sessions (old, current, future) in my course page
  611. //$_configuration['show_all_sessions_on_my_course_page'] = true;
  612. // Redirect to home tool after uploading a student publication or a adding a comment
  613. //$_configuration['allow_redirect_to_main_page_after_work_upload'] = false;
  614. // Empty the session student list when subscribing multiple users
  615. //$_configuration['session_multiple_subscription_students_list_avoid_emptying'] = false;
  616. // Disable the option to set course coach in session when editing course
  617. //$_configuration['disabled_edit_session_coaches_course_editing_course'] = false;
  618. // Show sender's email when receiving email notifications.
  619. //$_configuration['show_user_email_in_notification'] = false;
  620. // Set skill levels name, then later it will be parsed using get_lang BT#13586
  621. /*$_configuration['skill_levels_names'] = [
  622. 'levels' => [
  623. 1 => 'Skills',
  624. 2 => 'Capability',
  625. 3 => 'Dimension',
  626. ]
  627. ];*/
  628. // Show popular sessions on homepage
  629. //$_configuration['show_hot_sessions'] = false;
  630. // Hide skill levels options
  631. //$_configuration['hide_skill_levels'] = false;
  632. // Hide the session list in Reporting tool. Useful when a course has too many sessions.
  633. //$_configuration['hide_reporting_session_list'] = false;
  634. // Allow session admin to read careers
  635. //$_configuration['allow_session_admin_read_careers'] = true;
  636. // Enable cloud links in document tool
  637. // $_configuration['enable_add_file_link'] = false;
  638. // Send score in percentage in the exam result notification
  639. //$_configuration['send_notification_score_in_percentage'] = false;
  640. // Google translate key (for the text2speech feature in the documents tool)
  641. // To get it, go to https://console.cloud.google.com/apis/library, create or
  642. // use your own project, then search for "speech" and follow the instructions
  643. // This service has a cost above 60 minutes of use.
  644. //$_configuration['translate_app_google_key'] = '';
  645. // Block access to any user to "my progress" page
  646. //$_configuration['block_my_progress_page'] = false;
  647. // Add user extra fields in report: main/mySpace/exercise_category_report.php
  648. //$_configuration['exercise_category_report_user_extra_fields'] = ['fields' => ['skype', 'rssfeeds']];
  649. // Order sessions
  650. // Requires DB change: ALTER TABLE session ADD COLUMN position INT DEFAULT 0;
  651. // Requires edit Entity Session: src/Chamilo/CoreBundle/Entity/Session.php uncomment "position" variable.
  652. // Requires uncomment the position get and set
  653. //$_configuration['session_list_order'] = false;
  654. // Show skills as a hierarchical table
  655. //$_configuration['table_of_hierarchical_skill_presentation'] = false;
  656. // Restrict course chat only for course coach in sessions
  657. // Course coaches will can chat with students only. And students will can chat with all course coaches
  658. //$_configuration['course_chat_restrict_to_coach'] = false;
  659. // Allow teachers, drhs and admins to access blocked LP's because a prerequisite.
  660. //$_configuration['allow_teachers_to_access_blocked_lp_by_prerequisite'] = false;
  661. // Allow connect skills with course tools (exercises, forum threads, works, etc)
  662. // 1. Add "@ORM\Entity" in these Entities:
  663. //SkillRelItemRelUser/SkillRelItem
  664. // 2. Add "@ORM\OneToMany" in the "Skill.items" variable definition
  665. // 3. Run DB changes:
  666. /*
  667. CREATE TABLE skill_rel_item_rel_user (id INT AUTO_INCREMENT NOT NULL, skill_rel_item_id INT NOT NULL, user_id INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by INT NOT NULL, updated_by INT NOT NULL, INDEX IDX_D1133E0DFD4B12DC (skill_rel_item_id), INDEX IDX_D1133E0DA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
  668. CREATE TABLE skill_rel_item (id INT AUTO_INCREMENT NOT NULL, skill_id INT DEFAULT NULL, item_type INT NOT NULL, item_id INT NOT NULL, obtain_conditions VARCHAR(255) DEFAULT NULL, requires_validation TINYINT(1) NOT NULL, is_real TINYINT(1) NOT NULL, c_id INT DEFAULT NULL, session_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by INT NOT NULL, updated_by INT NOT NULL, INDEX IDX_EB5B2A0D5585C142 (skill_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
  669. ALTER TABLE skill_rel_item_rel_user ADD CONSTRAINT FK_D1133E0DFD4B12DC FOREIGN KEY (skill_rel_item_id) REFERENCES skill_rel_item (id);
  670. ALTER TABLE skill_rel_item_rel_user ADD CONSTRAINT FK_D1133E0DA76ED395 FOREIGN KEY (user_id) REFERENCES user (id);
  671. ALTER TABLE skill_rel_item ADD CONSTRAINT FK_EB5B2A0D5585C142 FOREIGN KEY (skill_id) REFERENCES skill (id);
  672. ALTER TABLE skill_rel_item_rel_user ADD result_id INT DEFAULT NULL;
  673. CREATE TABLE skill_rel_course (id INT AUTO_INCREMENT NOT NULL, skill_id INT DEFAULT NULL, c_id INT NOT NULL, session_id INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_E7CEC7FA5585C142 (skill_id), INDEX IDX_E7CEC7FA91D79BD3 (c_id), INDEX IDX_E7CEC7FA613FECDF (session_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
  674. ALTER TABLE skill_rel_course ADD CONSTRAINT FK_E7CEC7FA5585C142 FOREIGN KEY (skill_id) REFERENCES skill (id);
  675. ALTER TABLE skill_rel_course ADD CONSTRAINT FK_E7CEC7FA91D79BD3 FOREIGN KEY (c_id) REFERENCES course (id);
  676. ALTER TABLE skill_rel_course ADD CONSTRAINT FK_E7CEC7FA613FECDF FOREIGN KEY (session_id) REFERENCES session (id);
  677. */
  678. // 4. Set "allow_skill_rel_items" to true
  679. //$_configuration['allow_skill_rel_items'] = false;
  680. // Generate random login when importing users
  681. //$_configuration['generate_random_login'] = false;
  682. // Remove html tags when exporting glossary definitions in a CSV file
  683. //$_configuration['allow_remove_tags_in_glossary_export'] = false;
  684. // Show base course categories in portal children
  685. //$_configuration['allow_base_course_category'] = false;
  686. // Send two emails when creating a user. One with the username other with the password.
  687. //$_configuration['send_two_inscription_confirmation_mail'] = false;
  688. // LP view custom settings
  689. // $_configuration['lp_view_settings'] = ['display' => ['show_reporting_icon' => true]];
  690. // Force to hide the invisible course documents in sessions
  691. //$_configuration['hide_invisible_course_documents_in_sessions'] = false;
  692. // Show more expected choice and status in exercise results BT#13950
  693. //$_configuration['show_exercise_expected_choice'] = false;
  694. // Hide exercise question label (ribbon) BT#13950
  695. //$_configuration['exercise_hide_label'] = false;
  696. // Send welcome message by email and to the chamilo inbox BT#14034
  697. //$_configuration['send_inscription_msg_to_inbox'] = false;
  698. // Allow administrators to see personal messages between a teacher and a student.
  699. // Please make sure you include a note in your terms and conditions as this might
  700. // affect privacy protection.
  701. //$_configuration['allow_user_message_tracking'] = false;
  702. // Add a portfolio tool (duplicating the Notebook tool). Requires DB changes:
  703. /*
  704. CREATE TABLE portfolio (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, c_id INT DEFAULT NULL, session_id INT DEFAULT NULL, category_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, content LONGTEXT NOT NULL, creation_date DATETIME NOT NULL, update_date DATETIME NOT NULL, is_visible TINYINT(1) DEFAULT '1' NOT NULL, INDEX user (user_id), INDEX course (c_id), INDEX session (session_id), INDEX category (category_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
  705. CREATE TABLE portfolio_category (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, is_visible TINYINT(1) DEFAULT '1' NOT NULL, INDEX user (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
  706. ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE;
  707. ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106291D79BD3 FOREIGN KEY (c_id) REFERENCES course (id) ON DELETE CASCADE;
  708. ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062613FECDF FOREIGN KEY (session_id) REFERENCES session (id) ON DELETE CASCADE;
  709. ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106212469DE2 FOREIGN KEY (category_id) REFERENCES portfolio_category (id) ON DELETE SET NULL;
  710. ALTER TABLE portfolio_category ADD CONSTRAINT FK_7AC64359A76ED395 FOREIGN KEY (user_id) REFERENCES user (id);
  711. INSERT INTO settings_current(variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('course_create_active_tools','portfolio','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Portfolio', 0);
  712. */
  713. //$_configuration['allow_portfolio_tool'] = false;
  714. // Enable best score column in gradebook. Previously called disable_gradebook_stats
  715. //$_configuration['gradebook_enable_best_score'] = false;
  716. // Allow teachers to access student skills BT#14161 (skills setting must be enabled in the platform)
  717. //$_configuration['allow_teacher_access_student_skills'] = false;
  718. // Allow sharing options for the documents inside a group
  719. //ALTER TABLE c_group_info ADD document_access INT DEFAULT 0 NOT NULL;
  720. //$_configuration['group_document_access'] = false;
  721. // Allow sharing options for the documents inside a group category
  722. //ALTER TABLE c_group_category ADD document_access INT DEFAULT 0 NOT NULL;
  723. //$_configuration['group_category_document_access'] = false;
  724. // Allow LP export to chamilo format (CourseBackup)
  725. //$_configuration['allow_lp_chamilo_export'] = false;
  726. // Allow exercise auto launch
  727. //$_configuration['allow_exercise_auto_launch'] = false;
  728. // ALTER TABLE c_quiz ADD autolaunch TINYINT(1) DEFAULT 0;
  729. // Enable speed controller in video player
  730. // $_configuration['video_features'] = ['features' => ['speed']];
  731. // Disable token verification when sending a message
  732. // $_configuration['disable_token_in_new_message'] = false;
  733. // My courses session order. Possible field values: "start_date" or "end_date". Order values: "asc" or "desc"
  734. // $_configuration['my_courses_session_order'] = ['field' => 'end_date', 'order' => 'desc'];
  735. // Allow set courses in session in read-only mode. Require DB changes:
  736. /*
  737. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, filter, created_at)
  738. VALUES (2, 13, 'session_courses_read_only_mode', 'Lock Course In Session', 1, 1, 1, NOW());
  739. */
  740. // $_configuration['session_courses_read_only_mode'] = false;
  741. // Allow SCORM packages when importing a course
  742. // $_configuration['allow_import_scorm_package_in_course_builder'] = false;
  743. // Hide announcement "sent to" label
  744. // $_configuration['hide_announcement_sent_to_users_info'] = false;
  745. // Hide gradebook graph
  746. // $_configuration['gradebook_hide_graph'] = false;
  747. // Hide gradebook "download report in PDF" button
  748. // $_configuration['gradebook_hide_pdf_report_button'] = false;
  749. // Show pending survey link in user menu
  750. // $_configuration['show_pending_survey_in_menu'] = false;
  751. // Show multiple conditions to user during sign up process
  752. // Example with a GDPR condition
  753. /*$_configuration['show_conditions_to_user'] = [
  754. 'conditions' => [
  755. [
  756. 'variable' => 'gdpr', // internal extra field name
  757. 'display_text' => 'GDPRTitle', // checkbox title will be translated with get_lang('GDPRTitle')
  758. 'text_area' => 'GDPRTextArea', // this will be translated using get_lang('GDPRTextArea')
  759. ],
  760. [
  761. 'variable' => 'my_terms',
  762. 'display_text' => 'My test conditions',
  763. 'text_area' => 'This is a long text area, with lot of terms and conditions ... ',
  764. ],
  765. ],
  766. ];*/
  767. // Hide LP item prerequisite label in the LP view
  768. //$_configuration['hide_accessibility_label_on_lp_item'] = true;
  769. // Round score in exercise category export
  770. //$_configuration['exercise_category_round_score_in_export'] = false;
  771. // Redirect index to url for logged in users
  772. // In this example the index.php will be redirected to user_portal.php for logged in users
  773. //$_configuration['redirect_index_to_url_for_logged_users'] = 'user_portal.php';
  774. // Teachers can CRUD classes
  775. // ALTER TABLE usergroup ADD author_id INT DEFAULT NULL;
  776. //$_configuration['allow_teachers_to_classes'] = false;
  777. // GDPR: European's General Data Protection Rules activation option
  778. // Set to true to automatically enable a new personal data page inside the social network menu
  779. // $_configuration['enable_gdpr'] = false;
  780. // GDPR requires users to be informed of the Data Protection Officer name and contact point
  781. // These can only be defined here for now, but will be moved to web settings in the future.
  782. // Name of the person or organization that is responsible for the treatment of personal info
  783. //$_configuration['data_protection_officer_name'] = '';
  784. // A description of the role of the DP Officer in this context
  785. //$_configuration['data_protection_officer_role'] = '';
  786. // An e-mail address where to contact the data protection officer for queries
  787. //$_configuration['data_protection_officer_email'] = '';
  788. // Validate user login via a webservice, Chamilo will send a "login" and "password" parameters
  789. // to the "myWebServiceFunctionToLogin" function, the result should be "1" if the user have access.
  790. /*$_configuration['webservice_validation'] = [
  791. 'options' => [
  792. 'wsdl' => 'https://example.com/soap?wsdl',
  793. 'check_login_function' => 'myWebServiceFunctionToLogin'
  794. ]
  795. ];*/
  796. // Activate the view with ViewerJS for PDF files within the lessons for IPad and IPhone
  797. // $_configuration['allow_pdf_viewerjs_in_lp'] = false;
  798. // Allow DRH user to access all visible session course announcements
  799. // $_configuration['allow_drh_access_announcement'] = false;
  800. // Allow my personal files link in the homepage
  801. // $_configuration['allow_my_files_link_in_homepage'] = false;
  802. // This option sets default parameters in the main/session/session_import.php
  803. /*$_configuration['session_import_settings'] = [
  804. 'options' => [
  805. 'session_exists_default_option' => '1',
  806. 'send_mail_default_option' => '1',
  807. ]
  808. ];*/
  809. // This option sets default parameters in the main/admin/user_import.php
  810. /*$_configuration['user_import_settings'] = [
  811. 'options' => [
  812. 'send_mail_default_option' => '1',
  813. ]
  814. ];*/
  815. // Disable all new exercise attempts in all the platform
  816. // $_configuration['exercises_disable_new_attempts'] = false;
  817. // Improve speed when rendering gradebook student reports using Doctrine APCU cache
  818. // $_configuration['gradebook_use_apcu_cache'] = true;
  819. // Add collapsable option for user course categories
  820. // ALTER TABLE user_course_category ADD collapsed TINYINT(1) DEFAULT NULL;
  821. // $_configuration['allow_user_course_category_collapsable'] = false;
  822. // Add collapsable option when showing the course list inside a session in userportal.php
  823. // ALTER TABLE session_rel_user ADD collapsed TINYINT(1) DEFAULT NULL;
  824. // Create a new session extra field called "collapsed" (checkbox yes/no - option)
  825. // $_configuration['allow_user_session_collapsable'] = false;
  826. // Disable Chamilo.org announcements at the top of the admin page
  827. //$_configuration['admin_chamilo_announcements_disable'] = false;
  828. // ------ Custom DB changes (keep this at the end)
  829. // Add user activation by confirmation email
  830. // This option prevents the new user to login in the platform if your account is not confirmed via email
  831. // You need add a new option called "confirmation" to the registration settings
  832. //INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation');
  833. // ------ (End) Custom DB changes