b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.10) [ class tree: main ] [ index: main ] [ all elements ]

Source for file _connect_db.inc.php

Documentation is available at _connect_db.inc.php

  1. <?php
  2. /**
  3.  * This files instantiates the global {@link $DB} object and connects to the database.
  4.  *
  5.  * This file is part of the evoCore framework - {@link http://evocore.net/}
  6.  * See also {@link http://sourceforge.net/projects/evocms/}.
  7.  *
  8.  * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
  9.  */
  10.  
  11. /**
  12.  * Load configuration
  13.  * NOTE: fp> config should always be loaded as a whole because of the prequire"_once" stuff not working very well on Windows
  14.  */
  15. require_once dirname(__FILE__).'/../conf/_config.php';
  16.  
  17. /**
  18.  * Load DB class
  19.  */
  20. require_once dirname(__FILE__).'/_misc/_db.class.php';
  21.  
  22. /**
  23.  * Database connection (connection opened here)
  24.  *
  25.  * @global DB $DB 
  26.  */
  27. $DB new DB$db_config );
  28.  
  29. ?>

Documentation generated on Tue, 20 May 2008 01:39:01 +0200 by phpDocumentor 1.4.2