Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../egroup
File: header.inc.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* EGroupware - configuration file
[2] Fix | Delete
*
[3] Fix | Delete
* Use EGroupware's setup to create or edit this configuration file.
[4] Fix | Delete
* You do NOT need to copy and edit this file manually!
[5] Fix | Delete
*
[6] Fix | Delete
* @link http://www.egroupware.org
[7] Fix | Delete
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
[8] Fix | Delete
* @author RalfBecker@outdoor-training.de
[9] Fix | Delete
* (This file was originaly written by Dan Kuykendall)
[10] Fix | Delete
* @version $Id$
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
// eGW install dir, need to be changed if you copy the server to an other directory
[14] Fix | Delete
define('EGW_SERVER_ROOT','[[softpath]]');
[15] Fix | Delete
[16] Fix | Delete
// other pathes depending on the one above
[17] Fix | Delete
define('EGW_INCLUDE_ROOT',EGW_SERVER_ROOT);
[18] Fix | Delete
define('EGW_API_INC',EGW_INCLUDE_ROOT.'/phpgwapi/inc');
[19] Fix | Delete
[20] Fix | Delete
// who is allowed to make changes to THIS config file via eGW's setup
[21] Fix | Delete
$GLOBALS['egw_info']['server']['header_admin_user'] = '[[admin_username]]';
[22] Fix | Delete
$GLOBALS['egw_info']['server']['header_admin_password'] = '[[config_pass]]';
[23] Fix | Delete
[24] Fix | Delete
// restrict the access to setup to certain (comma separated) IPs or domains
[25] Fix | Delete
$GLOBALS['egw_info']['server']['setup_acl'] = '';
[26] Fix | Delete
[27] Fix | Delete
/* eGroupWare domain-specific db settings */
[28] Fix | Delete
$GLOBALS['egw_domain']['default'] = array(
[29] Fix | Delete
'db_host' => '[[softdbhost]]',
[30] Fix | Delete
'db_port' => '3306',
[31] Fix | Delete
'db_name' => '[[softdb]]',
[32] Fix | Delete
'db_user' => '[[softdbuser]]',
[33] Fix | Delete
'db_pass' => '[[softdbpass]]',
[34] Fix | Delete
// Look at the README file
[35] Fix | Delete
'db_type' => 'mysqli',
[36] Fix | Delete
// This will limit who is allowed to make configuration modifications
[37] Fix | Delete
'config_user' => '[[cadmin_username]]',
[38] Fix | Delete
'config_passwd' => '[[cconfig_pass]]'
[39] Fix | Delete
);
[40] Fix | Delete
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
** If you want to have your domains in a select box, change to True
[44] Fix | Delete
** If not, users will have to login as user@domain
[45] Fix | Delete
** Note: This is only for virtual domain support, default domain users (that's everyone
[46] Fix | Delete
** form the first domain or if you have only one) can login only using just there loginid.
[47] Fix | Delete
*/
[48] Fix | Delete
$GLOBALS['egw_info']['server']['show_domain_selectbox'] = false;
[49] Fix | Delete
[50] Fix | Delete
$GLOBALS['egw_info']['server']['db_persistent'] = true;
[51] Fix | Delete
[52] Fix | Delete
/* This is used to control mcrypt's use */
[53] Fix | Delete
$GLOBALS['egw_info']['server']['mcrypt_enabled'] = false;
[54] Fix | Delete
[55] Fix | Delete
/*
[56] Fix | Delete
** This is a random string used as the initialization vector for mcrypt
[57] Fix | Delete
** feel free to change it when setting up eGrouWare on a clean database,
[58] Fix | Delete
** but you must not change it after that point!
[59] Fix | Delete
** It should be around 30 bytes in length.
[60] Fix | Delete
*/
[61] Fix | Delete
$GLOBALS['egw_info']['server']['mcrypt_iv'] = '[[mcrypt]]';
[62] Fix | Delete
[63] Fix | Delete
$GLOBALS['egw_info']['flags']['page_start_time'] = microtime(true);
[64] Fix | Delete
[65] Fix | Delete
include(EGW_SERVER_ROOT.'/api/setup/setup.inc.php');
[66] Fix | Delete
$GLOBALS['egw_info']['server']['versions'] = $setup_info['api']['versions'];
[67] Fix | Delete
$GLOBALS['egw_info']['server']['versions']['phpgwapi'] = $GLOBALS['egw_info']['server']['versions']['api'] = $setup_info['api']['version'];
[68] Fix | Delete
unset($setup_info);
[69] Fix | Delete
$GLOBALS['egw_info']['server']['versions']['header'] = '1.29';
[70] Fix | Delete
[71] Fix | Delete
if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi'])
[72] Fix | Delete
{
[73] Fix | Delete
if (substr($_SERVER['SCRIPT_NAME'],-7) != 'dav.php' && // dont do it for webdav/groupdav, as we can not safely switch it off again
[74] Fix | Delete
(!isset($_GET['menuaction']) || substr($_GET['menuaction'],-10) != '_hooks.log') &&
[75] Fix | Delete
substr($_SERVER['SCRIPT_NAME'],-10) != '/share.php')
[76] Fix | Delete
{
[77] Fix | Delete
ob_start(); // to prevent error messages to be send before our headers
[78] Fix | Delete
}
[79] Fix | Delete
require_once(EGW_SERVER_ROOT.'/api/src/loader.php');
[80] Fix | Delete
}
[81] Fix | Delete
else
[82] Fix | Delete
{
[83] Fix | Delete
require_once(EGW_SERVER_ROOT.'/api/src/loader/common.php');
[84] Fix | Delete
}
[85] Fix | Delete
[86] Fix | Delete
/*
[87] Fix | Delete
Leave off the final php closing tag, some editors will add
[88] Fix | Delete
a \n or space after which will mess up cookies later on
[89] Fix | Delete
*/
[90] Fix | Delete
[91] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function