configuration.dist.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  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. // Database host
  28. $_configuration['db_host'] = '{DATABASE_HOST}';
  29. // Database port
  30. $_configuration['db_port'] = '{DATABASE_PORT}';
  31. // Database name
  32. $_configuration['main_database'] = '{DATABASE_MAIN}';
  33. // Database username
  34. $_configuration['db_user'] = '{DATABASE_USER}';
  35. // Database password
  36. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  37. // Enable access to database management for platform admins.
  38. $_configuration['db_manager_enabled'] = false;
  39. /**
  40. * Directory settings
  41. */
  42. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  43. $_configuration['root_web'] = '{ROOT_WEB}';
  44. // Path to the webroot of system, example: /var/www/
  45. $_configuration['root_sys'] = '{ROOT_SYS}';
  46. // Path from your WWW-root to the root of your Chamilo installation,
  47. // example: chamilo (this means chamilo is installed in /var/www/chamilo/
  48. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  49. /**
  50. * Login modules settings
  51. */
  52. // CAS IMPLEMENTATION
  53. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  54. // You can leave these lines uncommented even if you don't use CAS authentification
  55. //$extAuthSource["cas"]["login"] = $_configuration['root_sys']."main/auth/cas/login.php";
  56. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys']."main/auth/cas/newUser.php";
  57. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  58. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  59. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys']."main/auth/external_login/login.ldap.php";
  60. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.ldap.php";
  61. //
  62. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  63. // -> Uncomment the line bellow to activate Facebook Auth AND edit app/config/auth.conf.php for configuration
  64. // $_configuration['facebook_auth'] = 1;
  65. //
  66. // OTHER EXTERNAL LOGIN INFORMATION
  67. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  68. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.php";
  69. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys']."main/auth/external_login/updateUser.php";
  70. /**
  71. *
  72. * Hosting settings - Allows you to set limits to the Chamilo portal when
  73. * hosting it for a third party. These settings can be overwritten by an
  74. * optionally-loaded extension file with only the settings (no comments).
  75. * The settings use an index at the first level to represent the ID of the
  76. * URL in case you use multi-url (otherwise it will always use 1, which is
  77. * the ID of the only URL inside the access_url table).
  78. */
  79. // Set a maximum number of users. Default (0) = no limit
  80. $_configuration[1]['hosting_limit_users'] = 0;
  81. // Set a maximum number of teachers. Default (0) = no limit
  82. $_configuration[1]['hosting_limit_teachers'] = 0;
  83. // Set a maximum number of courses. Default (0) = no limit
  84. $_configuration[1]['hosting_limit_courses'] = 0;
  85. // Set a maximum number of sessions. Default (0) = no limit
  86. $_configuration[1]['hosting_limit_sessions'] = 0;
  87. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
  88. // Default (0) = no limit
  89. $_configuration[1]['hosting_limit_disk_space'] = 0;
  90. // Set a maximum number of usable courses. Default (0) = no limit.
  91. // Should always be lower than the hosting_limit_courses.
  92. // If set, defining a course as "hidden" will free room for
  93. // new courses (up to the hosting_limit_courses, if any value is set there).
  94. // hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden.
  95. $_configuration[1]['hosting_limit_active_courses'] = 0;
  96. // Email to warn if limit was reached.
  97. //$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
  98. // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
  99. // Check main/cron/hosting_total_size_limit.php for how to use this limit.
  100. $_configuration['hosting_total_size_limit'] = 0;
  101. /**
  102. * Content Delivery Network (CDN) settings. Only use if you need a separate
  103. * server to serve your static data. If you don't know what a CDN is, you
  104. * don't need it. These settings are for simple Origin Pull CDNs and are
  105. * experimental. Enable only if you really know what you're doing.
  106. * This might conflict with multiple-access urls.
  107. */
  108. // Set the following setting to true to start using the CDN
  109. $_configuration['cdn_enable'] = false;
  110. // The following setting will be ignored if the previous one is set to false
  111. $_configuration['cdn'] = array(
  112. // You can define several CDNs and split them by extensions
  113. // Replace the following by your full CDN URL, which should point to
  114. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  115. 'http://cdn.chamilo.org' => array(
  116. '.css',
  117. '.js',
  118. '.jpg',
  119. '.jpeg',
  120. '.png',
  121. '.gif',
  122. '.avi',
  123. '.flv'
  124. ),
  125. // copy the line above and modify following your needs
  126. );
  127. /**
  128. * Misc. settings
  129. */
  130. // Security word for password recovery
  131. $_configuration['security_key'] = '{SECURITY_KEY}';
  132. // Hash function method
  133. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  134. // You may have to restart your web server if you change this
  135. $_configuration['session_stored_in_db'] = false;
  136. // Session lifetime
  137. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  138. // Activation for multi-url access
  139. // When enabling multi-url, settings can be configured by multi-url using a simple
  140. // sub-element. E.g. $_configuration['session_lifetime'][1] = true; could be turned into
  141. // something like $_configuration['session_lifetime'][2] = false; to affect only URL
  142. // with ID 2. The ID can be found in the access_url table.
  143. //$_configuration['multiple_access_urls'] = true;
  144. $_configuration['software_name'] = 'Chamilo';
  145. $_configuration['software_url'] = 'https://chamilo.org/';
  146. // Deny the elimination of users
  147. $_configuration['deny_delete_users'] = false;
  148. // Version settings
  149. $_configuration['system_version'] = '{NEW_VERSION}';
  150. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  151. /**
  152. * Settings to be included as settings_current in future versions
  153. */
  154. // Uncomment the following to prevent all admins to use the "login as" feature
  155. //$_configuration['login_as_forbidden_globally'] = true;
  156. // If session_stored_in_db is false, an alternative session storage mechanism
  157. // can be used, which allows for a volatile storage in Memcache, and a more
  158. // permanent "backup" storage in the database, every once in a while (see
  159. // frequency). This is generally used in HA clusters configurations
  160. // This requires memcache or memcached and the php5-memcache module to be setup
  161. //$_configuration['session_stored_in_db_as_backup'] = true;
  162. // Define the different memcache servers available
  163. //$_configuration['memcache_server'] = array(
  164. // 0 => array(
  165. // 'host' => 'chamilo8',
  166. // 'port' => '11211',
  167. // ),
  168. // 1 => array(
  169. // 'host' => 'chamilo9',
  170. // 'port' => '11211',
  171. // ),
  172. //);
  173. // Define the frequency to which the data must be stored in the database
  174. //$_configuration['session_stored_after_n_times'] = 10;
  175. // If the database is down this css style will be used to show the errors.
  176. //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
  177. // The default template that will be use in the system.
  178. //$_configuration['default_template'] = 'default'; // (main/template/default)
  179. // Hide fields in the main/user/user.php page
  180. //$_configuration['hide_user_field_from_list'] = ['fields' => ['username']];
  181. // Aspell Settings
  182. //$_configuration['aspell_bin'] = '/usr/bin/hunspell';
  183. //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
  184. //$_configuration['aspell_temp_dir'] = './';
  185. // Custom name_order_conventions
  186. //$_configuration['name_order_conventions'] = array(
  187. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  188. //);
  189. // Course log - Default columns to hide
  190. //$_configuration['course_log_hide_columns'] = array(1, 9);
  191. // Unoconv binary file
  192. //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
  193. // Proxy settings for access external services
  194. /*$_configuration['proxy_settings'] = [
  195. 'stream_context_create' => [
  196. 'http' => [
  197. 'proxy' => 'tcp://example.com:8080',
  198. 'request_fulluri' => true
  199. ]
  200. ],
  201. 'curl_setopt_array' => [
  202. 'CURLOPT_PROXY' => 'http://example.com',
  203. 'CURLOPT_PROXYPORT' => '8080'
  204. ]
  205. ];*/
  206. // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
  207. //$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
  208. // Only shows the fields in this list
  209. /*$_configuration['allow_fields_inscription'] = [
  210. 'fields' => [
  211. 'official_code',
  212. 'phone',
  213. 'status',
  214. 'language'
  215. ],
  216. 'extra_fields' => [
  217. 'birthday'
  218. ]
  219. ];*/
  220. // Boost option to ignore encoding check for learning paths
  221. //$_configuration['lp_fixed_encoding'] = 'false';
  222. // Fix urls changing http with https in scorm packages.
  223. //$_configuration['lp_replace_http_to_https'] = false;
  224. // Fix embedded videos inside lps, adding an optional popup
  225. //$_configuration['lp_fix_embed_content'] = false;
  226. // Manage deleted files marked with "DELETED" (by course and only by allowed by admin)
  227. //$_configuration['document_manage_deleted_files'] = false;
  228. // Hide tabs in the main/session/index.php page
  229. //$_configuration['session_hide_tab_list'] = array();
  230. // Show invisible exercise in LP list
  231. //$_configuration['show_invisible_exercise_in_lp_list'] = false;
  232. // Chamilo is installed/downloaded. Packagers can change this
  233. // to reflect their packaging method. The default value is 'chamilo'. This will
  234. // be reflected on the https://version.chamilo.org/stats page in the future.
  235. //$_configuration['packager'] = 'chamilo';
  236. // If true exercises added in LP can be modified.
  237. //$_configuration['force_edit_exercise_in_lp'] = false;
  238. // List of driver to plugin in ckeditor
  239. //$_configuration['editor_driver_list'] = ['PersonalDriver', 'CourseDriver'];
  240. // Hide send to hrm users options in announcements
  241. //$_configuration['announcements_hide_send_to_hrm_users'] = true;
  242. // Hide certificate link in index/userportal pages
  243. //$_configuration['hide_my_certificate_link'] = false;
  244. // Hide header and footer in certificate pdf
  245. //$_configuration['hide_header_footer_in_certificate'] = false;
  246. // Security: block direct access from logged in users to contents in OPEN (but not public) courses. Set to true to block
  247. //$_configuration['block_registered_users_access_to_open_course_contents'] = false;
  248. // Allows syncing the database with the current entity schema
  249. //$_configuration['sync_db_with_schema'] = false;
  250. // When exporting a LP, all files and folders in the same path of an html will be exported too.
  251. //$_configuration['add_all_files_in_lp_export'] = false;
  252. // Send exercise student score to manager in email notification
  253. //$_configuration['send_score_in_exam_notification_mail_to_manager'] = false;
  254. // Show blocked LPs by prerequisite to students
  255. //$_configuration['show_prerequisite_as_blocked'] = false;
  256. // Mail header extra HTML attributes
  257. //$_configuration['mail_header_style'] = '';
  258. // Mail body extra HTML attributes
  259. //$_configuration['mail_content_style'] = '';
  260. // Show all agenda events in personal agenda from all session no matter the visibility.
  261. //$_configuration['personal_agenda_show_all_session_events'] = false;
  262. // Allows to redirect to the session after the inscription in session about
  263. // $_configuration['allow_redirect_to_session_after_inscription_about'] = false;
  264. // Allows to do a remove_XSS in course introduction with user status COURSEMANAGERLOWSECURITY
  265. // in order to accept all embed type videos (like vimeo, wistia, etc)
  266. // $_configuration['course_introduction_html_strict_filtering'] = true;
  267. // Prevents the duplicate upload in assignments
  268. // $_configuration['assignment_prevent_duplicate_upload'] = false;
  269. //Show student progress in My courses page
  270. //$_configuration['course_student_info']['score'] = false;
  271. //$_configuration['course_student_info']['progress'] = false;
  272. //$_configuration['course_student_info']['certificate'] = false;
  273. // Set ConsideredWorkingTime work extra field variable to show in MyStudents page works report
  274. // (with internal id 'work_time' as below) and enable the following line to show in MyStudents page works report
  275. // $_configuration['considered_working_time'] = 'work_time';
  276. // During CSV special imports update users emails to x@example.com
  277. // $_configuration['update_users_email_to_dummy_except_admins'] = false;
  278. // Certification pdf export orientation
  279. // $_configuration['certificate_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape'
  280. // Hide main navigation menu (left column in userportal)
  281. // $_configuration['hide_main_navigation_menu'] = false;
  282. // PDF image dpi value. Default value 96
  283. // $_configuration['pdf_img_dpi'] = 96;
  284. // Hide LP time in reports.
  285. // $_configuration['hide_lp_time'] = false;
  286. // Hide rating elements in pages ("Courses catalog" & "Most Popular courses")
  287. // $_configuration['hide_course_rating'] = false;
  288. // Customize password generation and verification
  289. /*$_configuration['password_requirements'] = [
  290. 'min' => [
  291. 'lowercase' => 2,
  292. 'uppercase' => 2,
  293. 'numeric' => 2,
  294. 'length' => 8
  295. ]
  296. ];*/
  297. // Customize course session tracking columns
  298. /*
  299. $_configuration['tracking_columns'] = [
  300. 'course_session' => [
  301. 'course_title' => true,
  302. 'published_exercises' => true,
  303. 'new_exercises' => true,
  304. 'my_average' => true,
  305. 'average_exercise_result' => true,
  306. 'time_spent' => true,
  307. 'lp_progress' => true,
  308. 'score' => true,
  309. 'best_score' => true,
  310. 'last_connection' => true,
  311. 'details' => true,
  312. ],
  313. 'my_students_lp' => [
  314. 'lp' => true,
  315. 'time' => true,
  316. 'best_score' => true,
  317. 'latest_attempt_avg_score' => true,
  318. 'progress' => true,
  319. 'last_connection' => true,
  320. ],
  321. 'my_progress_lp' => [
  322. 'lp' => true,
  323. 'time' => true,
  324. 'progress' => true,
  325. 'score' => true,
  326. 'best_score' => true,
  327. 'last_connection' => true,
  328. ]
  329. ];
  330. */
  331. // Hide session link of course_block on index/userportal
  332. //$_configuration['remove_session_url']= false ;
  333. //
  334. //
  335. // ------ AGENDA CONFIGURATION SETTINGS
  336. // Shows a legend in the agenda tool
  337. /*
  338. $_configuration['agenda_legend'] = [
  339. 'red' => 'red caption',
  340. '#f0f' => 'another caption'
  341. ];*/
  342. // Set customs colors to agenda events
  343. /*
  344. $_configuration['agenda_colors'] = [
  345. 'platform' => 'red',
  346. 'course' => '#458B00',
  347. 'group' => '#A0522D',
  348. 'session' => '#00496D',
  349. 'other_session' => '#999',
  350. 'personal' => 'steel blue',
  351. 'student_publication' => '#FF8C00'
  352. ];
  353. */
  354. // ------
  355. //
  356. // Save some tool titles with HTML editor
  357. // $_configuration['save_titles_as_html'] = false;
  358. // Show the full toolbar set to all CKEditor
  359. //$_configuration['full_ckeditor_toolbar_set'] = false;
  360. // Allow change the orientation when export a (course progress) thematic to pdf. Portrait or landscape
  361. //$_configuration['thematic_pdf_orientation'] = 'landscape';
  362. // Show number of users in session list
  363. //$_configuration['session_list_show_count_users'] = false;
  364. // Session admin access to all course content
  365. //$_configuration['session_admins_access_all_content'] = false;
  366. // Adds roles to the system announcements (requires DB change BT#12476)
  367. //$_configuration['system_announce_extra_roles'] = false;
  368. // Limits the features that a session admin has access to from the main admin panel (removes users import and usergroups)
  369. //$_configuration['limit_session_admin_role'] = false;
  370. // Course tools visibility edition in sessions
  371. //$_configuration['allow_edit_tool_visibility_in_session'] = false;
  372. // Enable the support to ODF files
  373. //$_configuration['enabled_support_odf'] = true;
  374. // Pdf orientation when exporting documents
  375. // $_configuration['document_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape'
  376. // Use alternative footer when exporting document to PDF
  377. //$_configuration['use_alternative_document_pdf_footer'] = false;
  378. // If the MySpace page takes too long to load, you might want to remove the
  379. // processing of generic statistics for the user. In this case set the following to true.
  380. //$_configuration['tracking_skip_generic_data'] = false;
  381. // Show view accordion lp_category
  382. //$_configuration['lp_category_accordion'] = false;
  383. //
  384. // ------ HTTP headers security
  385. // This section relates to options to increase the security of your Chamilo
  386. // portal against attacks specifically focused on HTTP headers vulnerabilities
  387. // These are all disabled by default, because some of these settings might
  388. // affect some features of Chamilo, like the inclusion of iframes or the
  389. // submission of forms by anonymous users. Please make sure you do the due
  390. // tests before enabling in production. Learn more about how to form secure
  391. // headers at https://securityheaders.io/
  392. //
  393. // HTTP Strict Transport Security is an excellent feature to support on your
  394. // site and strengthens your implementation of TLS by getting the User Agent
  395. // to enforce the use of HTTPS. Recommended value
  396. // "strict-transport-security: max-age=31536000; includeSubDomains".
  397. //$_configuration['security_strict_transport'] = 'strict-transport-security: max-age=31536000; includeSubDomains';
  398. //
  399. // Content Security Policy is an effective measure to protect your site from
  400. // XSS attacks. By whitelisting sources of approved content, you can prevent
  401. // the browser from loading malicious assets.
  402. // The provided default is an *example*, please customize.
  403. // This setting is particularly complicated to set with CKeditor, but if you
  404. // add all domains that you want to authorize for iframes inclusion in the
  405. // child-src statement, this example should work for you
  406. //$_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;';
  407. //$_configuration['security_content_policy_report_only'] = 'default-src \'self\'; script-src *://*.google.com:*';
  408. //
  409. // HTTP Public Key Pinning protects your site from MiTM attacks using rogue
  410. // X.509 certificates. By whitelisting only the identities that the browser
  411. // should trust, your users are protected in the event a certificate
  412. // authority is compromised.
  413. //$_configuration['security_public_key_pins'] = '';
  414. //$_configuration['security_public_key_pins_report_only'] = '';
  415. //
  416. // X-Frame-Options tells the browser whether you want to allow your site to
  417. // be framed or not. By preventing a browser from framing your site you can
  418. // defend against attacks like clickjacking.
  419. // Recommended value "x-frame-options: SAMEORIGIN".
  420. //$_configuration['security_x_frame_options'] = 'x-frame-options: SAMEORIGIN';
  421. //
  422. // X-XSS-Protection sets the configuration for the cross-site scripting
  423. // filter built into most browsers.
  424. // Recommended value "X-XSS-Protection: 1; mode=block".
  425. //$_configuration['security_xss_protection'] = 'X-XSS-Protection: 1; mode=block';
  426. //
  427. // X-Content-Type-Options stops a browser from trying to MIME-sniff the
  428. // content type and forces it to stick with the declared content-type. The only
  429. // valid value for this header is "X-Content-Type-Options: nosniff".
  430. //$_configuration['security_x_content_type_options'] = 'X-Content-Type-Options: nosniff';
  431. //
  432. // Referrer Policy is a new header that allows a site to control how much
  433. // information the browser includes with navigation away from a document
  434. // and should be set by all sites.
  435. //$_configuration['security_referrer_policy'] = 'origin-when-cross-origin';
  436. // ------ HTTP headers security section ends here
  437. //
  438. // ------ Survey configuration settings
  439. // Add answered_at field in table survey_invitation
  440. // Requires DB change:
  441. // ALTER TABLE c_survey_invitation ADD answered_at DATETIME DEFAULT NULL;
  442. //$_configuration['survey_answered_at_field'] = false;
  443. // Add support to mandatory surveys. The user will not be able to enter to the course until fill the mandatory surveys
  444. // Requires DB change:
  445. /*
  446. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at)
  447. VALUES (12, 13, 'is_mandatory', 'IsMandatory', 1, 1, NOW());
  448. */
  449. //$_configuration['allow_mandatory_survey'] = false;
  450. // Allow required survey questions. Applies to yesno/multiplechoice question type. Requires DB change:
  451. /*
  452. ALTER TABLE c_survey_question ADD is_required TINYINT(1) DEFAULT 0 NOT NULL;
  453. */
  454. //$_configuration['allow_required_survey_questions'] = false;
  455. // Hide Survey Reporting button
  456. //$_configuration['hide_survey_reporting_button'] = false;
  457. // Hide survey edition tools for all or some surveys.
  458. //Set an asterisk to hide for all, otherwise set an array with the survey codes in which the options will be blocked
  459. //$_configuration['hide_survey_edition'] = ['codes' => []];
  460. // ------
  461. // Allow career diagram, requires a DB change:
  462. //UPDATE extra_field_values SET created_at = NULL WHERE CAST(created_at AS CHAR(20)) = '0000-00-00 00:00:00';
  463. //UPDATE extra_field_values SET updated_at = NULL WHERE CAST(updated_at AS CHAR(20)) = '0000-00-00 00:00:00';
  464. //ALTER TABLE extra_field_values modify column value longtext null;
  465. //$_configuration['allow_career_diagram'] = false;
  466. // Allow scheduled emails to session users.
  467. //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;
  468. //$_configuration['allow_scheduled_announcements'] = false;
  469. // Add the list of emails as a bcc when sending an email.
  470. /*
  471. $_configuration['send_all_emails_to'] = [
  472. 'emails' => [
  473. 'admin1@example.com',
  474. 'admin2@example.com',
  475. ]
  476. ];*/
  477. // Allow ticket projects to be access by specific chamilo roles
  478. /*$_configuration['ticket_project_user_roles'] = [
  479. 'permissions' => [
  480. 1 => [17] // project_id = 1, STUDENT_BOSS = 17
  481. ]
  482. ];*/
  483. //
  484. // Exercises configuration settings
  485. // Send only quiz answer notifications to course coaches and not general coach
  486. //$_configuration['block_quiz_mail_notification_general_coach'] = false;
  487. // Show question feedback (requires DB change: "ALTER TABLE c_quiz_question ADD COLUMN feedback text;")
  488. //$_configuration['allow_quiz_question_feedback'] = false;
  489. // Add option in exercise to show or hide the "previous" button.
  490. //ALTER TABLE c_quiz ADD show_previous_button TINYINT(1) DEFAULT 1;
  491. //$_configuration['allow_quiz_show_previous_button_setting'] = false;
  492. // Allow to teachers review exercises question with audio notes
  493. //$_configuration["allow_teacher_comment_audio"] = false;
  494. // Hide search form in session list
  495. //$_configuration['hide_search_form_in_session_list'] = false;
  496. // Allow exchange of messages from teachers/bosses about a user.
  497. //$_configuration['private_messages_about_user'] = false;
  498. // Allow send email notification per exercise
  499. //ALTER TABLE c_quiz ADD COLUMN notifications VARCHAR(255) NULL DEFAULT NULL;
  500. //$_configuration['allow_notification_setting_per_exercise'] = false;
  501. // Hide free/oral/annotation question result see BT#12613
  502. //$_configuration['hide_free_question_score'] = false;
  503. // Hide user information in the quiz result's page
  504. //$_configuration['hide_user_info_in_quiz_result'] = false;
  505. // Score model
  506. // Allow to convert a score into a text/color label
  507. // using a model if score is inside those values. See BT#12898
  508. /*
  509. $_configuration['score_grade_model'] = [
  510. 'models' => [
  511. [
  512. 'id' => 1,
  513. 'name' => 'ThisIsMyModel', // Value will be translated using get_lang
  514. 'score_list' => [
  515. [
  516. 'name' => 'VeryBad', // Value will be translated using get_lang
  517. 'css_class' => 'btn-danger',
  518. 'min' => 0,
  519. 'max' => 20,
  520. 'score_to_qualify' => 0
  521. ],
  522. [
  523. 'name' => 'Bad',
  524. 'css_class' => 'btn-danger',
  525. 'min' => 21,
  526. 'max' => 50,
  527. 'score_to_qualify' => 25
  528. ],
  529. [
  530. 'name' => 'Good',
  531. 'css_class' => 'btn-warning',
  532. 'min' => 51,
  533. 'max' => 70,
  534. 'score_to_qualify' => 60
  535. ],
  536. [
  537. 'name' => 'VeryGood',
  538. 'css_class' => 'btn-success',
  539. 'min' => 71,
  540. 'max' => 100,
  541. 'score_to_qualify' => 100
  542. ]
  543. ]
  544. ]
  545. ]
  546. ];
  547. */
  548. // Allow show link to request relation between HRM and user
  549. //$_configuration['show_link_request_hrm_user'] = false;
  550. // Allow CKEditor start up with ShowBlocks plugin active
  551. //$_configuration['ckeditor_startup_outline_blocks'] = false;
  552. // SETTINGS FOR USER COURSE LIST
  553. // Manage the links to Session Index page
  554. // 1 = Default. Works as it is now (default is to link to the special session page)
  555. // 0 = No link (not clickable)
  556. // 2 = Link to the course if there is only one course
  557. // 3 = Session link will make course list foldable
  558. //$_configuration['courses_list_session_title_link'] = 1;
  559. // New grid view the list of courses
  560. //$_configuration['view_grid_courses'] = 'true';
  561. // Show courses grouped by categories when $_configuration['view_grid_courses'] is enabled
  562. //$_configuration['view_grid_courses_grouped_categories_in_sessions'] = true;
  563. // Load course notifications in user_portal.php using ajax
  564. //$_configuration['user_portal_load_notification_by_ajax'] = false;
  565. // Hide the "what's new" icon notifications in course list
  566. // $_configuration['hide_course_notification'] = true;
  567. // Show less session information in course list
  568. //$_configuration['show_simple_session_info'] = true;
  569. // Show course category list on My Courses page before the courses. Requires a DB change
  570. //ALTER TABLE course_category ADD image varchar(255) NULL;
  571. //ALTER TABLE course_category ADD description LONGTEXT NULL;
  572. //$_configuration['my_courses_list_as_category'] = false;
  573. // ------
  574. // Skills can only visible for admins, teachers (related to a user via a course),
  575. // and HRM users (if related to a user).
  576. // $_configuration['allow_private_skills'] = false;
  577. // Additional gradebook dependencies BT#13099
  578. // ALTER TABLE gradebook_category ADD COLUMN depends TEXT DEFAULT NULL;
  579. // ALTER TABLE gradebook_category ADD COLUMN minimum_to_validate INT DEFAULT NULL;
  580. // $_configuration['gradebook_dependency'] = false;
  581. // Courses id list to check in the gradebook sidebar see BT#13099
  582. /*$_configuration['gradebook_dependency_mandatory_courses'] = [
  583. 'courses' => [1, 2]
  584. ];*/
  585. // Gradebook id list needed to build the gradebook sidebar see BT#13099
  586. /*
  587. $_configuration['gradebook_badge_sidebar'] = [
  588. 'gradebooks' => [1, 2, 3]
  589. ];*/
  590. // Show language selector in main menu an update the language in the user's
  591. // profile.
  592. //$_configuration['show_language_selector_in_menu'] = false;
  593. // When using the my-courses list filter by category, set this option to true
  594. // to only show courses in the user's configured language
  595. // $_configuration['my_courses_show_courses_in_user_language_only'] = false;
  596. // Hide base course announcements when entering a group.
  597. //$_configuration['hide_base_course_announcements_in_group'] = false;
  598. // Allow or block user subcriptions to a lp/lp category
  599. /*$_configuration['lp_subscription_settings'] = [
  600. 'options' => [
  601. 'allow_add_users_to_lp' => true,
  602. 'allow_add_users_to_lp_category' => true,
  603. ]
  604. ];*/
  605. // Allow public courses access with no terms and conditions validation.
  606. //$_configuration['allow_public_course_with_no_terms_conditions'] = false;