Exemple #1
0
 public static void SendVerifyEmail(string emailAddress, string verifyString, string langName)
 {
     Lang lang = new Lang(langName);
     lang.AddKeyword("Account.Email.VerifyEmail.Subject");
     lang.AddKeyword("Account.Email.VerifyEmail.Body");
     lang.GetTranslationFromSQL();
     string subject = lang.GetTrans("Account.Email.VerifyEmail.Subject");
     string body = lang.GetTrans("Account.Email.VerifyEmail.Body");
     body = body.Replace("\\n", "\n").Replace("{URL}", "http://account.UnsolvedCrime.ca/VerifyEmail/emailAddress=" + emailAddress + "/verifyString=" + verifyString + "/");
     SendAdminEmail(emailAddress, subject, body);
 }
 public void LoadLanguage()
 {
     try
     {
         if (Request.Cookies["langName"] != null)
         {
             this.lang = new Lang(Convert.ToString(Request.Cookies["langName"].Value));
         }
         else if (user != null)
         {
             this.lang = new Lang(user.GetLangID());
         }
         else
         {
             this.lang = new Lang("English");
         }
     }
     catch
     {
         this.lang = new Lang("English");
     }
     ViewBag.lang = this.lang;
 }