source: companies/celepar/news_admin/website/setup.inc.php @ 763

Revision 763, 2.4 KB checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

Line 
1<?php
2  /**************************************************************************\
3  * eGroupWare - Webpage news admin                                          *
4  * http://www.egroupware.org                                                *
5  * --------------------------------------------                             *
6  *  This program is free software; you can redistribute it and/or modify it *
7  *  under the terms of the GNU General Public License as published by the   *
8  *  Free Software Foundation; either version 2 of the License, or (at your  *
9  *  option) any later version.                                              *
10  * --------------------------------------------                             *
11  * This program was sponsered by Golden Glair productions                   *
12  * http://www.goldenglair.com                                               *
13  \**************************************************************************/
14
15
16        $path_to_header = '../../';
17        $template_path  = $path_to_header . 'news_admin/website/templates/';
18        $domain         = 'default';
19
20        /* ********************************************************************\
21        * Don't change anything after this line                                *
22        \******************************************************************** */
23
24        error_reporting(error_reporting() & ~E_NOTICE);
25
26        function copyobj($a,&$b)
27        {
28                if(floor(phpversion()) > 4)
29                {
30                        $b = $a->__clone();
31                }
32                else
33                {
34                        $b = $a;
35                }
36                return;
37        }
38
39        $GLOBALS['phpgw_info']['flags']['noapi'] = True;
40        include($path_to_header . 'header.inc.php');
41        include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.Template.inc.php');
42        $tpl = new Template($template_path);
43        include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.db.inc.php');
44
45        $GLOBALS['phpgw']->db = new db();
46        $GLOBALS['phpgw']->db->Host     = $GLOBALS['phpgw_domain'][$domain]['server']['db_host'];
47        $GLOBALS['phpgw']->db->Type     = $GLOBALS['phpgw_domain'][$domain]['db_type'];
48        $GLOBALS['phpgw']->db->Database = $GLOBALS['phpgw_domain'][$domain]['db_name'];
49        $GLOBALS['phpgw']->db->User     = $GLOBALS['phpgw_domain'][$domain]['db_user'];
50        $GLOBALS['phpgw']->db->Password = $GLOBALS['phpgw_domain'][$domain]['db_pass'];
51
52        include(PHPGW_SERVER_ROOT . '/news_admin/inc/class.sonews.inc.php');
53        $news_obj = new sonews();
54
55        include(PHPGW_SERVER_ROOT . '/news_admin/inc/class.soexport.inc.php');
56        $export_obj = new soexport();
Note: See TracBrowser for help on using the repository browser.