/[phpgroupware]/phpgroupware/header.inc.php.template
ViewVC logotype

Contents of /phpgroupware/header.inc.php.template

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.35.2.5 - (show annotations) (download)
Fri Aug 30 22:56:34 2002 UTC (21 years, 7 months ago) by seek3r
Branch: Version-0_9_14-branch
CVS Tags: Version-0_9_14-branch-0_0_5, Version-0_9_14-branch-0_0_2, Version-0_9_14-branch-0_0_3, Version-0_9_14-branch-0_0_1, Version-0_9_14-branch-0_0_6, Version-0_9_14-branch-0_0_7, Version-0_9_14-branch-0_0_4
Branch point for: Version-0_9_16-branch
Changes since 1.35.2.4: +7 -4 lines
fix for headermanager

1 <?php
2 /**************************************************************************\
3 * phpGroupWare *
4 * http://www.phpgroupware.org *
5 * This file written by Dan Kuykendall <seek3r@phpgroupware.org> *
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
13 /* $Id: header.inc.php.template,v 1.35.2.4 2002/08/15 23:36:51 skeeter Exp $ */
14
15 /**************************************************************************\
16 * !!!!!!! EDIT THESE LINES !!!!!!!! *
17 * This setting allows you to easily move the include directory and the *
18 * base of the phpGroupWare install. Simple edit the following 2 lines with *
19 * the absolute path to fit your site, and you should be up and running. *
20 \**************************************************************************/
21
22 define('PHPGW_SERVER_ROOT','{SERVER_ROOT}');
23 define('PHPGW_INCLUDE_ROOT','{INCLUDE_ROOT}');
24 $GLOBALS['phpgw_info']['server']['header_admin_password'] = '{HEADER_ADMIN_PASSWORD}';
25
26 $GLOBALS['phpgw_domain']['default'] = array (
27 'db_host' => '{DB_HOST}',
28 'db_name' => '{DB_NAME}',
29 'db_user' => '{DB_USER}',
30 'db_pass' => '{DB_PASS}',
31 // Look at the README file
32 'db_type' => '{DB_TYPE}',
33 // This will limit who is allowed to make configuration modifcations
34 'config_passwd' => '{CONFIG_PASS}'
35 );
36
37 $GLOBALS['phpgw_info']['server']['db_persistent'] = {DB_PERSISTENT};
38
39 /*
40 ** phpGroupWare can handle session management using the database, but if
41 ** you are using PHP4 you can usually get better performance by having phpGroupWare
42 ** use the session support built into PHP4. PHP3 users will have to use the database.
43 ** Your choices are 'db' or 'php4'
44 */
45 $GLOBALS['phpgw_info']['server']['sessions_type'] = '{SESSIONS_TYPE}';
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 domian support, default domain users can login only using
51 ** there loginid.
52 */
53 $GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = {DOMAIN_SELECTBOX};
54
55 /* Select which login template set you want, most people will use default */
56 $GLOBALS['phpgw_info']['login_template_set'] = 'default';
57
58 /* This is used to control mcrypt's use */
59 $GLOBALS['phpgw_info']['server']['mcrypt_enabled'] = {ENABLE_MCRYPT};
60 /* Set this to "old" for versions < 2.4, otherwise the exact mcrypt version you use. */
61 $GLOBALS['phpgw_info']['server']['versions']['mcrypt'] = '{MCRYPT_VERSION}';
62
63 /*
64 ** This is a random string used as the initilazation vector for mcrypt
65 ** feel free to change it when setting up phpgroupware on a clean database,
66 ** but you must not change it after that point!
67 ** It should be around 30 bytes in length.
68 */
69 $GLOBALS['phpgw_info']['server']['mcrypt_iv'] = '{MCRYPT_IV}';
70
71 /* Uncomment this out and use this for supporting different domains using this single install */
72 /* (ignore if you are only supporting a single domain)*/
73 /*
74 $GLOBALS['phpgw_domain']['domain2.com'] = array (
75 'db_host' => 'localhost',
76 'db_name' => 'phpgw_domain2',
77 'db_user' => 'phpgroupware',
78 'db_pass' => 'their_password',
79 'db_type' => 'mysql',
80 'config_passwd' => 'changeme'
81 );
82 */
83
84 /* If you want phpGroupWare to be cached by proxy servers, uncomment the following */
85 /* This is NOT recommended, but phpGroupWare should still work fine. */
86 if (!isset($GLOBALS['phpgw_info']['flags']['nocachecontrol']) || !$GLOBALS['phpgw_info']['flags']['nocachecontrol'] == True)
87 {
88 header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
89 header('Pragma: no-cache'); // HTTP/1.0
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_TIMER', False);
98
99 if (!function_exists('perfgetmicrotime'))
100 {
101 function perfgetmicrotime()
102 {
103 list($usec, $sec) = explode(' ',microtime());
104 return ((float)$usec + (float)$sec);
105 }
106 }
107
108 if (DEBUG_TIMER)
109 {
110 $GLOBALS['debug_timer_start'] = perfgetmicrotime();
111 }
112
113 /**************************************************************************\
114 * Do not edit these lines *
115 \**************************************************************************/
116 define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc');
117 include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php');
118 $GLOBALS['phpgw_info']["server"]['versions']['phpgwapi'] = $setup_info['phpgwapi']['version'];
119 $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header'];
120 unset($setup_info);
121 $GLOBALS['phpgw_info']['server']['versions']['header'] = '1.21';
122 /* This is a fix for NT */
123 if (!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True)
124 {
125 include(PHPGW_API_INC . '/functions.inc.php');
126 include(PHPGW_API_INC . '/xml_functions.inc.php');
127 include(PHPGW_API_INC . '/soap_functions.inc.php');
128 }
129
130 /*
131 Leave off the final php closing tag, some editors will add
132 a \n or space after which will mess up cookies later on
133 */

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26