torrentpier/terms.php
Roman Kelesidis 8c925cc303
Minor improvements (#1443)
* Minor improvements

* Updated

* Update terms.php

* Update main.php

* Update CHANGELOG.md

* Update memberlist.tpl
2024-04-11 15:11:12 +07:00

28 lines
763 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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'], make_url('admin/admin_terms.php'))),
'TERMS_HTML' => bbcode2html($bb_cfg['terms']),
]);
print_page('terms.tpl');