]> git.p6c8.net - jirafeau.git/blob - lib/settings.php
add delete link added to each upload
[jirafeau.git] / lib / settings.php
1 <?php
2 /*
3 * Jirafeau, your web file repository
4 * Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 // Jirafeau constants
21
22 define('JIRAFEAU_PACKAGE', 'Jirafeau');
23 define('JIRAFEAU_VERSION', '0.4');
24
25 // directories
26
27 define('VAR_FILES', $cfg['var_root'] . 'files/');
28 define('VAR_LINKS', $cfg['var_root'] . 'links/');
29
30 // i18n
31
32 setlocale(LC_ALL, $cfg['lang']);
33
34 bindtextdomain(JIRAFEAU_PACKAGE, JIRAFEAU_ROOT . 'lib/locale');
35 textdomain(JIRAFEAU_PACKAGE);
36
37
38 // useful constants
39
40 if(!defined('NL')) {
41 define('NL', "\n");
42 }
43
44 define('JIRAFEAU_INFINITY', -1);
45 define('JIRAFEAU_MINUTE', 60); // 60
46 define('JIRAFEAU_HOUR', 3600); // JIRAFEAU_MINUTE * 60
47 define('JIRAFEAU_DAY', 86400); // JIRAFEAU_HOUR * 24
48 define('JIRAFEAU_WEEK', 604800); // JIRAFEAU_DAY * 7
49 define('JIRAFEAU_MONTH', 2419200); // JIRAFEAU_WEEK * 4
50
51 ?>

patrick-canterino.de