/include/init.php

Description

init.php -- initialisation file

File should be loaded in every file in src/ or plugins that occupate an entire frame

Includes
include_once (SM_PATH.'plugins/compatibility/functions.php') (line 270)

Include Compatibility plugin if available.

require (SM_PATH.'config/config.php') (line 152)
require (SM_PATH.$prefs_backend) (line 341)
require (SM_PATH.'class/mime.class.php') (line 213)

includes from classes stored in the session

require (SM_PATH.'functions/prefs.php') (line 336)

directory hashing functions are needed for all setups in case plugins use own pref files.

require (SM_PATH.'config/config_local.php') (line 155)
require (SM_PATH.'functions/auth.php') (line 383)

Check if we are logged in

require (SM_PATH.$prefs_backend) (line 440)
require (SM_PATH.'functions/display_messages.php') (line 374)

do not delete the standard sessions with session.name is i.e. PHPSESSID

because they probably belong to other php apps

require (SM_PATH.'include/timezones.php') (line 503)

Set up the language.

require (SM_PATH.'class/error.class.php') (line 554)

Initialize our custom error handler object

require (SM_PATH.'functions/prefs.php') (line 436)

Setting the prefs backend

require (SM_PATH.'functions/global.php') (line 136)

This theme as a failsafe if no themes were found, or if we error out before anything could be initialised.

require (SM_PATH.'include/load_prefs.php') (line 450)

initializing user settings

Constants
SM_BASE_URI = $base_uri (line 103)
SM_PATH = $sSM_PATH (line 102)

calculate SM_PATH and calculate the base_uri assumptions made: init.php is only called from plugins or from the src dir.

files in the plugin directory may not be part of a subdirectory called "src"

Functions
checkForJavascript (line 572)

Javascript support detection function

  • return: SMPREF_JS_ON or SMPREF_JS_OFF ({@see include/constants.php})
  • since: 1.5.1
integer checkForJavascript ([boolean $reset = FALSE])
  • boolean $reset: recheck javascript support if set to true.
sqm_baseuri (line 594)
void sqm_baseuri ()

Documentation generated on Sat, 07 Oct 2006 16:11:52 +0300 by phpDocumentor 1.3.0RC6