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:  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.
todo:  make it possible to enable / disable the tracking through the Dokeos config page.


Includes:

include(api_get_path(SYS_CODE_PATH).'lang/english/'.$language_file.'.inc.php') [line 332]
include(api_get_path(SYS_CODE_PATH).'lang/'.$language_interface.'/'.$language_file.'.inc.php') [line 333]
include_once($includePath."/lib/online.inc.php") [line 160]
require('installedVersion.inc.php') [line 54]
require($includePath."/local.inc.php") [line 156]
require_once(display.lib.php) [line 96]
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:  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.
todo:  make it possible to enable / disable the tracking through the Dokeos config page.
require_once(database.lib.php) [line 95]
require_once(security.lib.php) [line 98]
require_once(text.lib.php) [line 97]
require_once($includePath.'/lib/main_api.lib.php') [line 46]






Documentation generated on Wed, 05 Sep 2007 06:14:44 +0200 by phpDocumentor 1.4.0