]> git.agnieray.net Git - galette.git/blob - galette/config/paths.inc.php
9c4a11d1d35543a0cd6d96a14df26c6ad9a9ba03
[galette.git] / galette / config / paths.inc.php
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Various paths
7 * Path to external librarires, logs files, exports directory, ...
8 *
9 * PHP version 5
10 *
11 * Copyright © 2011-2014 The Galette Team
12 *
13 * This file is part of Galette (http://galette.tuxfamily.org).
14 *
15 * Galette is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * Galette is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
27 *
28 * @category Config
29 * @package Galette
30 *
31 * @author Johan Cwiklinski <johan@x-tnd.be>
32 * @copyright 2011-2014 The Galette Team
33 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
34 * @version SVN: $Id$
35 * @link http://galette.tuxfamily.org
36 * @since Available since 0.7dev - 2009-03-13
37 */
38
39 if (file_exists(GALETTE_ROOT . 'config/local_paths.inc.php')) {
40 include GALETTE_ROOT . 'config/local_paths.inc.php';
41 }
42
43 //external libraries
44 if (!defined('GALETTE_ZEND_PATH')) {
45 define('GALETTE_ZEND_PATH', GALETTE_ROOT . 'vendor/zendframework');
46 }
47 if (!defined('GALETTE_ANALOG_PATH')) {
48 define(
49 'GALETTE_ANALOG_PATH',
50 GALETTE_ROOT . 'vendor/analog/analog'
51 );
52 }
53 if (!defined('GALETTE_PHP_MAILER_PATH')) {
54 define(
55 'GALETTE_PHP_MAILER_PATH',
56 GALETTE_ROOT . 'vendor/phpmailer/phpmailer'
57 );
58 }
59 if (!defined('GALETTE_SMARTY_PATH')) {
60 define(
61 'GALETTE_SMARTY_PATH',
62 GALETTE_ROOT . 'vendor/smarty/smarty/'
63 );
64 }
65 if (!defined('GALETTE_TCPDF_PATH')) {
66 define(
67 'GALETTE_TCPDF_PATH',
68 GALETTE_ROOT . '/vendor/tecnickcom/tcpdf'
69 );
70 }
71 /*if ( !defined('GALETTE_SLIM_PATH') ) {
72 define('GALETTE_SLIM_PATH', GALETTE_ROOT . 'lib/Slim-' . SLIM_VERSION);
73 }
74 if ( !defined('GALETTE_SLIM_VIEWS_PATH') ) {
75 define('GALETTE_SLIM_VIEWS_PATH', GALETTE_ROOT . 'lib/Slim-Views');
76 }*/
77 /*if ( !defined('GALETTE_XHPROF_PATH') ) {
78 define('GALETTE_XHPROF_PATH', '/usr/share/xhprof/');
79 }*/
80
81 //galete's paths
82 if (!defined('GALETTE_CONFIG_PATH')) {
83 define('GALETTE_CONFIG_PATH', GALETTE_ROOT . 'config/');
84 }
85 if (!defined('GALETTE_PLUGINS_PATH')) {
86 define('GALETTE_PLUGINS_PATH', GALETTE_ROOT . 'plugins/');
87 }
88 if (!defined('GALETTE_DATA_PATH')) {
89 define('GALETTE_DATA_PATH', GALETTE_ROOT . 'data/');
90 }
91 if (!defined('GALETTE_THEMES_PATH')) {
92 define('GALETTE_THEMES_PATH', GALETTE_ROOT . 'webroot/themes/');
93 }
94 if (!defined('GALETTE_LOGS_PATH')) {
95 define('GALETTE_LOGS_PATH', GALETTE_DATA_PATH . 'logs/');
96 }
97 if (!defined('GALETTE_COMPILE_DIR')) {
98 define('GALETTE_COMPILE_DIR', GALETTE_DATA_PATH . 'templates_c/');
99 }
100 if (!defined('GALETTE_CACHE_DIR')) {
101 define('GALETTE_CACHE_DIR', GALETTE_DATA_PATH . 'cache/');
102 }
103 if (!defined('GALETTE_EXPORTS_PATH')) {
104 define('GALETTE_EXPORTS_PATH', GALETTE_DATA_PATH . 'exports/');
105 }
106 if (!defined('GALETTE_IMPORTS_PATH')) {
107 define('GALETTE_IMPORTS_PATH', GALETTE_DATA_PATH . 'imports/');
108 }
109 if (!defined('GALETTE_PHOTOS_PATH')) {
110 define('GALETTE_PHOTOS_PATH', GALETTE_DATA_PATH . 'photos/');
111 }
112 if (!defined('GALETTE_ATTACHMENTS_PATH')) {
113 define('GALETTE_ATTACHMENTS_PATH', GALETTE_DATA_PATH . 'attachments/');
114 }
115 if (!defined('GALETTE_FILES_PATH')) {
116 define('GALETTE_FILES_PATH', GALETTE_DATA_PATH . 'files/');
117 }
118 if (!defined('GALETTE_TEMPIMAGES_PATH')) {
119 define('GALETTE_TEMPIMAGES_PATH', GALETTE_DATA_PATH . 'tempimages/');
120 }
121 if (!defined('GALETTE_TELEMETRY_URI')) {
122 define('GALETTE_TELEMETRY_URI', 'https://telemetry.galette.eu/');
123 }