mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-12-14 08:01:14 -08:00
fad09cf0eb
* Updated copyright year * Updated
63 lines
1.4 KiB
PHP
63 lines
1.4 KiB
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', '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');
|
||
}
|