Procedural File: _main.inc.php
Source Location: /blogs/inc/_main.inc.php
This file initializes everything BUT the blog!
It is useful when you want to do very customized templates! It is also called by more complete initializers.
This file is part of the evoCore framework - http://evocore.net/ See also http://sourceforge.net/projects/evocms/.
| Author: | fplanque: Francois PLANQUE |
| Author: | mfollett: Matt FOLLETT. |
| Author: | blueyed: Daniel HAHLER |
| Author: | mbruneau: Marc BRUNEAU / PROGIDISTRI |
| Version: | $Id: _main.inc.php,v 1.41.2.6 2006/12/01 01:57:49 fplanque Exp $ |
| Copyright: | (c)2003-2006 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2006 by Daniel HAHLER - http://thequod.de/contact. Parts of this file are copyright (c)2005-2006 by PROGIDISTRI - http://progidistri.com/. |
| Filesource: | Source Code for this file |
Optionally include obsolete functions
Load settings class
The Session class.
It has to be instantiated before the "SessionLoaded" hook.
Sets various arrays and vars, also $app_name!
Needed before the error messages.
Miscellaneous functions
Load the icons
Note: we can't do this earlier because need the users locale set there (T_())
Plugins init.
This is done quite early here to give an early hook ("SessionLoaded") to plugins (though it might also be moved just after $DB init when there is reason for a hook there). The dnsbl_antispam_plugin is an example that uses this to check the user's IP against a list of DNS blacklists.
Debug message log for debugging only (initialized here).
If $debug is off, it will be re-instantiated of class Log_noop after loading config and perform no operations.
Default value: & new Log( 'note' )Corrected Unix timestamp to match server timezone
Default value: $servertimenow + $time_differenceInfo & error message log for end user (initialized here)
Default value: & new Log( 'error' )Debug message log for debugging only (initialized here)
Default value: & new Request( $Messages )Interface to general settings
Keep this below the creation of the DB object, because it checks for the correct db_version and catches "table does not exist" errors, providing a link to the install script.
Default value: & new GeneralSettings()API Tags:
| Usedby: | validate_dirname() - or $force_regexp_dirname form _advanced.php |
Interface to user settings
Default value: & new UserSettings()