public static void RemoveList(string name, string keys) { if (string.IsNullOrEmpty(name)) { return; } string[] array = FPArray.SplitString(keys); foreach (string text in array) { if (text != "") { Remove(name + text); } } }
public static string echo(string obj, string oldStr, string newStr) { if (string.IsNullOrEmpty(obj)) { return(""); } if (string.IsNullOrEmpty(oldStr)) { return(obj); } string[] array = FPArray.SplitString(oldStr, "|"); string[] array2 = FPArray.SplitString(newStr, "|", array.Length); for (int i = 0; i < array.Length; i++) { if (array[i] != "") { obj = obj.Replace(array[i], array2[i]); } } return(obj); }
private void AddSeoInfo(string Seokeywords, string Seodescription) { string[] array = FPArray.SplitString(meta, "\r\n"); meta = ""; string[] array2 = array; foreach (string text in array2) { if (text.ToLower().IndexOf("name=\"keywords\"") > 0 && Seokeywords != null && Seokeywords.Trim() != "") { meta = meta + "<meta name=\"keywords\" content=\"" + FPUtils.RemoveHtml(Seokeywords + "," + siteinfo.keywords).Replace("\"", " ") + "\" />\r\n"; } else if (text.ToLower().IndexOf("name=\"description\"") > 0 && Seodescription != null && Seodescription.Trim() != "") { meta = meta + "<meta name=\"description\" content=\"" + FPUtils.RemoveHtml(siteinfo.description + "," + Seodescription).Replace("\"", " ") + "\" />\r\n"; } else { meta = meta + text + "\r\n"; } } }
public static void Remove(string key, string u_keys) { if (string.IsNullOrEmpty(key) || string.IsNullOrEmpty(u_keys)) { return; } object obj = Get(key); if (obj == null) { return; } Hashtable hashtable = obj as Hashtable; string[] array = FPArray.SplitString(u_keys); foreach (string key2 in array) { if (hashtable[key2] != null) { hashtable.Remove(key2); } } Insert(key, hashtable); }
public static void Remove(string name, string keys, int expires) { if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(keys)) { return; } object obj = Get(name); if (obj == null) { return; } Hashtable hashtable = obj as Hashtable; string[] array = FPArray.SplitString(keys); foreach (string key in array) { if (hashtable[key] != null) { hashtable.Remove(key); } } Insert(name, hashtable, expires); }
public static T GetModel <T>(T model, string prefix) { PropertyInfo[] properties = model.GetType().GetProperties(); foreach (PropertyInfo propertyInfo in properties) { if (propertyInfo == null || !propertyInfo.CanWrite) { continue; } string text = prefix + propertyInfo.Name; if (text.ToLower() == prefix + "pageurl") { propertyInfo.SetValue(model, GetRawUrl(), null); } else if (propertyInfo.PropertyType == typeof(FPData)) { FPData fPData = propertyInfo.GetValue(model, null) as FPData; object[] customAttributes = propertyInfo.GetCustomAttributes(true); foreach (object obj in customAttributes) { if (!(obj is CheckBox)) { continue; } CheckBox checkBox = obj as CheckBox; if (!checkBox.IsCheckBox) { continue; } if (checkBox.CheckName != "") { string[] array = FPArray.SplitString(checkBox.CheckName); foreach (string key in array) { fPData[key] = ""; } } else { string[] array = fPData.Keys; foreach (string key2 in array) { fPData[key2] = ""; } } } fPData = GetFPData(text, fPData); propertyInfo.SetValue(model, fPData, null); } else if (propertyInfo.PropertyType == typeof(List <FPData>)) { List <FPData> fPList = GetFPList(text); propertyInfo.SetValue(model, fPList, null); } else if (HttpContext.Current.Request.QueryString[text] == null && HttpContext.Current.Request.Form[text] == null) { object[] customAttributes = propertyInfo.GetCustomAttributes(true); foreach (object obj2 in customAttributes) { if (obj2 is CheckBox && (obj2 as CheckBox).IsCheckBox) { if (propertyInfo.PropertyType == typeof(int)) { propertyInfo.SetValue(model, 0, null); } else { propertyInfo.SetValue(model, "", null); } } } } else if (propertyInfo.PropertyType == typeof(string)) { propertyInfo.SetValue(model, GetString(text), null); } else if (propertyInfo.PropertyType == typeof(int)) { propertyInfo.SetValue(model, GetInt(text), null); } else if (propertyInfo.PropertyType == typeof(DateTime)) { propertyInfo.SetValue(model, GetDateTime(text), null); } else if (propertyInfo.PropertyType == typeof(decimal)) { propertyInfo.SetValue(model, GetDecimal(text), null); } else if (propertyInfo.PropertyType == typeof(float)) { propertyInfo.SetValue(model, GetFloat(text), null); } else if (propertyInfo.PropertyType == typeof(double)) { propertyInfo.SetValue(model, GetDouble(text), null); } else if (propertyInfo.PropertyType == typeof(DateTime?)) { propertyInfo.SetValue(model, GetDateTime2(text), null); } } return(model); }
public static void Show(string message, string title, string btn) { if (title == "") { title = "提示信息"; } StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n"); stringBuilder.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n"); stringBuilder.Append("<head>\r\n"); stringBuilder.Append("<meta content=\"text/html; charset=utf-8\" http-equiv=Content-Type>\r\n"); stringBuilder.AppendFormat("<title>{0}</title>\r\n", title); stringBuilder.Append("<style type=text/css>\r\n"); stringBuilder.Append("html, body, ul, h2, p{margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }\r\n"); stringBuilder.Append("body, button, input, textarea {font: 12px/1.5 Tahoma, Helvetica, Arial, 'Microsoft YaHei', sans-serif;}\r\n"); stringBuilder.Append(".board {\r\n"); stringBuilder.Append("\tborder: #a7c5e2 1px solid;\r\n"); stringBuilder.Append("\tpadding: 1px;\r\n"); stringBuilder.Append("\twidth: 470px;\r\n"); stringBuilder.Append("}\r\n"); stringBuilder.Append(".topinfo {\r\n"); stringBuilder.Append("\ttext-align: left;\r\n"); stringBuilder.Append("\tpadding-top: 12px ;\r\n"); stringBuilder.Append("\tpadding-left:36px;\r\n"); stringBuilder.Append("\tfont: bold 16px verdana;\r\n"); stringBuilder.Append("\tbackground: #ebf3fb url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4f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17+znZTEhYoKGA6G+jkuzpg/CEDFtuZxDfUrH6IW1zpMXX8P7LzL7MgGoH63c+uTbrbtXHlWfIkHevhpVMC37cgliIkrHzq52jr10DpEfd+1r12BNAOpGqwvXJtdvXzli139Hgih7/I1eVI+qQ50l7CzTdeLsdjzw9MsoX+oeg803n+ixdHv1RVuZ+2hr6Sa11T/Q5EEGLvRR7Bmh1D9G1HPi+7D00Afqkuv5Jv9vAH/tt5jluGkEAAAAAElFTkSuQmCC) no-repeat 10px center;\r\n"); stringBuilder.Append("\tcolor: #4a8f00;\r\n"); stringBuilder.Append("\theight:30px;\r\n"); stringBuilder.Append("}\r\n"); stringBuilder.Append(".tipcontent {\r\n"); if (btn != "") { stringBuilder.Append("\tborder-bottom: #d2e2f4 1px solid;\r\n"); } stringBuilder.Append("\ttext-align: left;\r\n"); stringBuilder.Append("\tpadding: 15px;\r\n"); stringBuilder.Append("\tline-height: 22px;\r\n"); stringBuilder.Append("\ttext-indent: 26px;\r\n"); stringBuilder.Append("\tmin-height: 120px;\r\n"); stringBuilder.Append("\tbackground: #fff;\r\n"); stringBuilder.Append("\tcolor: red;\r\n"); stringBuilder.Append("\tmax-height: 300px;\r\n"); stringBuilder.Append("\tfont-size: 15px;\r\n"); stringBuilder.Append("\tborder-top: #d2e2f4 1px solid;\r\n"); stringBuilder.Append("}\r\n"); stringBuilder.Append(".butinfo {\r\n"); stringBuilder.Append("\ttext-align: right;\r\n"); stringBuilder.Append("\tpadding: 8px;\r\n"); stringBuilder.Append("\tfont: bold 15px verdana;\r\n"); stringBuilder.Append("\tbackground: #ebf3fb;\r\n"); stringBuilder.Append("\tcolor: #4a8f00;\r\n"); stringBuilder.Append("}\r\n"); stringBuilder.Append(".butinfo.butinfo a{\r\n"); stringBuilder.Append("\tdisplay: inline-block;\r\n"); stringBuilder.Append("\theight: 33px;\r\n"); stringBuilder.Append("\tline-height: 31px;\r\n"); stringBuilder.Append("\tborder-radius: 2px;\r\n"); stringBuilder.Append("\tbackground-color: #4bd252;\r\n"); stringBuilder.Append("\tborder: solid 1px #36b148;\r\n"); stringBuilder.Append("\ttext-align: center;\r\n"); stringBuilder.Append("\tcolor: #fff;\r\n"); stringBuilder.Append("\tfont-size: 14px;\r\n"); stringBuilder.Append("\tbox-sizing:border-box;\r\n"); stringBuilder.Append("\tcursor: pointer;\r\n"); stringBuilder.Append("\t-webkit-user-select:none;\r\n"); stringBuilder.Append("\ttext-decoration:none;\r\n"); stringBuilder.Append("\tpadding:0 15px;\r\n"); stringBuilder.Append("}\r\n"); stringBuilder.Append(".butinfo .button:hover{background-color: #4fe256;border: solid 1px #49c74f;}\r\n"); stringBuilder.Append(".butinfo .button:active{background-color: #40bf46;border: solid 1px #31b945;}\r\n"); stringBuilder.Append("</style>\r\n"); stringBuilder.Append("</head>\r\n"); stringBuilder.Append("<body style=\"margin-top: 80px\">\r\n"); stringBuilder.Append("<center>\r\n"); stringBuilder.Append(" <div class=board>\r\n"); stringBuilder.Append(" <div class=topinfo>" + title.ToString() + "</div>\r\n"); stringBuilder.Append(" <div class=tipcontent>\r\n"); stringBuilder.Append(" " + message.ToString() + "\r\n"); stringBuilder.Append(" </div>\r\n"); if (btn != "") { stringBuilder.Append("<div class=butinfo>\r\n"); string[] array = FPArray.SplitString(btn, ","); for (int i = 0; i < array.Length; i++) { string[] array2 = FPArray.SplitString(array[i], "|", 2); if (array2[0] == "返回") { stringBuilder.Append("<a class=\"button\" href=\"javascript:history.back();\">" + array2[0] + "</a> \r\n"); } else if (array2[0] == "关闭") { stringBuilder.Append("<a class=\"button\" href=\"javascript:window.close();\">" + array2[0] + "</a> \r\n"); } else { stringBuilder.Append("<a class=\"button\" target=\"_top\" href=\"" + array2[1] + "\">" + array2[0] + "</a> \r\n"); } } stringBuilder.Append("</div>\r\n"); } stringBuilder.Append(" </div>\r\n"); stringBuilder.Append("</center>\r\n"); stringBuilder.Append("</body>\r\n"); stringBuilder.Append("</html>\r\n"); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Write(stringBuilder.ToString()); HttpContext.Current.Response.End(); }
public FPController() { port = FPArray.SplitInt(domain, ":", 2)[1]; if (rawurl.IndexOf("/") >= 0) { if (rawurl.IndexOf("?") >= 0) { rawpath = rawurl.Substring(0, rawurl.IndexOf("?")); rawpath = rawpath.Substring(0, rawpath.LastIndexOf("/")) + "/"; } else { rawpath = rawurl.Substring(0, rawurl.LastIndexOf("/")) + "/"; } } else { rawpath = webpath; } cururl = rawurl.Substring(webpath.Length); pageurl = pagename; if (cururl.Contains("?")) { curname = cururl.Substring(0, cururl.IndexOf("?")); query = cururl.Substring(cururl.IndexOf("?") + 1); pageurl = pagename + "?" + query; } else { curname = cururl; } if (curname.IndexOf("/") > 0) { curpath = curname.Substring(0, curname.LastIndexOf("/")) + "/"; } if (curname.IndexOf("/") >= 0) { sitepath = curname.Substring(0, curname.IndexOf("/")); } else { sitepath = WebConfig.SitePath; } if (sitepath == "sites") { sitepath = curpath.Substring(curpath.IndexOf("/") + 1).TrimEnd('/'); } if (!Directory.Exists(FPFile.GetMapPath(webpath + sitepath))) { sitepath = WebConfig.SitePath; } pagepath = webpath + sitepath + "/"; siteinfo = SiteConfigs.GetSiteInfo(sitepath); adminpath = webpath + "admin/"; plupath = webpath + "plugins/"; apppath = webpath + "app/"; sitetitle = siteinfo.sitetitle; pagetitle = siteinfo.sitetitle; CreateSeoInfo(siteinfo.keywords, siteinfo.description, siteinfo.otherhead); ispost = FPRequest.IsPost(); isget = FPRequest.IsGet(); isfile = FPRequest.IsPostFile(); action = FPRequest.GetString("action"); op = FPRequest.GetInt("op"); try { ua = HttpContext.Current.Request.UserAgent.ToLower(); } catch { } browser = getBrowserName(ua, out isie); args = FPArray.SplitString(Path.GetFileNameWithoutExtension(pagename), "-"); }
protected string seturl(string param) { string text = ""; param = param.Trim(); if (query != "") { string text2 = ""; string[] array = FPArray.SplitString(query, "&"); foreach (string text3 in array) { bool flag = true; string[] array2 = FPArray.SplitString(param, "&"); for (int j = 0; j < array2.Length; j++) { string[] array3 = FPArray.SplitString(array2[j], "=", 2); if (text3.StartsWith(array3[0] + "=")) { flag = false; } } if (flag) { text2 = FPArray.Push(text2, text3, "&"); } } string text4 = ""; array = FPArray.SplitString(param, "&"); foreach (string text5 in array) { string[] array4 = FPArray.SplitString(text5, "=", 2); if (array4[1] != "" && array4[1] != "0") { text4 = FPArray.Push(text4, text5, "&"); } } text = pagename; if (text2 != "" || text4 != "") { text += "?"; } if (text2 != "") { text = ((!(text4 != "")) ? (text + text2) : (text + text2 + "&" + text4)); } else if (text4 != "") { text += text4; } } else { string text6 = ""; string[] array = param.Trim().Split('&'); foreach (string text7 in array) { string[] array5 = FPArray.SplitString(text7, "=", 2); if (array5[1] != "" && array5[1] != "0") { text6 = FPArray.Push(text6, text7, "&"); } } if (text6 != "") { text = pagename + "?" + text6; } } return(text); }