ryxeo-glpi-git / htdocs / config / based_config.php @ 1c14bcc4
Historique | Voir | Annoter | Télécharger (2,89 ko)
1 | 1c14bcc4 | Eric Seigne | <?php
|
---|---|---|---|
2 | |||
3 | /*
|
||
4 | * @version $Id: based_config.php 7763 2009-01-06 18:44:50Z moyo $
|
||
5 | -------------------------------------------------------------------------
|
||
6 | GLPI - Gestionnaire Libre de Parc Informatique
|
||
7 | Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
||
8 | |||
9 | http://indepnet.net/ http://glpi-project.org
|
||
10 | -------------------------------------------------------------------------
|
||
11 | |||
12 | LICENSE
|
||
13 | |||
14 | This file is part of GLPI.
|
||
15 | |||
16 | GLPI is free software; you can redistribute it and/or modify
|
||
17 | it under the terms of the GNU General Public License as published by
|
||
18 | the Free Software Foundation; either version 2 of the License, or
|
||
19 | (at your option) any later version.
|
||
20 | |||
21 | GLPI is distributed in the hope that it will be useful,
|
||
22 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
24 | GNU General Public License for more details.
|
||
25 | |||
26 | You should have received a copy of the GNU General Public License
|
||
27 | along with GLPI; if not, write to the Free Software
|
||
28 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
29 | --------------------------------------------------------------------------
|
||
30 | */
|
||
31 | |||
32 | |||
33 | if (!defined('GLPI_ROOT')){ |
||
34 | die("Sorry. You can't access directly to this file"); |
||
35 | } |
||
36 | |||
37 | // If this file exists, it is load, allow to set configdir/dumpdir elsewhere
|
||
38 | if(file_exists(GLPI_ROOT ."/config/config_path.php")) { |
||
39 | include(GLPI_ROOT ."/config/config_path.php"); |
||
40 | } |
||
41 | |||
42 | // Default location for database configuration : config_db.php
|
||
43 | if (!defined("GLPI_CONFIG_DIR")){ |
||
44 | define("GLPI_CONFIG_DIR",GLPI_ROOT . "/config"); |
||
45 | } |
||
46 | |||
47 | // Default location for backup dump
|
||
48 | if (!defined("GLPI_DUMP_DIR")){ |
||
49 | define("GLPI_DUMP_DIR",GLPI_ROOT . "/files/_dumps"); |
||
50 | } |
||
51 | |||
52 | // Path for documents storage
|
||
53 | if (!defined("GLPI_DOC_DIR")){ |
||
54 | define("GLPI_DOC_DIR",GLPI_ROOT . "/files"); |
||
55 | } |
||
56 | |||
57 | // Path for cache storage
|
||
58 | if (!defined("GLPI_CACHE_DIR")){ |
||
59 | // Need / at the end for Cache Lite compatibility
|
||
60 | define("GLPI_CACHE_DIR",GLPI_ROOT . "/files/_cache/"); |
||
61 | } |
||
62 | |||
63 | // Path for cron storage
|
||
64 | if (!defined("GLPI_CRON_DIR")){ |
||
65 | define("GLPI_CRON_DIR",GLPI_ROOT . "/files/_cron"); |
||
66 | } |
||
67 | |||
68 | // Path for sessions storage
|
||
69 | if (!defined("GLPI_SESSION_DIR")){ |
||
70 | define("GLPI_SESSION_DIR",GLPI_ROOT . "/files/_sessions"); |
||
71 | } |
||
72 | |||
73 | // Path for plugins documents storage
|
||
74 | if (!defined("GLPI_PLUGIN_DOC_DIR")){ |
||
75 | define("GLPI_PLUGIN_DOC_DIR",GLPI_ROOT . "/files/_plugins"); |
||
76 | } |
||
77 | // Path for cache storage
|
||
78 | if (!defined("GLPI_LOCK_DIR")){ |
||
79 | define("GLPI_LOCK_DIR",GLPI_ROOT . "/files/_lock"); |
||
80 | } |
||
81 | |||
82 | // Path for log storage
|
||
83 | if (!defined("GLPI_LOG_DIR")){ |
||
84 | define("GLPI_LOG_DIR",GLPI_ROOT . "/files/_log"); |
||
85 | } |
||
86 | |||
87 | // Default location scripts
|
||
88 | if (!defined("GLPI_SCRIPT_DIR")){ |
||
89 | define("GLPI_SCRIPT_DIR",GLPI_ROOT . "/scripts"); |
||
90 | } |
||
91 | |||
92 | // Default cache_lite installation dir
|
||
93 | if (!defined("GLPI_CACHE_LITE_DIR")){ |
||
94 | define("GLPI_CACHE_LITE_DIR", GLPI_ROOT."/lib/cache_lite"); |
||
95 | |||
96 | # if PEAR + Cache_Lite installed, use (in config_path.php)
|
||
97 | # define("GLPI_CACHE_LITE_DIR", "Cache");
|
||
98 | } |
||
99 | ?> |