// +----------------------------------------------------------------------+ // // $Id: bandadb.php 14 2003-07-03 14:24:24Z gmeray $ // $Author: gmeray $ // $URL: http://portal.mecon.ar/svn/bandas/sistema/local_lib/bandadb.php $ // $Date: 2003-07-03 11:24:24 -0300 (Thu, 03 Jul 2003) $ // $Rev: 14 $ // #require_once 'PEAR.php'; require_once 'DB.php'; PEAR::SetErrorHandling(PEAR_ERROR_TRIGGER); // +X2C Class 121 :BandaDB /** * @access public */ class MEconDAVDB 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 ?>