dokeos-install
[ class tree: dokeos-install ] [ index: dokeos-install ] [ all elements ]

Source for file install_files.inc.php

Documentation is available at install_files.inc.php

  1. <?php // $Id: install_files.inc.php 11139 2007-02-17 15:43:14Z yannoo $
  2. /*
  3. ==============================================================================
  4.     Dokeos - elearning and course management software
  5.  
  6.     Copyright (c) 2004 Dokeos S.A.
  7.     Copyright (c) 2003 Ghent University (UGent)
  8.     Copyright (c) 2001 Universite catholique de Louvain (UCL)
  9.  
  10.     For a full list of contributors, see "credits.txt".
  11.     The full license can be read in "license.txt".
  12.  
  13.     This program is free software; you can redistribute it and/or
  14.     modify it under the terms of the GNU General Public License
  15.     as published by the Free Software Foundation; either version 2
  16.     of the License, or (at your option) any later version.
  17.  
  18.     See the GNU General Public License for more details.
  19.  
  20.     Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  21.     Mail: info@dokeos.com
  22. ==============================================================================
  23. */
  24. /**
  25. ==============================================================================
  26. * Install the Dokeos files
  27. * Notice : This script has to be included by install/index.php
  28. *
  29. * The script creates two files:
  30. * - configuration.php, the file that contains very important info for Dokeos
  31. *   such as the database names.
  32. * - .htaccess file (in the courses directory) that is optional but improves
  33. *   security
  34. *
  35. @package dokeos.install
  36. ==============================================================================
  37. */
  38.  
  39. if(defined('DOKEOS_INSTALL'))
  40. {
  41.     // Write the Dokeos config file
  42.     write_dokeos_config_file('../inc/conf/configuration.php');
  43.     // Write a distribution file with the config as a backup for the admin
  44.     write_dokeos_config_file('../inc/conf/configuration.dist.php');
  45.     // Write a .htaccess file in the course repository
  46.     write_courses_htaccess_file($urlAppendPath);
  47.     //copy distribution files into right names for Dokeos install
  48.     copy('../inc/conf/add_course.conf.dist.php','../inc/conf/add_course.conf.php');
  49.     copy('../inc/conf/course_info.conf.dist.php','../inc/conf/course_info.conf.php');
  50.     copy('../inc/conf/mail.conf.dist.php','../inc/conf/mail.conf.php');
  51.     copy('../inc/conf/profile.conf.dist.php','../inc/conf/profile.conf.php');
  52. }
  53. else
  54. {
  55.     echo 'You are not allowed here !';
  56. }
  57. ?>

Documentation generated on Thu, 12 Jun 2008 13:52:46 -0500 by phpDocumentor 1.4.1