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

patrick-canterino.de