]>
git.p6c8.net - jirafeau_mojo42.git/blob - tos.php
826358dec72549862da280850f4221267cfbb9ab
3 * Jirafeau, your web file repository
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.
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.
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/>.
19 define('JIRAFEAU_ROOT', dirname(__FILE__
) . '/');
21 require(JIRAFEAU_ROOT
. 'lib/settings.php');
22 require(JIRAFEAU_ROOT
. 'lib/functions.php');
23 require(JIRAFEAU_ROOT
. 'lib/lang.php');
26 if (is_readable(JIRAFEAU_ROOT
. 'lib/tos.local.txt')) {
27 $content = file_get_contents(JIRAFEAU_ROOT
. 'lib/tos.local.txt');
29 $content = file_get_contents(JIRAFEAU_ROOT
. 'lib/tos.original.txt');
32 // Replace markers and print ToS
33 require(JIRAFEAU_ROOT
. 'lib/template/header.php');
35 echo '<h2>Terms of Service</h2>';
36 echo '<div>' . jirafeau_replace_markers($content, true) . '</div>';
38 require(JIRAFEAU_ROOT
. 'lib/template/footer.php');
patrick-canterino.de