configuration.dist.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. # DOKEOS version {DOKEOS_VERSION}
  3. # File generated by /install/index.php script - {DATE_GENERATED}
  4. /*
  5. ==============================================================================
  6. Dokeos - elearning and course management software
  7. Copyright (c) 2004-2005 Dokeos S.A.
  8. Copyright (c) 2003 Ghent University (UGent)
  9. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  10. For a full list of contributors, see "credits.txt".
  11. The full license can be read in "license.txt".
  12. This program is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU General Public License
  14. as published by the Free Software Foundation; either version 2
  15. of the License, or (at your option) any later version.
  16. See the GNU General Public License for more details.
  17. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  18. Mail: info@dokeos.com
  19. ==============================================================================
  20. */
  21. /*
  22. ==============================================================================
  23. Configuration of virtual campus
  24. This file contains a list of variables that can be modified by the campus
  25. site administrator. Pay attention when changing these variables, some changes
  26. can cause Dokeos to stop working.
  27. If you changed some settings and want to restore them, please have a look at
  28. configuration.php. That file is an exact copy of the config file at
  29. install time.
  30. ==============================================================================
  31. */
  32. /**
  33. * @todo change these into a $_configuration array. $_configuration will use only the bare essential variables
  34. * for configuring the platform (paths, database connections, ...). Changing a $_configuration variable
  35. * CAN break the installation.
  36. * Besides the $_configuration array there is also a $_settings array that contains variables that
  37. * can be changed and will not break the platform.
  38. * Some of the variables that are used here can move to the $_settings array (and thus be stored in the database)
  39. * example: $_configuration['tracking_enabled'] (assuming that the install script creates the necessary tables anyway.
  40. * $phpMyAdminPath
  41. *
  42. * @todo use more obvious names for the variables and respect the code guidelines
  43. */
  44. //============================================================================
  45. // MYSQL connection settings
  46. //============================================================================
  47. // Your MySQL server
  48. $_configuration['db_host'] = '{DATABASE_HOST}';
  49. // Your MySQL username
  50. $_configuration['db_user'] = '{DATABASE_USER}';
  51. // Your MySQL password
  52. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  53. //============================================================================
  54. // Database settings
  55. //============================================================================
  56. // Is tracking enabled?
  57. $_configuration['tracking_enabled'] = {TRACKING_ENABLED};
  58. // Is single database enabled (DO NOT MODIFY THIS)
  59. $_configuration['single_database'] = {SINGLE_DATABASE};
  60. // Prefix for course tables (IF NOT EMPTY, can be replaced by another prefix, else leave empty)
  61. $_configuration['table_prefix'] = '{COURSE_TABLE_PREFIX}';
  62. // Separator between database and table name (DO NOT MODIFY THIS)
  63. $_configuration['db_glue'] = '{DATABASE_GLUE}';
  64. // prefix all created bases (for courses) with this string
  65. $_configuration['db_prefix'] = '{DATABASE_PREFIX}';
  66. // main Dokeos database
  67. $_configuration['main_database'] = '{DATABASE_MAIN}';
  68. // stats Dokeos database
  69. $_configuration['statistics_database'] ='{DATABASE_STATS}';
  70. // Scorm Dokeos database
  71. $_configuration['scorm_database'] ='{DATABASE_SCORM}';
  72. // User Personal Database (where all the personal stuff of the user is stored
  73. // (personal agenda items, course sorting)
  74. $_configuration['user_personal_database'] ='{DATABASE_PERSONAL}';
  75. //============================================================================
  76. // Directory settings
  77. //============================================================================
  78. // URL to the root of your Dokeos installation, example: http://www.mydokeos.com
  79. $_configuration['root_web'] = '{ROOT_WEB}';
  80. // Path to the webroot of system, example: /var/www
  81. $_configuration['root_sys'] = '{ROOT_SYS}';
  82. // Path from your WWW-root to the root of your Dokeos installation, example: dokeos (this means dokeos is installed in /var/www/dokeos/
  83. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  84. // Directory of the Dokeos code. You could change this but it is not advised since this has not been tested yet.
  85. $_configuration['code_append'] = "main/";
  86. // Directory to store all course-related files. You could change this but it is not advised since this has not been tested yet.
  87. $_configuration['course_folder'] = "courses/";
  88. // @todo this shouldn't be here.
  89. // Directory of the admin-area
  90. $rootAdminAppend = "admin/";
  91. // Do not change the following values
  92. // @todo should be moved to api_get_path
  93. $clarolineRepositorySys = $_configuration['root_sys'].$_configuration['code_append'];
  94. $clarolineRepositoryWeb = $_configuration['root_web'].$_configuration['code_append'];
  95. $rootAdminSys = $clarolineRepositorySys.$rootAdminAppend;
  96. $rootAdminWeb = $clarolineRepositoryWeb.$rootAdminAppend;
  97. // directory to store archived courses
  98. $archiveDirName = "archive";
  99. // change this to a place out of web if you can
  100. $garbageRepositorySys = '{GARBAGE_DIR}';
  101. // URL to your phpMyAdmin installation.
  102. // If not empty, a link will be available in the Platform Administration
  103. $phpMyAdminPath = '';
  104. //============================================================================
  105. // Login modules settings
  106. //============================================================================
  107. // For new login module
  108. // Uncomment these lines to activate ldap
  109. // $extAuthSource["ldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/login.php";
  110. // $extAuthSource["ldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/newUser.php";
  111. //============================================================================
  112. // Misc. settings
  113. //============================================================================
  114. // Verbose backup
  115. $_configuration['verbose_backup'] = false;
  116. // security word for password recovery
  117. $_configuration['security_key'] = '{SECURITY_KEY}';
  118. // Settings for new and future features
  119. $userPasswordCrypted = {ENCRYPT_PASSWORD};
  120. // You may have to restart your web server if you change this
  121. $storeSessionInDb = false;
  122. // Session lifetime
  123. $_configuration['session_lifetime'] = {SESSION_LIFETIME};
  124. // Version settings
  125. $_configuration['dokeos_version'] = '{NEW_VERSION}';
  126. $_configuration['dokeos_stable'] = {NEW_VERSION_STABLE};
  127. ?>