// +----------------------------------------------------------------------+ // // $Id: bandadb.php 12 2003-06-24 16:54:23Z gmeray $ // $Author: gmeray $ // $URL: http://portal.mecon.ar/svn/bandas/sistema/lib/bandadb.php $ // $Date: 2003-06-24 13:54:23 -0300 (Tue, 24 Jun 2003) $ // $Rev: 12 $ // #require_once 'PEAR.php'; require_once 'DB.php'; // +X2C Class 121 :BandaDB /** * @access public */ class IntranetDB extends DB { // ~X2C // +X2C Operation 122 /** * @return void * @access public */ function connect() // ~X2C { $conf = include 'configuracion.php'; $dsn = $conf['db_type'].'://'.$conf['db_user'].':'.$conf['db_pass'].'@'.$conf['db_host'].'/'.$conf['db_name']; $db = DB::connect($dsn,true); if (DB::isError($db)) { die ($db->getMessage()); } return $db; } // -X2C } // -X2C Class :BandaDB ?>