mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-12-14 16:11:16 -08:00
e54349c2ce
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@22 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
52 lines
954 B
PHP
52 lines
954 B
PHP
<?php
|
|
|
|
define('IN_PHPBB', true);
|
|
define('IN_PROFILE', true);
|
|
define('BB_SCRIPT', 'profile');
|
|
define('BB_ROOT', './');
|
|
require(BB_ROOT . "common.php");
|
|
|
|
// Start session management
|
|
$user->session_start();
|
|
|
|
// session id check
|
|
$sid = request_var('sid', '');
|
|
$mode = request_var('mode', '');
|
|
$mode = htmlspecialchars($mode);
|
|
|
|
switch ($mode)
|
|
{
|
|
case 'viewprofile':
|
|
require(INC_DIR . 'ucp/usercp_viewprofile.php');
|
|
break;
|
|
|
|
case 'register':
|
|
case 'editprofile':
|
|
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
|
|
{
|
|
login_redirect();
|
|
}
|
|
|
|
require(INC_DIR . 'ucp/usercp_register.php');
|
|
break;
|
|
|
|
case 'sendpassword':
|
|
require(INC_DIR .'ucp/usercp_sendpasswd.php');
|
|
break;
|
|
|
|
case 'activate':
|
|
require(INC_DIR .'ucp/usercp_activate.php');
|
|
break;
|
|
|
|
case 'email':
|
|
require(INC_DIR .'ucp/usercp_email.php');
|
|
break;
|
|
|
|
case 'attachcp':
|
|
require(INC_DIR .'ucp/usercp_attachcp.php');
|
|
break;
|
|
|
|
default:
|
|
bb_die('Invalid mode');
|
|
}
|