source: companies/celepar/doc-expressolivre/suse/arqs-conf-suse/header.inc.php @ 763

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

Importação inicial do Expresso da Celepar

Line 
1<?php
2        /**************************************************************************\
3        * eGroupWare                                                               *
4        * http://www.egroupware.org                                                *
5        * This file was originaly written by Dan Kuykendall                        *
6        * --------------------------------------------                             *
7        *  This program is free software; you can redistribute it and/or modify it *
8        *  under the terms of the GNU General Public License as published by the   *
9        *  Free Software Foundation; either version 2 of the License, or (at your  *
10        *  option) any later version.                                              *
11        \**************************************************************************/
12        /* $Id$ */
13
14        /**************************************************************************\
15        * !!!!!!! EDIT THESE LINES !!!!!!!!                                        *
16        * This setting allows you to easily move the include directory and the     *
17        * base of the eGroupWare install. Simple edit the following 2 lines with   *
18        * the absolute path to fit your site, and you should be up and running.    *
19        \**************************************************************************/
20
21        define('PHPGW_SERVER_ROOT','/srv/www/htdocs/expresso');
22        define('PHPGW_INCLUDE_ROOT','/srv/www/htdocs/expresso');
23        $GLOBALS['phpgw_info']['server']['header_admin_user'] = 'expresso-admin';
24        $GLOBALS['phpgw_info']['server']['header_admin_password'] = '5ebe2294ecd0e0f08eab7690d2a6ee69';
25        $GLOBALS['phpgw_info']['server']['setup_acl'] = '';
26
27        // Opcoes exlusivas para o Expresso Livre
28        $GLOBALS['phpgw_info']['server']['use_https'] = 0;
29        $GLOBALS['phpgw_info']['server']['sugestoes_email_to'] = 'marcus@netcom.inf.br';
30        $GLOBALS['phpgw_info']['server']['domain_name'] = '';
31        $GLOBALS['phpgw_info']['server']['use_prefix_organization'] = False;
32       
33        /* eGroupWare domain-specific db settings */
34        $GLOBALS['phpgw_domain']['netcom.inf.br'] = array(
35                'db_host' => 'localhost',
36                'db_port' => '5432',
37                'db_name' => 'expresso',
38                'db_user' => 'postgres',
39                'db_pass' => '',
40                // Look at the README file
41                'db_type' => 'pgsql',
42                // This will limit who is allowed to make configuration modifications
43                'config_user'   => 'expresso-admin',
44                'config_passwd' => '5ebe2294ecd0e0f08eab7690d2a6ee69'
45        );
46
47        /*
48        ** If you want to have your domains in a select box, change to True
49        ** If not, users will have to login as user@domain
50        ** Note: This is only for virtual domain support, default domain users can login only using
51        ** there loginid.
52        */
53        $GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = False;
54
55        $GLOBALS['phpgw_info']['server']['db_persistent'] = True;
56
57        /*
58        ** eGroupWare can handle session management using the database or
59        ** the session support built into PHP4 which usually gives better
60        ** performance.
61        ** Your choices are 'db' or 'php4'
62        */
63        $GLOBALS['phpgw_info']['server']['sessions_type'] = 'php4';
64
65        /* Select which login template set you want, most people will use default */
66        $GLOBALS['phpgw_info']['login_template_set'] = 'celepar';
67
68        /* This is used to control mcrypt's use */
69        $GLOBALS['phpgw_info']['server']['mcrypt_enabled'] = False;
70        /* Set this to 'old' for versions < 2.4, otherwise the exact mcrypt version you use. */
71        $GLOBALS['phpgw_info']['server']['versions']['mcrypt'] = '';
72
73        /*
74        ** This is a random string used as the initialization vector for mcrypt
75        ** feel free to change it when setting up eGrouWare on a clean database,
76        ** but you must not change it after that point!
77        ** It should be around 30 bytes in length.
78        */
79        $GLOBALS['phpgw_info']['server']['mcrypt_iv'] = '9PdVZlF6yMTpL1WBlG5vh57Ei9PwE';
80
81        if(!isset($GLOBALS['phpgw_info']['flags']['nocachecontrol']) || !$GLOBALS['phpgw_info']['flags']['nocachecontrol'])
82        {
83                header('Cache-Control: no-cache, must-revalidate');  // HTTP/1.1
84                header('Pragma: no-cache');                          // HTTP/1.0
85        }
86#       else
87#       {
88#               // allow caching by browser
89#               session_cache_limiter(PHP_VERSION >= 4.2 ? 'private_no_expire' : 'private');
90#       }
91
92        /* debugging settings */
93        define('DEBUG_APP',  False);
94        define('DEBUG_API',  False);
95        define('DEBUG_DATATYPES',  True);
96        define('DEBUG_LEVEL',  3);
97        define('DEBUG_OUTPUT', 2); /* 1 = screen,  2 = DB. For both use 3. */
98        define('DEBUG_TIMER', False);
99
100        function perfgetmicrotime()
101        {
102                list($usec, $sec) = explode(' ',microtime());
103                return ((float)$usec + (float)$sec);
104        }
105
106        if (DEBUG_TIMER)
107        {
108                $GLOBALS['debug_timer_start'] = perfgetmicrotime();
109        }
110
111        /**************************************************************************\
112        * Do not edit these lines                                                  *
113        \**************************************************************************/
114        define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc');
115        include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php');
116        $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version'];
117        $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header'];
118        unset($setup_info);
119        $GLOBALS['phpgw_info']['server']['versions']['header'] = '1.27';
120        /* This is a fix for NT */
121        if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True)
122        {
123                include(PHPGW_API_INC . '/functions.inc.php');
124                include(PHPGW_API_INC . '/xml_functions.inc.php');
125                include(PHPGW_API_INC . '/soap_functions.inc.php');
126        }
127
128        /*
129          Leave off the final php closing tag, some editors will add
130          a \n or space after which will mess up cookies later on
131        */
Note: See TracBrowser for help on using the repository browser.