[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/ -> header.inc.php.template (source)

   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: header.inc.php.template 20295 2006-02-15 12:31:25Z  $ */
  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      // allow to migrate from phpgw_info to egw_info
  22      if (isset($GLOBALS['egw_info']))
  23      {
  24          $GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];
  25      }
  26      else
  27      {
  28          $GLOBALS['egw_info'] =& $GLOBALS['phpgw_info'];
  29      }
  30  
  31      define('EGW_SERVER_ROOT','{SERVER_ROOT}');
  32      define('EGW_INCLUDE_ROOT','{INCLUDE_ROOT}');
  33      define('PHPGW_SERVER_ROOT','{SERVER_ROOT}');
  34      define('PHPGW_INCLUDE_ROOT','{INCLUDE_ROOT}');
  35      $GLOBALS['egw_info']['server']['header_admin_user'] = '{HEADER_ADMIN_USER}';
  36      $GLOBALS['egw_info']['server']['header_admin_password'] = '{HEADER_ADMIN_PASSWORD}';
  37      $GLOBALS['egw_info']['server']['setup_acl'] = '{SETUP_ACL}';
  38  
  39      /* eGroupWare domain-specific db settings */{domains}
  40      /*
  41      ** If you want to have your domains in a select box, change to True
  42      ** If not, users will have to login as user@domain
  43      ** Note: This is only for virtual domain support, default domain users can login only using
  44      ** there loginid.
  45      */
  46      $GLOBALS['egw_info']['server']['show_domain_selectbox'] = {DOMAIN_SELECTBOX};
  47  
  48      $GLOBALS['egw_info']['server']['db_persistent'] = {DB_PERSISTENT};
  49  
  50      /*
  51      ** eGroupWare can handle session management using the database or 
  52      ** the session support built into PHP4 which usually gives better
  53      ** performance. 
  54      ** Your choices are 'db' or 'php4'
  55      */
  56      $GLOBALS['egw_info']['server']['sessions_type'] = '{SESSIONS_TYPE}';
  57  
  58      /* Select which login template set you want, most people will use default */
  59      $GLOBALS['egw_info']['login_template_set'] = 'idots';
  60  
  61      /* This is used to control mcrypt's use */
  62      $GLOBALS['egw_info']['server']['mcrypt_enabled'] = {ENABLE_MCRYPT};
  63      /* Set this to 'old' for versions < 2.4, otherwise the exact mcrypt version you use. */
  64      $GLOBALS['egw_info']['server']['versions']['mcrypt'] = '{MCRYPT_VERSION}';
  65  
  66      /*
  67      ** This is a random string used as the initialization vector for mcrypt
  68      ** feel free to change it when setting up eGrouWare on a clean database,
  69      ** but you must not change it after that point!
  70      ** It should be around 30 bytes in length.
  71      */
  72      $GLOBALS['egw_info']['server']['mcrypt_iv'] = '{MCRYPT_IV}';
  73  
  74      if(!isset($GLOBALS['egw_info']['flags']['nocachecontrol']) || !$GLOBALS['egw_info']['flags']['nocachecontrol'])
  75      {
  76          header('Cache-Control: no-cache, must-revalidate');  // HTTP/1.1
  77          header('Pragma: no-cache');                          // HTTP/1.0
  78      }
  79      else
  80      {
  81          // allow caching by browser
  82          session_cache_limiter(PHP_VERSION >= 4.2 ? 'private_no_expire' : 'private');
  83      }
  84  
  85      /* debugging settings */
  86      define('DEBUG_APP',  False);
  87      define('DEBUG_API',  False);
  88      define('DEBUG_DATATYPES',  True);
  89      define('DEBUG_LEVEL',  3);
  90      define('DEBUG_OUTPUT', 2); /* 1 = screen,  2 = DB. For both use 3. */
  91      define('DEBUG_TIMER', False);
  92  
  93  	function perfgetmicrotime()
  94      {
  95          list($usec, $sec) = explode(' ',microtime());
  96          return ((float)$usec + (float)$sec);
  97      }
  98      $GLOBALS['egw_info']['flags']['page_start_time'] = perfgetmicrotime();
  99  
 100      /**************************************************************************\
 101      * Do not edit these lines                                                  *
 102      \**************************************************************************/
 103      define('EGW_API_INC',EGW_INCLUDE_ROOT.'/phpgwapi/inc');
 104      define('PHPGW_API_INC',EGW_INCLUDE_ROOT.'/phpgwapi/inc');
 105      include (EGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php');
 106      $GLOBALS['egw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version'];
 107      $GLOBALS['egw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header'];
 108      unset($setup_info);
 109      $GLOBALS['egw_info']['server']['versions']['header'] = '1.28';
 110      /* This is a fix for NT */
 111      if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi'] == True)
 112      {
 113          ob_start();    // to prevent error messages to be send before our headers
 114          include(EGW_API_INC . '/functions.inc.php');
 115          include(EGW_API_INC . '/xml_functions.inc.php');
 116          include(EGW_API_INC . '/soap_functions.inc.php');
 117      }
 118  
 119      /*
 120        Leave off the final php closing tag, some editors will add
 121        a \n or space after which will mess up cookies later on
 122      */<!-- BEGIN domain -->
 123      $GLOBALS['egw_domain']['{DB_DOMAIN}'] = array(
 124          'db_host' => '{DB_HOST}',
 125          'db_port' => '{DB_PORT}',
 126          'db_name' => '{DB_NAME}',
 127          'db_user' => '{DB_USER}',
 128          'db_pass' => '{DB_PASS}',
 129          // Look at the README file
 130          'db_type' => '{DB_TYPE}',
 131          // This will limit who is allowed to make configuration modifications
 132          'config_user'   => '{CONFIG_USER}',
 133          'config_passwd' => '{CONFIG_PASS}'
 134      );
 135  
 136  <!-- END domain -->


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7