configuration.dist.php 6.1 KB

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