// Token: 0x060000C9 RID: 201 RVA: 0x0000A638 File Offset: 0x00008838 public static bool InIPArray(string ip, string[] iparray) { string[] array = FPUtils.SplitString(ip, "."); int i = 0; while (i < iparray.Length) { string[] array2 = FPUtils.SplitString(iparray[i], "."); int num = 0; for (int j = 0; j < array2.Length; j++) { if (array2[j] == "*") { return(true); } if (array.Length <= j) { break; } if (!(array2[j] == array[j])) { break; } num++; } if (num != 4) { i++; continue; } return(true); } return(false); }
// Token: 0x06000077 RID: 119 RVA: 0x0000853C File Offset: 0x0000673C private void AddSeoInfo(string Seokeywords, string Seodescription) { string[] array = FPUtils.SplitString(this.meta, "\r\n"); this.meta = ""; string[] array2 = array; int i = 0; while (i < array2.Length) { string text = array2[i]; if (text.ToLower().IndexOf("name=\"keywords\"") <= 0) { goto IL_B5; } if (Seokeywords == null || !(Seokeywords.Trim() != "")) { goto IL_B5; } this.meta = this.meta + "<meta name=\"keywords\" content=\"" + FPUtils.RemoveHtml(Seokeywords + "," + this.siteconfig.keywords).Replace("\"", " ") + "\" />\r\n"; IL_153: i++; continue; IL_B5: if (text.ToLower().IndexOf("name=\"description\"") > 0) { if (Seodescription != null && Seodescription.Trim() != "") { this.meta = this.meta + "<meta name=\"description\" content=\"" + FPUtils.RemoveHtml(this.siteconfig.description + "," + Seodescription).Replace("\"", " ") + "\" />\r\n"; goto IL_153; } } this.meta = this.meta + text + "\r\n"; goto IL_153; } }
// Token: 0x060000C2 RID: 194 RVA: 0x0000A420 File Offset: 0x00008620 public static int[] SplitInt(string strContent, string strSplit) { string[] array = FPUtils.SplitString(strContent, strSplit); int[] array2 = new int[array.Length]; for (int i = 0; i < array.Length; i++) { array2[i] = FPUtils.StrToInt(array[i]); } return(array2); }
// Token: 0x060000C8 RID: 200 RVA: 0x0000A5D8 File Offset: 0x000087D8 public static bool InArray(string str, string stringArray, string strsplit) { if (stringArray != null && stringArray != "") { string[] array = FPUtils.SplitString(stringArray, strsplit); for (int i = 0; i < array.Length; i++) { if (array[i] == str) { return(true); } } } return(false); }
// Token: 0x060000C0 RID: 192 RVA: 0x0000A3A8 File Offset: 0x000085A8 public static string[] SplitString(string strContent, string strSplit, int p_3) { string[] array = new string[p_3]; string[] array2 = FPUtils.SplitString(strContent, strSplit); for (int i = 0; i < p_3; i++) { if (i < array2.Length) { array[i] = array2[i]; } else { array[i] = string.Empty; } } return(array); }
// Token: 0x060000C3 RID: 195 RVA: 0x0000A468 File Offset: 0x00008668 public static int[] SplitInt(string strContent, string strSplit, int p_3) { int[] array = new int[p_3]; string[] array2 = FPUtils.SplitString(strContent, strSplit); for (int i = 0; i < p_3; i++) { if (i < array2.Length) { array[i] = FPUtils.StrToInt(array2[i]); } else { array[i] = 0; } } return(array); }
// Token: 0x060000BE RID: 190 RVA: 0x0000A344 File Offset: 0x00008544 public static string[] SplitString(string strContent) { return(FPUtils.SplitString(strContent, ",")); }