Exemple #1
0
        public static string ReturnUrl()
        {
            int    currentMemberUserId = Globals.GetCurrentMemberUserId();
            string result;

            if (currentMemberUserId > 0)
            {
                MemberInfo currentMember = MemberProcessor.GetCurrentMember();
                if (currentMember != null)
                {
                    result = HiAffiliation.ReturnUrlByUser(currentMember);
                    return(result);
                }
            }
            result = HiAffiliation.ReturnUrlByQueryString();
            return(result);
        }
Exemple #2
0
        public static string ReturnUrl()
        {
            int    currentMemberUserId = Globals.GetCurrentMemberUserId(false);
            string result;

            if (currentMemberUserId > 0)
            {
                MemberInfo currentMember = MemberProcessor.GetCurrentMember();
                if (currentMember != null)
                {
                    result = HiAffiliation.ReturnUrlByUser(currentMember);
                    if (!result.ToLower().Contains("http") && !result.ToLower().Contains("bigeergeek") && result.ToLower().Contains("referralid"))
                    {
                        Globals.Debuglog("ReturnUrl:" + "http://" + HttpContext.Current.Request.Url.Host + result);
                        result = "http://" + HttpContext.Current.Request.Url.Host + result;
                    }
                    Globals.Debuglog("ReturnUrl:" + result);
                    return(result);
                }
            }
            result = HiAffiliation.ReturnUrlByQueryString();

            return(result);
        }