source: trunk/news_admin/website/setup.inc.php @ 45

Revision 45, 2.4 KB checked in by niltonneto, 17 years ago (diff)

Implementação do FCKEDITOR na edição de artigos no news_admin, para permitir texto rico.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
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  /* $Id$ */
16
17        $path_to_header = '../../';
18        $template_path  = $path_to_header . 'news_admin/website/templates/';
19        $domain         = 'default';
20
21        /* ********************************************************************\
22        * Don't change anything after this line                                *
23        \******************************************************************** */
24
25        error_reporting(error_reporting() & ~E_NOTICE);
26
27        function copyobj($a,&$b)
28        {
29                if(floor(phpversion()) > 4)
30                {
31                        $b = $a->__clone();
32                }
33                else
34                {
35                        $b = $a;
36                }
37                return;
38        }
39
40        $GLOBALS['phpgw_info']['flags']['noapi'] = True;
41        include($path_to_header . 'header.inc.php');
42        include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.Template.inc.php');
43        $tpl = new Template($template_path);
44        include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.db.inc.php');
45
46        $GLOBALS['phpgw']->db = new db();
47        $GLOBALS['phpgw']->db->Host     = $GLOBALS['phpgw_domain'][$domain]['server']['db_host'];
48        $GLOBALS['phpgw']->db->Type     = $GLOBALS['phpgw_domain'][$domain]['db_type'];
49        $GLOBALS['phpgw']->db->Database = $GLOBALS['phpgw_domain'][$domain]['db_name'];
50        $GLOBALS['phpgw']->db->User     = $GLOBALS['phpgw_domain'][$domain]['db_user'];
51        $GLOBALS['phpgw']->db->Password = $GLOBALS['phpgw_domain'][$domain]['db_pass'];
52
53        include(PHPGW_SERVER_ROOT . '/news_admin/inc/class.sonews.inc.php');
54        $news_obj = new sonews();
55
56        include(PHPGW_SERVER_ROOT . '/news_admin/inc/class.soexport.inc.php');
57        $export_obj = new soexport();
Note: See TracBrowser for help on using the repository browser.