install_files.inc.php 637 B

123456789101112131415161718192021
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Install the Chamilo files
  5. * Notice : This script has to be included by install/index.php.
  6. *
  7. * The script creates two files:
  8. * - configuration.php, the file that contains very important info for Chamilo
  9. * such as the database names.
  10. * - .htaccess file (in the courses directory) that is optional but improves
  11. * security
  12. *
  13. * @package chamilo.install
  14. */
  15. if (defined('SYSTEM_INSTALLATION')) {
  16. // Write the system config file
  17. write_system_config_file(api_get_path(SYS_PATH).'config/configuration.php');
  18. } else {
  19. echo 'You are not allowed here !'.__FILE__;
  20. }