2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // | Ministerio de Economía |
5 // | AI (Administrador de Intranet) |
6 // +--------------------------------------------------------------------+
7 // | This file is part of AI. |
9 // | AI is free software; you can redistribute it and/or modify |
10 // | it under the terms of the GNU General Public License as published |
11 // | by the Free Software Foundation; either version 2 of the License, |
12 // | or (at your option) any later version. |
14 // | AI is distributed in the hope that it will be useful, but |
15 // | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 // | General Public License for more details. |
19 // | You should have received a copy of the GNU General Public License |
20 // | along with Hooks; if not, write to the Free Software Foundation, |
21 // | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 // +--------------------------------------------------------------------+
23 // | Creado: vie jun 27 16:49:40 ART 2003 |
24 // | Autor: Leandro Lucarella <llucar@mecon.gov.ar> |
25 // +--------------------------------------------------------------------+
31 require_once 'PEAR.php';
32 PEAR::setErrorHandling(PEAR_ERROR_TRIGGER);
34 // Directorio raíz real del sistema.
35 $ROOTDIR = '/var/www/sistemas/ai';
37 // Agrego un include path.
38 require_once 'MECON/general.php';
39 prepend_include_path("$ROOTDIR/local_lib");
41 // Uso siempre a Marco.
42 require_once 'MECON/Marco.php';
43 $MARCO = new Marco("$ROOTDIR/conf/Marco.php");
45 // Siempre le agrego una barra al costado.
46 require_once 'HTML/Table.php';
47 $LAYOUT = new HTML_Table(
57 $LAYOUT->setAutoGrow(true);
58 $LAYOUT->setCellAttributes(0, 0, array('width' => '1'));
59 $LAYOUT->setCellAttributes(0, 1, array('width' => '10'));
60 $LAYOUT->setCellContents(0, 1, ' ');
62 // Siempre uso mi base de datos.
63 require_once 'AIDB.php';
64 $DB =& AIDB::connect();