Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/install/install_files.inc.php

39 lines
1.4 KiB

<?php // $Id: install_files.inc.php 22577 2009-08-03 04:31:24Z yannoo $
/* 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 Dokeos
* 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('../inc/conf/configuration.php');
// Write a distribution file with the config as a backup for the admin
write_system_config_file('../inc/conf/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('../inc/conf/add_course.conf.dist.php', '../inc/conf/add_course.conf.php');
copy('../inc/conf/course_info.conf.dist.php', '../inc/conf/course_info.conf.php');
copy('../inc/conf/mail.conf.dist.php', '../inc/conf/mail.conf.php');
copy('../inc/conf/profile.conf.dist.php', '../inc/conf/profile.conf.php');
} else {
echo 'You are not allowed here !';
}