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

Procedural File: update_files.inc.php

Source Location: /main/install/update_files.inc.php



Page Details:

Updates the Dokeos files from an older version IMPORTANT: This script has to be included by install/index.php and update_courses.php

DOKEOS_INSTALL is defined in the install/index.php DOKEOS_COURSE_UPDATE is defined in update_courses.php

When DOKEOS_INSTALL or DOKEOS_COURSE_UPDATE is defined, do for every course:

  • remove the .htaccess in the document folder
  • remove the index.php in the group folder
  • write a new group/index.php file, make it an empty html file
  • remove the index.php of the course folder
  • write a new index.php file in the course folder, with some settings
  • create a 'temp' directory in the course folder
  • move the course folder inside the courses folder of the new Dokeos installation
  • move the group documents from the group folder to the document folder, keeping subfolders intact
  • stores all documents inside the database (document and item_property tables)
  • remove the visibility field from the document table
  • update the item properties of the group documents
Additionally, when DOKEOS_INSTALL is defined
  • write a config file, configuration.php, with important settings
  • write a .htaccess file (with instructions for Apache) in the courses directory
  • remove the new main/upload/users directory and rename the main/img/users directory of the old version to main/upload/users
  • rename the old configuration.php to configuration.php.old, or if this fails delete the old configuration.php




Includes:

require_once('../inc/lib/fileManage.lib.php') [line 234]






fill_document_table [line 73]

boolean fill_document_table( $dir)

This function puts the documents of the upgraded courses into the necessary tables of the new version: the document and item_property tables.

It is used to upgrade from Dokeos 1.5.x versions to Dokeos 1.6




Tags:

return:  true if everything worked, false otherwise


Parameters

   $dir  
[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:15:13 +0200 by phpDocumentor 1.4.0