torrentpier/profile.php
Roman Kelesidis fad09cf0eb
Updated copyright year (#1201)
* Updated copyright year

* Updated
2023-12-12 22:14:01 +07:00

63 lines
1.4 KiB
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', 'profile');
define('IN_PROFILE', true);
require __DIR__ . '/common.php';
// Start session management
$user->session_start();
set_die_append_msg();
$mode = request_var('mode', 'viewprofile');
switch ($mode) {
case 'viewprofile':
require UCP_DIR . '/viewprofile.php';
break;
case 'register':
case 'editprofile':
if (IS_GUEST && $mode == 'editprofile') {
login_redirect();
}
require UCP_DIR . '/register.php';
break;
case 'sendpassword':
require UCP_DIR . '/sendpasswd.php';
break;
case 'activate':
require UCP_DIR . '/activate.php';
break;
case 'email':
require UCP_DIR . '/email.php';
break;
case 'bonus':
if (IS_GUEST) {
login_redirect();
}
require UCP_DIR . '/bonus.php';
break;
case 'watch':
if (IS_GUEST) {
login_redirect();
}
require UCP_DIR . '/topic_watch.php';
break;
default:
bb_die('Invalid mode');
}