b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _init_db.inc.php

Source Location: /blogs/inc/_init_db.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: _init_db.inc.php,v 1.2 2010/02/08 17:51:25 efy-yury Exp $
Copyright:  

(c)2003-2010 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
require_once (dirname(__FILE__).'/_core/model/db/_db.class.php') [line 53]

Load DB class

[ Top ]


Globals
DB   $DB [line 60]

Database connection (connection opened here)

Default value:  new DB( $db_config )

[ Top ]

int   $localtimenow [line 85]

Corrected Unix timestamp to match server timezone

Default value:  $servertimenow + $time_difference

[ Top ]

GeneralSettings   $Settings [line 76]

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 ]



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