torrentpier/upload/profile.php
pherum83@gmail.com 7c9f78d321 r570
Переход на set_die_append_msg git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@570 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
2014-01-27 20:36:14 +00:00

53 lines
970 B
PHP

<?php
define('IN_PROFILE', true);
define('BB_SCRIPT', 'profile');
define('BB_ROOT', './');
require(BB_ROOT . 'common.php');
// Start session management
$user->session_start();
set_die_append_msg();
$mode = request_var('mode', '');
switch ($mode)
{
case 'viewprofile':
require(INC_DIR . 'ucp/usercp_viewprofile.php');
break;
case 'register':
case 'editprofile':
if (IS_GUEST && $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');
}