configuration.dist.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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 name
  30. $_configuration['main_database'] = '{DATABASE_MAIN}';
  31. // Database username
  32. $_configuration['db_user'] = '{DATABASE_USER}';
  33. // Database password
  34. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  35. // Enable access to database management for platform admins.
  36. $_configuration['db_manager_enabled'] = false;
  37. /**
  38. * Directory settings
  39. */
  40. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  41. $_configuration['root_web'] = '{ROOT_WEB}';
  42. // Path to the webroot of system, example: /var/www/
  43. $_configuration['root_sys'] = '{ROOT_SYS}';
  44. // Path from your WWW-root to the root of your Chamilo installation,
  45. // example: chamilo (this means chamilo is installed in /var/www/chamilo/
  46. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  47. // URL to your phpMyAdmin installation.
  48. // If not empty, a link will be available in the Platform Administration
  49. $_configuration['db_admin_path'] = '';
  50. /**
  51. * Login modules settings
  52. */
  53. // CAS IMPLEMENTATION
  54. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  55. // You can leave these lines uncommented even if you don't use CAS authentification
  56. //$extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php";
  57. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php";
  58. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  59. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  60. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  61. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";
  62. //
  63. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  64. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  65. // $_configuration['facebook_auth'] = 1;
  66. //
  67. // OTHER EXTERNAL LOGIN INFORMATION
  68. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  69. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php";
  70. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
  71. /**
  72. *
  73. * Hosting settings - Allows you to set limits to the Chamilo portal when
  74. * hosting it for a third party. These settings can be overwritten by an
  75. * optionally-loaded extension file with only the settings (no comments).
  76. * The settings use an index at the first level to represent the ID of the
  77. * URL in case you use multi-url (otherwise it will always use 1, which is
  78. * the ID of the only URL inside the access_url table).
  79. */
  80. // Set a maximum number of users. Default (0) = no limit
  81. $_configuration[1]['hosting_limit_users'] = 0;
  82. // Set a maximum number of teachers. Default (0) = no limit
  83. $_configuration[1]['hosting_limit_teachers'] = 0;
  84. // Set a maximum number of courses. Default (0) = no limit
  85. $_configuration[1]['hosting_limit_courses'] = 0;
  86. // Set a maximum number of sessions. Default (0) = no limit
  87. $_configuration[1]['hosting_limit_sessions'] = 0;
  88. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
  89. // Default (0) = no limit
  90. $_configuration[1]['hosting_limit_disk_space'] = 0;
  91. // Set a maximum number of usable courses. Default (0) = no limit.
  92. // Should always be lower than the hosting_limit_courses.
  93. // If set, defining a course as "hidden" will free room for
  94. // new courses (up to the hosting_limit_courses, if any value is set there).
  95. // hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden.
  96. $_configuration[1]['hosting_limit_active_courses'] = 0;
  97. // Email to warn if limit was reached.
  98. //$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
  99. // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
  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. // Verbose backup
  131. $_configuration['verbose_backup'] = false;
  132. // security word for password recovery
  133. $_configuration['security_key'] = '{SECURITY_KEY}';
  134. // Hash function method
  135. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  136. // You may have to restart your web server if you change this
  137. $_configuration['session_stored_in_db'] = false;
  138. // Session lifetime
  139. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  140. // Activation for multi-url access
  141. //$_configuration['multiple_access_urls'] = true;
  142. $_configuration['software_name'] = 'Chamilo';
  143. $_configuration['software_url'] = 'http://www.chamilo.org/';
  144. //Deny the elimination of users
  145. $_configuration['deny_delete_users'] = false;
  146. // Version settings
  147. $_configuration['system_version'] = '{NEW_VERSION}';
  148. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  149. /**
  150. * Settings to be included as settings_current in future versions
  151. */
  152. // Hide the main home section for connected users (to show announcements instead)
  153. //$_configuration['hide_home_top_when_connected'] = true;
  154. // Hide the global announcements for non-connected users
  155. //$_configuration['hide_global_announcements_when_not_connected'] = true;
  156. // Use this course as template for all new courses (define course real ID as value)
  157. //$_configuration['course_creation_use_template'] = 14;
  158. // Uncomment the following to prevent all admins to use the "login as" feature
  159. //$_configuration['login_as_forbidden_globally'] = true;
  160. // Add password strength checker
  161. //$_configuration['allow_strength_pass_checker'] = true;
  162. // Enable captcha
  163. //$_configuration['enable_captcha'] = true;
  164. //$_configuration['allow_captcha'] = true;
  165. // Prevent account from logging in for a certain amount of time
  166. // if captcha is wrong for the specified number of times
  167. //$_configuration['captcha_number_mistakes_to_block_account'] = 5;
  168. // Prevent account from logging in for the specified number of minutes
  169. //$_configuration['captcha_time_to_block'] = 5;//minutes
  170. // Allow DRH role to access all content and users from the sessions he follows
  171. //$_configuration['drh_can_access_all_session_content'] = true;
  172. // Display group's forum in general forum tool
  173. //$_configuration['display_groups_forum_in_general_tool'] = true;
  174. // Boost query on last connection time
  175. //$_configuration['save_user_last_login'] = true;
  176. // Allow course tutors in sessions to add existing students to their session
  177. //$_configuration['allow_tutors_to_assign_students_to_session'] = 'false';
  178. // Allow select the return link in the LP view
  179. //$_configuration['allow_lp_return_link'] = false;
  180. // If true the export link is blocked.
  181. //$_configuration['hide_scorm_export_link'] = false;
  182. // If true the copy link is blocked.
  183. //$_configuration['hide_scorm_copy_link'] = false;
  184. // If true the pdf export link is blocked.
  185. //$_configuration['hide_scorm_pdf_link'] = false;
  186. // Default session days before coach access
  187. //$_configuration['session_days_before_coach_access'] = 0;
  188. // Default session days after coach access
  189. //$_configuration['session_days_after_coach_access'] = 0;
  190. // PDF Logo header located in main/css/xxx/images/pdf_logo_header.png
  191. //$_configuration['pdf_logo_header'] = false;
  192. // Order inscription user list by official_code
  193. //$_configuration['order_user_list_by_official_code'] = false;
  194. // Default course setting "email_alert_manager_on_new_quiz"
  195. //$_configuration['email_alert_manager_on_new_quiz'] = 1;
  196. // If session_stored_in_db is false, an alternative session storage mechanism
  197. // can be used, which allows for a volatile storage in Memcache, and a more
  198. // permanent "backup" storage in the database, every once in a while (see
  199. // frequency). This is generally used in HA clusters configurations
  200. // This requires memcache or memcached and the php5-memcache module to be setup
  201. //$_configuration['session_stored_in_db_as_backup'] = true;
  202. // Define the different memcache servers available
  203. //$_configuration['memcache_server'] = array(
  204. // 0 => array(
  205. // 'host' => 'chamilo8',
  206. // 'port' => '11211',
  207. // ),
  208. // 1 => array(
  209. // 'host' => 'chamilo9',
  210. // 'port' => '11211',
  211. // ),
  212. //);
  213. // Define the frequency to which the data must be stored in the database
  214. //$_configuration['session_stored_after_n_times'] = 10;
  215. // Show official code in exercise report list.
  216. //$_configuration['show_official_code_exercise_result_list'] = false;
  217. // One connection per user
  218. //$_configuration['prevent_multiple_simultaneous_login'] = false;
  219. // Hide private courses from course catalog
  220. //$_configuration['course_catalog_hide_private'] = false;
  221. // Display sessions catalog
  222. // 0 = show only courses; 1 = show only sessions; 2 = show courses and sessions
  223. //$_configuration['catalog_show_courses_sessions'] = 0;
  224. // Auto detect language custom pages.
  225. // $_configuration['auto_detect_language_custom_pages'] = true;
  226. // If the database is down this css style will be used to show the errors.
  227. //$_configuration['theme_fallback'] = 'chamilo'; // (main/css/chamilo)
  228. // The default template that will be use in the system.
  229. //$_configuration['default_template'] = 'default'; // (main/template/default)
  230. // Show reduce LP report
  231. //$_configuration['lp_show_reduced_report'] = false;
  232. //Allow session-to-session copy
  233. //$_configuration['allow_session_course_copy_for_teachers'] = true;
  234. // Hide the logout button
  235. //$_configuration['hide_logout_button'] = true;
  236. // Hide fields in the main/user/user.php page
  237. //$_configuration['hide_user_field_from_list'] = array('username');
  238. // Aspell Settings
  239. //$_configuration['aspell_bin'] = '/usr/bin/hunspell';
  240. //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
  241. //$_configuration['aspell_temp_dir'] = './';
  242. // Prevent redirecting admin to admin page
  243. //$_configuration['redirect_admin_to_courses_list'] = true;
  244. // Shows the custom course icon instead of the classic green board icon
  245. //$_configuration['course_images_in_courses_list'] = false;
  246. // Which student publication will be taken when connected to the gradebook: first|last
  247. //$_configuration['student_publication_to_take_in_gradebook'] = 'first';
  248. // Show a filter by official code
  249. //$_configuration['certificate_filter_by_official_code'] = false;
  250. // Max quantity of fkceditor allowed in the exercise result page otherwise
  251. // Textareas are used.
  252. //$_configuration['exercise_max_ckeditors_in_page'] = 0;
  253. // Default upload option
  254. //$_configuration['document_if_file_exists_option'] = 'rename'; // overwrite
  255. // Enable add_gradebook_certificates.php cron task
  256. //$_configuration['add_gradebook_certificates_cron_task_enabled'] = true;
  257. // Which OpenBadges backpack send the badges
  258. //$_configuration['openbadges_backpack'] = 'https://backpack.openbadges.org/';
  259. // Custom name_order_conventions
  260. //$_configuration['name_order_conventions'] = array(
  261. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  262. //);
  263. // Shows a warning message explaining that the site uses cookies
  264. //$_configuration['cookie_warning'] = false;
  265. // Allows a comment field in the course calendar events. Requires DB change
  266. //$_configuration['allow_agenda_event_comment'] = false;
  267. // Filters administration users lists by the session admin who created them.
  268. // Change to true to restrict the visibility
  269. //$_configuration['prevent_session_admins_to_manage_all_users'] = false;
  270. // If there are any tool available and the user is not registered hide the group
  271. //$_configuration['hide_course_group_if_no_tools_available'] = false;
  272. // Allow student to enroll into a session without an approval needing
  273. //$_configuration['catalog_allow_session_auto_subscription'] = true;
  274. // Decode UTF-8 from Web Services (option passed to SOAP)
  275. //$_configuration['registration.soap.php.decode_utf8'] = false;
  276. // Show delete option in attendance
  277. //$_configuration['allow_delete_attendance'] = false;
  278. // Enable Gravatar profile image if no local image has been given
  279. //$_configuration['gravatar_enabled'] = true;
  280. // If Gravatar is enabled, tells which type of picture we want (default is "mm").
  281. // Options: mm | identicon | monsterid | wavatar
  282. //$_configuration['gravatar_type'] = 'mm';
  283. // Course log - Default columns to hide
  284. //$_configuration['course_log_hide_columns'] = array(1, 9);
  285. // Limit for the Session Admin role. The administration page show only
  286. // User block -> Add user
  287. // Course Sessions block -> Training session list
  288. //$_configuration['limit_session_admin_role'] = false;
  289. // Show session description
  290. //$_configuration['show_session_description'] = false;
  291. // Hide only for students the link to export certificates to PDF
  292. //$_configuration['hide_certificate_export_link_students'] = false;
  293. // Hide for all user roles the link to export certificates to PDF
  294. //$_configuration['hide_certificate_export_link'] = false;
  295. // Hide session course coach in dropbox sent to user list
  296. // $_configuration['dropbox_hide_course_coach'] = false;