elseif ( $mode == 'editprofile' || $mode == 'register' )
{
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
{
redirect(append_sid(LOGIN_MG . "?redirect=profile".$phpEx."&mode=editprofile", true));
//redirect(append_sid(LOGIN_MG . "?redirect=profile.$phpEx&mode=editprofile&cpl_mode=reg_info", true));
}
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}
{
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
{
redirect(append_sid(LOGIN_MG . "?redirect=profile".$phpEx."&mode=editprofile", true));
//redirect(append_sid(LOGIN_MG . "?redirect=profile.$phpEx&mode=editprofile&cpl_mode=reg_info", true));
}
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}
Thanks in advance, because this makes my avatar panel fail.