Files
Chamilo/main/install/install_files.inc.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

54 lines
1.8 KiB
PHP

<?php
/* For licensing terms, see /license.txt */
/**
* Install the Chamilo files
* Notice : This script has to be included by install/index.php.
*
* The script creates two files:
* - configuration.php, the file that contains very important info for Chamilo
* such as the database names.
* - .htaccess file (in the courses directory) that is optional but improves
* security
*
* @package chamilo.install
*/
if (defined('SYSTEM_INSTALLATION')) {
// Write the system config file
write_system_config_file(api_get_path(CONFIGURATION_PATH).'configuration.php');
// Write a distribution file with the config as a backup for the admin
//write_system_config_file(api_get_path(CONFIGURATION_PATH) . 'configuration.dist.php');
// Write a .htaccess file in the course repository
//write_courses_htaccess_file($urlAppendPath);
// Copy distribution files with renaming for being the actual system configuration files.
copy(
api_get_path(CONFIGURATION_PATH).'add_course.conf.dist.php',
api_get_path(CONFIGURATION_PATH).'add_course.conf.php'
);
copy(
api_get_path(CONFIGURATION_PATH).'course_info.conf.dist.php',
api_get_path(CONFIGURATION_PATH).'course_info.conf.php'
);
copy(
api_get_path(CONFIGURATION_PATH).'mail.conf.dist.php',
api_get_path(CONFIGURATION_PATH).'mail.conf.php'
);
copy(
api_get_path(CONFIGURATION_PATH).'profile.conf.dist.php',
api_get_path(CONFIGURATION_PATH).'profile.conf.php'
);
copy(
api_get_path(CONFIGURATION_PATH).'events.conf.dist.php',
api_get_path(CONFIGURATION_PATH).'events.conf.php'
);
copy(
api_get_path(CONFIGURATION_PATH).'auth.conf.dist.php',
api_get_path(CONFIGURATION_PATH).'auth.conf.php'
);
} else {
echo 'You are not allowed here !'.__FILE__;
}