public void RaiseCallbackEvent(string eventArgument) { if (string.IsNullOrEmpty(eventArgument)) { this.result = "empty"; } else if (eventArgument.StartsWith("$QQ")) { bool flag = Contacter.CheckExistsQQ(eventArgument.Substring(3)); this.result = "{name:'QQ',value:" + flag.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$Msn")) { bool flag2 = Contacter.CheckExistsMsn(eventArgument.Substring(4)); this.result = "{name:'Msn',value:" + flag2.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$Homepage")) { string homepage = eventArgument.Substring(9); bool flag3 = Contacter.CheckExistsHomepage(homepage) || Company.CheckExistsHomepage(homepage); this.result = "{name:'Homepage',value:" + flag3.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$OP")) { string phone = eventArgument.Substring(3); bool flag4 = Contacter.CheckExistsPhone(phone) || Company.CheckExistsPhone(phone); this.result = "{name:'OP',value:" + flag4.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$HP")) { string str5 = eventArgument.Substring(3); bool flag5 = Contacter.CheckExistsPhone(str5) || Company.CheckExistsPhone(str5); this.result = "{name:'HP',value:" + flag5.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$MO")) { string str6 = eventArgument.Substring(3); bool flag6 = Contacter.CheckExistsPhone(str6) || Company.CheckExistsPhone(str6); this.result = "{name:'MO',value:" + flag6.ToString().ToLower() + "}"; } else if (StringHelper.FoundCharInArr(this.userSiteConfig.UserNameRegDisabled, eventArgument, "|")) { this.result = "disabled"; } else if (Users.Exists(Users.UserNamefilter(eventArgument))) { this.result = "true"; } else { this.result = "false"; } }
public void RaiseCallbackEvent(string eventArgument) { if (!string.IsNullOrEmpty(eventArgument)) { if (eventArgument.StartsWith("$QQ")) { bool flag = Contacter.CheckExistsQQ(eventArgument.Substring(3)); this.result = "{name:'QQ',value:" + flag.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$Msn")) { bool flag2 = Contacter.CheckExistsMsn(eventArgument.Substring(4)); this.result = "{name:'Msn',value:" + flag2.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$OP")) { string phone = eventArgument.Substring(3); bool flag3 = Contacter.CheckExistsPhone(phone) || Company.CheckExistsPhone(phone); this.result = "{name:'OP',value:" + flag3.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$HP")) { string str4 = eventArgument.Substring(3); bool flag4 = Contacter.CheckExistsPhone(str4) || Company.CheckExistsPhone(str4); this.result = "{name:'HP',value:" + flag4.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$MP")) { string str5 = eventArgument.Substring(3); bool flag5 = Contacter.CheckExistsPhone(str5) || Company.CheckExistsPhone(str5); this.result = "{name:'MP',value:" + flag5.ToString().ToLower() + "}"; } else if (eventArgument.StartsWith("$Page")) { string strB = eventArgument.Substring(5); if (string.Compare("http://", strB, true) != 0) { bool flag6 = Contacter.CheckExistsHomepage(strB) || Company.CheckExistsHomepage(strB); this.result = "{name:'Page',value:" + flag6.ToString().ToLower() + "}"; } else { this.result = "{name:'Page',value:false}"; } } } }