mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-12-16 17:11:18 -08:00
fad09cf0eb
* Updated copyright year * Updated
28 lines
752 B
PHP
28 lines
752 B
PHP
<?php
|
||
/**
|
||
* TorrentPier – Bull-powered BitTorrent tracker engine
|
||
*
|
||
* @copyright Copyright (c) 2005-2024 TorrentPier (https://torrentpier.com)
|
||
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
|
||
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
|
||
*/
|
||
|
||
define('BB_SCRIPT', 'terms');
|
||
|
||
require __DIR__ . '/common.php';
|
||
require INC_DIR . '/bbcode.php';
|
||
|
||
// Start session management
|
||
$user->session_start();
|
||
|
||
if (!$bb_cfg['terms'] && !IS_ADMIN) {
|
||
redirect('index.php');
|
||
}
|
||
|
||
$template->assign_vars([
|
||
'TERMS_EDIT' => bbcode2html(sprintf($lang['TERMS_EMPTY_TEXT'], $bb_cfg['server_name'])),
|
||
'TERMS_HTML' => bbcode2html($bb_cfg['terms']),
|
||
]);
|
||
|
||
print_page('terms.tpl');
|