]> git.p6c8.net - jirafeau.git/blob - tos.php
Merge branch 'bug_content_length' into 'next-release'
[jirafeau.git] / tos.php
1 <?php
2 /*
3 * Jirafeau, your web file repository
4 * Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
5 * Copyright (C) 2015 Jerome Jutteau <jerome@jutteau.fr>
6 * Copyright (C) 2024 Jirafeau project <https://gitlab.com/jirafeau> (see AUTHORS.md)
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 define('JIRAFEAU_ROOT', dirname(__FILE__) . '/');
23
24 require(JIRAFEAU_ROOT . 'lib/settings.php');
25 require(JIRAFEAU_ROOT . 'lib/functions.php');
26 require(JIRAFEAU_ROOT . 'lib/lang.php');
27
28 // Read ToS template
29 if (is_readable(JIRAFEAU_ROOT . 'lib/tos.local.txt')) {
30 $content = file_get_contents(JIRAFEAU_ROOT . 'lib/tos.local.txt');
31 } else {
32 $content = file_get_contents(JIRAFEAU_ROOT . 'lib/tos.original.txt');
33 }
34
35 // Replace markers and print ToS
36 require(JIRAFEAU_ROOT . 'lib/template/header.php');
37
38 echo '<div>' . jirafeau_replace_markers($content, true) . '</div>';
39
40 require(JIRAFEAU_ROOT . 'lib/template/footer.php');

patrick-canterino.de