protected void btnAddMember_Click(object sender, EventArgs e) { if (((((this.xname.Text == "") || (this.cname.Text == "")) || ((this.xcity.Text == "") || (this.xaddress.Text == ""))) || (((this.xtelephone.Text == "") || (this.xemail.Text == "")) || (this.xpass.Text == ""))) || (this.xcode.Text == "")) { if (this.xname.Text == "") { this.xname.BorderColor = Color.Red; } else { this.xname.BorderColor = Color.Green; } if (this.cname.Text == "") { this.cname.BorderColor = Color.Red; } else { this.cname.BorderColor = Color.Green; } if (this.xcity.Text == "") { this.xcity.BorderColor = Color.Red; } else { this.xcity.BorderColor = Color.Green; } if (this.xaddress.Text == "") { this.xaddress.BorderColor = Color.Red; } else { this.xaddress.BorderColor = Color.Green; } if (this.xtelephone.Text == "") { this.xtelephone.BorderColor = Color.Red; } else { this.xtelephone.BorderColor = Color.Green; } if (this.xemail.Text == "") { this.xemail.BorderColor = Color.Red; } else { this.xemail.BorderColor = Color.Green; } if (this.xpass.Text == "") { this.xpass.BorderColor = Color.Red; } else { this.xpass.BorderColor = Color.Green; } if (this.xcode.Text == "") { this.xcode.BorderColor = Color.Red; } else { this.xcode.BorderColor = Color.Green; } this.btnAddMember.Text = "I CONFIRM THAT THE ABOVE ENTRIES ARE CORRECT"; base.Response.Write("<script language=JavaScript type='text/javascript'>alert('PLEASE BE SURE TO FILL IN ALL THE ENTRIES MARKED WITH A RED STAR!!'); </script>"); } else if (((((this.xname.Text != "") && (this.cname.Text != "")) && ((this.xcity.Text != "") && (this.xaddress.Text != ""))) && (((this.xtelephone.Text != "") && (this.xemail.Text != "")) && (this.xpass.Text != ""))) && (this.xcode.Text != "")) { int num = 0; if (this.btnAddMember.Text == "I CONFIRM THAT THE ABOVE ENTRIES ARE CORRECT") { if (!this.doCaptcha()) { this.btnAddMember.Text = "I CONFIRM THAT THE ABOVE ENTRIES ARE CORRECT"; } else { this.btnAddMember.Text = "REGISTER"; } } else { num += this.val.IsValidMobile(this.xtelephone.Text); num += this.val.IsValidEmail(this.xemail.Text); if (num > 0) { this.btnAddMember.Text = "I CONFIRM THAT THE ABOVE ENTRIES ARE CORRECT"; base.Response.Write("<script language=JavaScript type='text/javascript'>alert('PLEASE BE SURE THAT THE E-MAIL ADDRESS AND MOBILE NUMBER ARE IN THE CORRECT FORMAT!!'); </script>"); } else { bool flag = this.AllMobiles.Contains(this.xtelephone.Text); bool flag2 = this.AllEmails.Contains(this.xemail.Text); if (!flag && !flag2) { int num2 = 0; int num3 = 0; this.xaddy.city = this.xcity.Text; this.xaddy.countryID = this.residence.SelectedValue; this.xaddy.email1 = this.xemail.Text; this.xaddy.lgaID = "0"; this.xaddy.log_staff = "0"; this.xaddy.reg_date = this.xreg_date; this.xaddy.stateID = this.xselectState.SelectedValue; this.xaddy.street = this.xaddress.Text; this.xaddy.telephone1 = this.xtelephone.Text; this.xaddy.visible = this.xvisible; this.xaddy.zip = ""; this.xaddy.xsync = this.xsync; num3 = this.reg.addXpayAddress(this.xaddy); if (num3 > 0) { this.xmem.xname = this.xname.Text; this.xmem.cname = this.cname.Text; this.xmem.xreg_date = this.xreg_date; this.xmem.xvisible = this.xvisible; this.xmem.xsync = this.xsync; this.xmem.xpassword = this.xpass.Text; this.xmem.nationality = this.nationality.SelectedValue; this.xmem.addressID = num3.ToString(); this.xmem.sys_ID = ""; num2 = this.reg.addXpayMember(this.xmem); if (num2 > 0) { this.xpwallet.xemail = this.xemail.Text; this.xpwallet.xmobile = this.xtelephone.Text; this.xpwallet.xmemberID = num2.ToString(); this.xpwallet.xmembertype = "rc"; this.xpwallet.xpass = this.xpass.Text; this.xpwallet.reg_date = this.xreg_date; this.reg.addPwallet(this.xpwallet); this.xname.BorderColor = Color.White; this.cname.BorderColor = Color.White; this.xcity.BorderColor = Color.White; this.xaddress.BorderColor = Color.White; this.xtelephone.BorderColor = Color.White; this.xemail.BorderColor = Color.White; this.xpass.BorderColor = Color.White; this.xcode.BorderColor = Color.White; Email email = new Email(); Messenger messenger = new Messenger(); string str8 = (("Dear " + this.xname.Text + ",<br/>") + "You have been registered on the CLD Platform!Please store the details below <br/>") + " Username: "******"<br/>"; string msg = str8 + "Password: "******"<br/>System ID :CLD/RC/" + num2.ToString().PadLeft(5, '0') + ",<br/>Regards"; str8 = (("Dear " + this.xname.Text + ",\r\n") + "You have been registered on the CLD Platform!Please store the details below\r\n") + "Username: "******";\r\n"; string s = str8 + "Password:\r\n" + this.xpass.Text + ";\r\nSystem ID :CLD/RC/" + num2.ToString().PadLeft(5, '0') + ",\r\nRegards"; string subject = "CLD REGISTRATION"; string from = "*****@*****.**"; string text = this.xemail.Text; string sendto = this.xtelephone.Text; s = base.Server.UrlEncode(s); if (sendto.StartsWith("0")) { sendto = "234" + sendto.Remove(0, 1); } email.sendMail("CLD REGISTRATION", text, from, subject, msg, ""); if (messenger.send_sms(s, "CLD REG.", sendto) == "The remote name could not be resolved: 'www.smslive247.com'") { base.Response.Write("<script language=JavaScript type='text/javascript'>alert('PLEASE BE SURE THAT THERE IS AN INTERNET CONNECTION!!'); </script>"); } base.Response.Redirect("mem_reg_succ.aspx?x=" + this.xname.Text.ToUpper() + "&m=CLD/RC/" + num2.ToString().PadLeft(5, '0')); } } } else { this.btnAddMember.Text = "I CONFIRM THAT THE ABOVE ENTRIES ARE CORRECT"; if (flag2) { base.Response.Write("<script language=JavaScript type='text/javascript'>alert('THE E-MAIL ADDRESS ALREADY EXISTS ON THE SYSTEM'); </script>"); } if (flag) { base.Response.Write("<script language=JavaScript type='text/javascript'>alert('THE MOBILE NUMBER ALREADY EXISTS ON THE SYSTEM'); </script>"); } } } } } }
protected void sendAlert() { this.fullname = this.Session["fullname"].ToString(); this.email = this.Session["email"].ToString(); this.mobile = this.Session["mobile"].ToString(); Email email = new Email(); Messenger messenger = new Messenger(); string msg = (("Dear " + this.fullname + ",<br/>") + "Transaction : " + this.Session["transID"].ToString().ToUpper() + " has been successfully validated!<br/>") + "You may now use you items from your profile page.<br/>Regards"; string s = ("Dear " + this.fullname + ",\r\n") + "Transaction : " + this.Session["transID"].ToString().ToUpper() + " has been successfully validated!\r\nYou may now use you items from your profile page.\r\nRegards"; string subject = "XPAY ALERT"; string from = "*****@*****.**"; string to = this.email; string mobile = this.mobile; s = base.Server.UrlEncode(s); if (mobile.StartsWith("0")) { mobile = "234" + mobile.Remove(0, 1); } email.sendMail("XPAY ALERT", to, from, subject, msg, ""); string str7 = messenger.send_sms(s, "XPAY ALERT", mobile); }
protected void sendAlert() { if (this.Session["fullname"] != null) { this.fullname = this.Session["fullname"].ToString(); } if (this.Session["email"] != null) { this.email = this.Session["email"].ToString(); } if (this.Session["mobile"] != null) { this.mobile = this.Session["mobile"].ToString(); } Email email = new Email(); Messenger messenger = new Messenger(); string msg = "Dear " + this.fullname + ",<br/>"; string s = "Dear " + this.fullname + ",\r\n"; if (this.Session["Refno"] != null) { string str8; if (this.isr.ResponseCode == "00") { msg = ((((msg + "Your payment transaction has been successfully completed!<br/>") + "Reason: " + this.isr.ResponseDescription + "<br />") + "Transaction Reference: " + this.Session["Refno"].ToString().ToUpper() + "<br/>") + "Payment Reference :" + this.payRef + "<br/>") + "Please check your \"Payment Status\" or \"History Log\" to view more details!!<br/><br/>Regards"; str8 = s; s = str8 + "Your payment transaction has been successfully completed\r\nReason: " + this.isr.ResponseDescription + "\r\nTransaction Reference: " + this.Session["Refno"].ToString().ToUpper() + " \r\nPayment Reference :" + this.payRef + "\r\nPlease check your 'Payment Status' or 'History Log' to view more details\r\nRegards"; } else { msg = ((((msg + "Your payment transaction was not successfull!<br/>") + "Reason: " + this.isr.ResponseDescription + "<br />") + "Transaction Reference: " + this.Session["Refno"].ToString().ToUpper() + "<br/>") + "Payment Reference :" + this.payRef + "<br/>") + "Please check your \"Payment Status\" or \"History Log\" to view more details!!<br/><br/>Regards"; str8 = s; s = str8 + "Your payment transaction was not successfull\r\nTransaction Reference: " + this.Session["Refno"].ToString().ToUpper() + " \r\nPayment Reference :" + this.payRef + "\r\nPlease check your 'Payment Status' or 'History Log' to view more details\r\nRegards"; } } string subject = "XPAY ALERT"; string from = "*****@*****.**"; string to = this.email; string mobile = this.mobile; s = base.Server.UrlEncode(s); if (mobile.StartsWith("0")) { mobile = "234" + mobile.Remove(0, 1); } email.sendMail("XPAY ALERT", to, from, subject, msg, ""); string str7 = messenger.send_sms(s, "XPAY ALERT", mobile); }