FusionDirectory
variables_common.inc
Go to the documentation of this file.
1 <?php
2 /*
3  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
4  Copyright (C) 2003-2010 Cajus Pollmeier
5  Copyright (C) 2011-2017 FusionDirectory
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21 
27 /*
28  * \brief Allow setting the config file in the apache configuration
29  * e.g. SetEnv CONFIG_DIR /etc/fusiondirectory
30 */
31 if (isset($_SERVER['CONFIG_DIR'])) {
32  define("CONFIG_DIR", $_SERVER['CONFIG_DIR']);
33 }
34 
35 /*
36  * \brief Allow setting the config file in the apache configuration
37  * e.g. SetEnv CONFIG_FILE fusiondirectory.conf 1.0
38  */
39 if (isset($_SERVER['CONFIG_FILE'])) {
40  define("CONFIG_FILE", $_SERVER['CONFIG_FILE']);
41 }
42 
46 define("PHP_DIR", "/usr/share/php");
51 define("PEAR_DIR", "/usr/share/php");
56 define("FPDF", "/usr/share/php/fpdf/fpdf.php");
61 define("FPDF_FONTPATH", "/usr/share/php/fpdf/font/");
66 define("FD_VERSION", "1.5");
71 define("CONFIGRDN", "cn=config,ou=fusiondirectory,");
76 define('PHP_MIN_VERSION', '7.3.0');
77 
81 define('PHP_ERROR_FATAL', 'FALSE');
82 
83 /* Define constants for debugging */
84 define('DEBUG_TRACE', 1);
85 define('DEBUG_LDAP', 2);
86 define('DEBUG_DB', 4);
87 define('DEBUG_SHELL', 8);
88 define('DEBUG_POST', 16);
89 define('DEBUG_SESSION', 32);
90 define('DEBUG_CONFIG', 64);
91 define('DEBUG_ACL', 128);
92 define('DEBUG_SI', 256);
93 define('DEBUG_MAIL', 512);
94 define('DEBUG_FAI', 1024); /* FAI (incomplete) */
95 
96 /* Define constants for LDAP operations */
97 define('LDAP_READ', 1);
98 define('LDAP_ADD', 2);
99 define('LDAP_MOD', 3);
100 define('LDAP_DEL', 4);
101 define('LDAP_SEARCH', 5);
102 define('LDAP_AUTH', 6);