Exemple #1
0
 public ActionResult AboutUsePoints()
 {
     //获取并设置项目版本号
     SetMetasVersion();
     //获取当前登录的用户编号
     String userID = User.Identity.Name;
     userID = userID == "" ? null : userID;
     Models.PageModels.MemberPageModel model = new Models.PageModels.MemberPageModel();
     model.UserID = userID;
     model.MemberID = userID;
     model.Member = userID == null ? null : Models.DisplayObjProvider.getMemberFullDisplayObj(userID);
     return View(model);
 }
Exemple #2
0
        public ActionResult Welcome(String ActivationCode)
        {
            SetMetasVersion();

            String userid = User.Identity.Name;
            if (userid == null || userid == "")
            {
                return RedirectToAction("Error", "Error", new { errorno = "0" });
            }

            BiZ.Member.Member member = BiZ.MemberManager.MemberManager.GetMember(userid);
            if (member.AllowLogin)
                return RedirectToAction("IFavorerContent", "Content");

            ViewData["membercount"] = BiZ.MemberManager.MemberManager.GetAllMemberCount();

            #region 构造页面数据对象
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(userid);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = userid;
            memberModel.MemberID = userid;
            memberModel.AlreadyLogon = true;
            #endregion

            return View(memberModel);
        }
Exemple #3
0
        public ActionResult VerifyEmail(String email, String back)
        {
            #region metas version
            SetMetasVersion();
            #endregion

            BiZ.Member.Member mym = BiZ.MemberManager.MemberManager.GetNotActivationEmailMember(email);
            if (mym != null)
            {
                bool sendState = CBB.NetworkingHelper.EmailHelper.SendMail(email, "[米柚]注册验证邮件", Common.Comm.GetRegisterEmailContent(email, mym.Password));
                if (!sendState)
                    return RedirectToAction("Error", "Error", new { errorno = "3" });
            }
            else
            {
                return RedirectToAction("Error", "Error", new { errorno = "3" });
            }

            ViewData["email"] = email;
            ViewData["emailurl"] = "mail." + email.Split('@')[1];
            ViewData["back"] = back;

            #region 构造页面数据对象
            String memberId = HttpContext.User.Identity.Name;
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(memberId);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = memberId;
            memberModel.MemberID = memberId;
            memberModel.AlreadyLogon = true;
            #endregion

            return View(memberModel);
        }
Exemple #4
0
        public ActionResult ResetPassword(String back)
        {
            SetMetasVersion();

            if (back == null)
            {
                ViewData["back"] = "/Account/Login";
            }
            else
                ViewData["back"] = back;

            #region 构造页面数据对象
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel();
            #endregion

            return View(memberModel);
        }
Exemple #5
0
        public ActionResult show(String id)
        {
            SetMetasVersion();

            //照片ID
            if (id == null) return RedirectToAction("Error", "Error", new { errorno = "0" });
            BiZ.Photo.Photo photo = BiZ.Photo.PhotoManager.GetPhoto(id);

            String mid = HttpContext.User.Identity.Name;
            bool alreadylogin = Common.Comm.isalreadylogin("Member", HttpContext.User);

            #region 构造页面数据对象
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(photo.MemberID);
            Models.PageModels.MemberPageModel memberPage = new Models.PageModels.MemberPageModel(memberDisplayObj);

            memberPage.UserID = mid;
            memberPage.MemberID = photo.MemberID;
            memberPage.AlreadyLogon = alreadylogin;
            #endregion

            ViewData["imgid"] = id;
            ViewData["isMe"] = memberPage.AlreadyLogon;
            ViewData["photourl"] = photo.FileName.Replace("\\", "/");
            ViewData["phototitle"] = photo.Title;
            ViewData["photocontent"] = photo.Content;
            ViewData["photodate"] = photo.CreatedTime.ToLocalTime();
            ViewData["photocommentscount"] = photo.CommentCount;
            ViewData["photoviewscount"] = photo.ViewCount;

            if (photo.CommentCount > 0)
            {
                ViewData["photocomments"] = new JavaScriptSerializer().Serialize(photo.Comments);
            }
            else
            {
                ViewData["photocomments"] = "[]";
            }
            ViewData["mid"] = photo.MemberID;
            ViewData["photowalldata"] = GetSimplePhotoList(photo.MemberID, null, "0", "0");

            return View(memberPage);
        }
Exemple #6
0
        public ActionResult UploadFinish()
        {
            #region metas version
            ViewData["jsversion"] = BiZ.Sys.RunStatus.JsVersion;
            ViewData["cssversion"] = BiZ.Sys.RunStatus.CSSVersion;
            ViewData["imageversion"] = BiZ.Sys.RunStatus.ImageVersion;
            #endregion
            string memberID = User.Identity.Name;
            String imagepath = "";
            if (Session["shareWeiBoImage"] != null)
            {
                Session.Remove("shareWeiBoImage");
            }
            imagepath = Models.DisplayObjProvider.getUserIconToShare(memberID);
            Session["shareWeiBoImage"] = Server.MapPath(imagepath);
            ViewData["imagepath"] = imagepath;

            //获取兴趣集合
            IList<BiZ.InterestCenter.Interest> interests = BiZ.InterestCenter.InterestFactory.GetMemberInterest(memberID, 0, 0);
            IList<BiZ.InterestCenter.Interest> interestList = new List<BiZ.InterestCenter.Interest>();
            String interesttitles = "";
            //最多只能有三个兴趣
            foreach (var obj in interests)
            {
                if (interestList.Count < 3)
                {
                    interestList.Add(obj);
                    interesttitles += obj.Title + ",";
                }
                else
                    break;
            }
            ViewData["interestTitles"] = interesttitles.Substring(0, interesttitles.Length - 1);

            Models.PageModels.MemberPageModel model = new Models.PageModels.MemberPageModel();
            model.UserID = memberID;
            model.MemberID = memberID;
            model.AlreadyLogon = true;
            if (model.User.BindedPlatforms == null || model.User.BindedPlatforms.Trim() == "")
            {
                if (Session["shareWeiBoImage"] != null)
                {
                    Session.Remove("shareWeiBoImage");
                }
            }
            return View(model);
        }
Exemple #7
0
        public ActionResult Skin()
        {
            SetMetasVersion();
            String userid = HttpContext.User.Identity.Name;
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(userid);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = userid;
            memberModel.MemberID = userid;
            memberModel.AlreadyLogon = true;

            return View(memberModel);
        }
Exemple #8
0
        public ActionResult photoupload(String t)
        {
            SetMetasVersion();

            //照片类别
            int type = 0;
            if (t == null) type = -1;
            if (t != null) Int32.TryParse(t, out type);

            bool alreadylogin = true;
            String userid = HttpContext.User.Identity.Name;

            #region 构造页面数据对象
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(userid);
            Models.PageModels.MemberPageModel memberPage = new Models.PageModels.MemberPageModel(memberDisplayObj);

            memberPage.UserID = userid;
            memberPage.MemberID = userid;
            memberPage.AlreadyLogon = alreadylogin;
            #endregion

            ViewData["phototype"] = type;

            return View(memberPage);
        }
Exemple #9
0
        public ActionResult Privacy()
        {
            SetMetasVersion();
            String memberID = HttpContext.User.Identity.Name;
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(memberID);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = memberID;
            memberModel.MemberID = memberID;
            memberModel.AlreadyLogon = true;

            BiZ.Member.Member mym = BiZ.MemberManager.MemberManager.GetMember(memberID);
            ViewData["AutoAddOutCallingToMyFavorList"] = mym.Settings.AutoAddOutCallingToMyFavorList;
            ViewData["OnlySeniorMemberCanTalkSaiHiMe"] = mym.Settings.OnlySeniorMemberCanTalkSaiHiMe;
            ViewData["OnlyVIPMemberCanTalkSaiHiMe"] = mym.Settings.OnlyVIPMemberCanTalkSaiHiMe;

            return View(memberModel);
        }
Exemple #10
0
        public ActionResult PersonInfo()
        {
            SetMetasVersion();
            String userid = HttpContext.User.Identity.Name;
            BiZ.Member.Member mym = BiZ.MemberManager.MemberManager.GetMember(userid);
            #region 内测期跳转检测
            if (!mym.AllowLogin)
            {
                return RedirectToAction("Welcome", "Account");
            }
            #endregion
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(userid);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = userid;
            memberModel.MemberID = userid;
            memberModel.AlreadyLogon = true;

            return View(memberModel);
        }
Exemple #11
0
        public ActionResult Contact()
        {
            SetMetasVersion();
            String memberID = HttpContext.User.Identity.Name;
            BiZ.Member.Member memberObj = BiZ.MemberManager.MemberManager.GetMember(memberID);
            ViewData["nickName"] = memberObj.MemberInfomation.NickName;
            ViewData["mobileNo"] = memberObj.MobileNo;
            ViewData["qq"] = memberObj.MemberInfomation.QQ;

            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(memberID);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = memberID;
            memberModel.MemberID = memberID;
            memberModel.AlreadyLogon = true;
            return View(memberModel);
        }
Exemple #12
0
        public ActionResult Authentica()
        {
            SetMetasVersion();
            String memberID = HttpContext.User.Identity.Name;
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(memberID);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = memberID;
            memberModel.MemberID = memberID;
            memberModel.AlreadyLogon = true;
            if (memberModel.Member.IsRealPhotoIdentification)
            {
                ViewData["isAuth"] = "pass";
            }
            else
            {
                BiZ.PhotoCheck.PhotoCheckModel pcm = Moooyo.BiZ.Sys.PhotoCheck.PhotoCheckStatusFactory.GetCheckPhotoByUserId(memberID);
                if (null == pcm)
                {
                    string temppath = memberModel.Member.ICONPath;
                    if (null == temppath || temppath.Trim().Length <= 0 || temppath.Equals("/pics/noicon.jpg"))
                    {
                        ViewData["isAuth"] = "notIcon";
                    }
                    else
                    {
                        ViewData["isAuth"] = "Auth";
                    }
                }
                else
                {
                    if (pcm.CheckStatus == Convert.ToInt32(BiZ.PhotoCheck.CheckPhotoStatus.waitaudit))
                    {
                        ViewData["isAuth"] = "wait";
                    }
                    else
                    {
                        pcm = Moooyo.BiZ.Sys.PhotoCheck.PhotoCheckStatusFactory.GetCheckPhotoByUserId(memberID, BiZ.PhotoCheck.CheckPhotoStatus.waitaudit);
                        if (null != pcm)
                            ViewData["isAuth"] = "wait";
                        else
                            ViewData["isAuth"] = "lose";
                    }
                }
            }

            return View(memberModel);
        }
Exemple #13
0
        public ActionResult AccessSet()
        {
            SetMetasVersion();
            String memberID = HttpContext.User.Identity.Name;
            Models.MemberFullDisplayObj memberDisplayObj = Models.DisplayObjProvider.getMemberFullDisplayObj(memberID);
            Models.PageModels.MemberPageModel memberModel = new Models.PageModels.MemberPageModel(memberDisplayObj);
            memberModel.UserID = memberID;
            memberModel.MemberID = memberID;
            memberModel.AlreadyLogon = true;

            BiZ.Member.Member mym = BiZ.MemberManager.MemberManager.GetMember(memberID);
            ViewData["isAllowAccessMe"] = mym.Settings.StopMyAccount;

            return View(memberModel);
        }