b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 2.4) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _main.inc.php

Source Location: /blogs/inc/_main.inc.php

Page Details

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.89 2008/01/22 15:34:46 fplanque Exp $
Copyright:  

(c)2003-2008 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
Includes
include_once ($conf_path.'hacks.php') [line 643]

Load hacks file if it exists

[ Top ]

require (dirname(__FILE__).'/../skins_adm/conf_error.main.php') [line 164]
[ Top ]

require (login.php) [line 630]

User locale selection:

[ Top ]

require_once (dirname(__FILE__).'/_connect_db.inc.php') [line 182]

Connect to DB

[ Top ]

require_once (dirname(__FILE__).'/_vars.inc.php') [line 151]

Sets various arrays and vars, also $app_name!

Needed before the error messages.

[ Top ]

class loader

[ Top ]


Constants
EVO_MAIN_INIT  [line 73]

EVO_MAIN_INIT = true

Prevent double loading since require_once won't work in all situations

on windows when some subfolders have caps :( (Check it out on static page generation)


[ Top ]


Globals
Log|Log_noop   $Debuglog [line 128]

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' )

[ Top ]

int   $localtimenow [line 220]

Corrected Unix timestamp to match server timezone

Default value:  $servertimenow + $time_difference

[ Top ]

Log   $Messages [line 134]

Info & error message log for end user (initialized here)

Default value:  & new Log( 'error' )

[ Top ]

int   $servertimenow [line 212]

Absolute Unix timestamp for server

Default value:  time()

[ Top ]

GeneralSettings   $Settings [line 199]

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


[ Top ]

UserSettings   $UserSettings [line 205]

Interface to user settings

Default value:  & new UserSettings()

[ Top ]



Documentation generated on Sat, 06 Mar 2010 03:37:31 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).