Code: Select all
if ( $mode == 'viewprofile' )
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile&" . POST_USERS_URL . '=' . intval($HTTP_GET_VARS[POST_USERS_URL]), true));
}
{
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}
Code: Select all
if ( $mode == 'viewprofile' )
{
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile&" . POST_USERS_URL . '=' . intval($HTTP_GET_VARS[POST_USERS_URL]), true));
}
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}