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

Procedural File: global.inc.php

Source Location: /main/inc/global.inc.php



Page Details:

It is recommended that ALL dokeos scripts include this important file.

This script manages

  • http get, post, post_files, session, server-vars extraction into global namespace; (which doesn't occur anymore when servertype config setting is set to test, and which will disappear completely in Dokeos 1.6.1)
  • include of /conf/configuration.php;
  • include of several libraries: main_api, database, display, text, security;
  • selecting the main database;
  • include of language files.




Tags:

todo:  isn't configuration.php renamed to configuration.inc.php yet?
todo:  make it possible to enable / disable the tracking through the Dokeos config page.
todo:  use the $_configuration array for all the needed variables
todo:  remove the code that displays the button that links to the install page but use a redirect immediately. By doing so the $already_installed variable can be removed.
filesource:  Source Code for this file


Includes:

include($langpath.$language_interface.'/'.$language_file.'.inc.php') [line 395]
include($langpath.'english/'.$language_file.'.inc.php') [line 394]
include_once($includePath."/lib/online.inc.php") [line 217]
require($includePath."/local.inc.php") [line 213]
require_once(display.lib.php) [line 128]
require_once($main_configuration_file_path) [line 37]
It is recommended that ALL dokeos scripts include this important file.

This script manages

  • http get, post, post_files, session, server-vars extraction into global namespace; (which doesn't occur anymore when servertype config setting is set to test, and which will disappear completely in Dokeos 1.6.1)
  • include of /conf/configuration.php;
  • include of several libraries: main_api, database, display, text, security;
  • selecting the main database;
  • include of language files.




Tags:

todo:  isn't configuration.php renamed to configuration.inc.php yet?
todo:  make it possible to enable / disable the tracking through the Dokeos config page.
todo:  use the $_configuration array for all the needed variables
todo:  remove the code that displays the button that links to the install page but use a redirect immediately. By doing so the $already_installed variable can be removed.
filesource:  Source Code for this file
require_once(database.lib.php) [line 127]
require_once(security.lib.php) [line 130]
require_once(text.lib.php) [line 129]
require_once($includePath.'/lib/main_api.lib.php') [line 46]






Documentation generated on Thu, 12 Jun 2008 13:33:09 -0500 by phpDocumentor 1.4.1