variables_common.inc 2.05 KB
Newer Older
1
2
3
4
<?php
/*
  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
  Copyright (C) 2003-2010  Cajus Pollmeier
5
  Copyright (C) 2011-2016  FusionDirectory
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/

22
23
24
25
/*!
 * \file variables_common.inc
 * Define common locations and variables
 */
26

27
28
29
/*
 * \brief Allow setting the config file in the apache configuration
 * e.g. SetEnv CONFIG_DIR /etc/fusiondirectory
30
*/
31
32
if (isset($_SERVER['CONFIG_DIR'])) {
  define ("CONFIG_DIR", $_SERVER['CONFIG_DIR']);
33
34
}

35
36
37
/*
 * \brief Allow setting the config file in the apache configuration
 *  e.g.  SetEnv CONFIG_FILE fusiondirectory.conf 1.0
38
 */
39
40
if (isset($_SERVER['CONFIG_FILE'])) {
  define ("CONFIG_FILE", $_SERVER['CONFIG_FILE']);
41
42
}

43
44
45
/*!
 * \brief php library path
 */
46
47
define ("PHP_DIR", "/usr/share/php"); /*! Define php directory */

48
49
50
/*!
 * \brief php pear path
 */
51
52
define ("PEAR_DIR", "/usr/share/php"); /*! Define PEAR directory */

53
54
55
/*!
 * \brief fpdf library path
 */
56
define("FPDF", "/usr/share/php/fpdf/fpdf.php"); /*! Define fpdf library path */
57

58
59
60
/*!
 * \brief Global FPDF FONT define
 */
61
62
define("FPDF_FONTPATH", "/usr/share/php/fpdf/font/"); /*! Define fpdf font path  */

63
64
65
/*!
 * \brief FusionDirectory Version
 */
Mortier Benoit's avatar
Mortier Benoit committed
66
define ("FD_VERSION", "1.0.10"); /*! Define FusionDirectory version */
67
68
69
70

/*!
 * \brief FusionDirectory config object RDN
 */
71
define ("CONFIGRDN", "cn=config,ou=fusiondirectory,"); /*! Define FusionDirectory config object */
72

73
?>