2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +----------------------------------------------------------------------+
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2003 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 2.02 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/2_02.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Created: Mon Jun 9 17:53:31 2003
17 // | Author: Gonzalo Merayo <gmeray@mecon.gov.ar>
18 // +----------------------------------------------------------------------+
20 // $Id: bandadb.php 14 2003-07-03 14:24:24Z gmeray $
22 // $URL: http://portal.mecon.ar/svn/bandas/sistema/local_lib/bandadb.php $
23 // $Date: 2003-07-03 11:24:24 -0300 (Thu, 03 Jul 2003) $
27 #require_once 'PEAR.php';
28 require_once 'DB.php';
30 PEAR::SetErrorHandling(PEAR_ERROR_TRIGGER);
33 // +X2C Class 121 :BandaDB
37 class MEconDAVDB extends DB {
45 function connect() // ~X2C
47 $conf = include 'configuracion.php';
48 $dsn = $conf['db_type'].'://'.$conf['db_user'].':'.$conf['db_pass'].'@'.$conf['db_host'].'/'.$conf['db_name'];
49 $db = DB::connect($dsn,true);
50 if (DB::isError($db)) {
51 die ($db->getMessage());
57 } // -X2C Class :BandaDB