b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 2.4) [ 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-2008 by Francois PLANQUE - {@link http://fplanque.net/}
  9.  *
  10.  * @version $Id: _connect_db.inc.php,v 1.10 2008/01/21 09:35:23 fplanque Exp $
  11.  */
  12.  
  13. /**
  14.  * Load configuration
  15.  * NOTE: fp> config should always be loaded as a whole because of the prequire"_once" stuff not working very well on Windows
  16.  */
  17. require_once dirname(__FILE__).'/../conf/_config.php';
  18.  
  19. /**
  20.  * Load DB class
  21.  */
  22. require_once dirname(__FILE__).'/_core/model/db/_db.class.php';
  23.  
  24. /**
  25.  * Database connection (connection opened here)
  26.  *
  27.  * @global DB $DB 
  28.  */
  29. $DB new DB$db_config );
  30.  
  31. /*
  32.  * $Log: _connect_db.inc.php,v $
  33.  * Revision 1.10  2008/01/21 09:35:23  fplanque
  34.  * (c) 2008
  35.  *
  36.  * Revision 1.9  2007/06/25 10:58:51  fplanque
  37.  * MODULES (refactored MVC)
  38.  *
  39.  */
  40. ?>

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