torrentpier/upload/profile.php
luxor41@gmail.com a66619db01 r417
Отслеживаемые темы, мелкие правки git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@417 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
2012-05-17 18:22:31 +00:00

60 lines
1.1 KiB
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 'bonus':
if (IS_GUEST) login_redirect();
require(INC_DIR . 'ucp/usercp_bonus.php');
break;
case 'watch':
if (IS_GUEST) login_redirect();
require(INC_DIR . 'ucp/usercp_topic_watch.php');
break;
default:
bb_die('Invalid mode');
}