phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ 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 Quam Plures - {@link http://quamplures.net/}
  6.  * See also {@link https://launchpad.net/quam-plures}.
  7.  *
  8.  * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
  9.  * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
  10.  *
  11.  * @package pond
  12.  */
  13.  
  14. /**
  15.  * Load configuration
  16.  * NOTE: fp> config should always be loaded as a whole because of the prequire"_once" stuff not working very well on Windows
  17.  */
  18. // require_once dirname(__FILE__).'/../qp_config/_config.php';
  19.  
  20. /**
  21.  * Load DB class
  22.  */
  23. require_once dirname(__FILE__).'/_core/model/db/_db.class.php';
  24.  
  25. /**
  26.  * Database connection (connection opened here)
  27.  *
  28.  * @global DB $DB 
  29.  */
  30. $DB new DB$app_db_config );
  31.  
  32. ?>