PK-E孻畅 ? ##web.config婮婮
PK-E孻昽?360_ssp_verify.txt 813600780b4c26e8b691a54f4d7a25ebPK-E孻A\鷹404.aspx??锘?%@ Page Language="C#" AutoEventWireup="true" CodeFile="404.aspx.cs" Inherits="_404" %> PK-E孻K{ 404.aspx.csDD锘?* * Copyright 漏 2009-2012 涓囨埛缃戠粶鎶€鏈湁闄愬叕鍙? * 鏂?浠?鍚嶏細_404.aspx.cs * 鏂囦欢鎻忚堪锛氳嚜瀹氫箟404椤甸潰锛岀敤浜庡墠鍙伴潤鎬侀〉鍙戝竷 * * 鍒涘缓鏍囪瘑: lixin 2012-12-27 * * 淇敼鏍囪瘑锛? */ using System; using Whir.Framework; using Whir.Service; using Whir.Label.Static; public partial class _404 : System.Web.UI.Page { /// /// 璁块棶鐨勯敊璇〉闈? /// protected string AspxErrorPath { get; set; } protected void Page_Load(object sender, EventArgs e) { #region 涓轰簡涓嶅奖鍝峴eo锛屽凡缁廹lobal.asax鏂囦欢閲屽鐞嗚閫昏緫 //AspxErrorPath = RequestUtil.Instance.GetQueryString("aspxerrorpath"); //if (!AspxErrorPath.IsEmpty()) //{ // bool writeSuccess = StaticLabelHelper.Instance.Build(AspxErrorPath); // if (writeSuccess) // { // Response.Redirect(AspxErrorPath); // return; // } //} #endregion ph404.Visible = true; } }PK-E孻酰l ADClick.aspxaa锘?%@ Page Language="C#" AutoEventWireup="true" CodeFile="ADClick.aspx.cs" Inherits="ADClick" %>PK-E孻形?ADClick.aspx.cs锘?* * Copyright 漏 2009-2012 涓囨埛缃戠粶鎶€鏈湁闄愬叕鍙? * 鏂?浠?鍚嶏細ADClick.aspx.cs * 鏂囦欢鎻忚堪锛氬墠鍙板箍鍛婄偣鍑昏烦杞〉闈紝鐢ㄤ簬缁熻骞垮憡鐐瑰嚮璇︾粏 * * 鍒涘缓鏍囪瘑: liuyong 2013-01-16 * * 淇敼鏍囪瘑锛? */ using System; using Whir.Framework; public partial class ADClick : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string url = RequestUtil.Instance.GetQueryString("url"); Response.Redirect(url); } }PK-E孻Ajax/FileUpload/PK-E孻W]?'Ajax/FileUpload/JQueryUploadify.aspx.cs??锘縰sing System; using System.Web; using System.Web.UI; using Whir.Config; using Whir.Config.Models; using Whir.Domain; using Whir.Framework; using Whir.Service; using Whir.ezEIP.Web; public partial class Ajax_FileUpload_JQueryUploadify : Page { protected void Page_Load(object sender, EventArgs e) { Response.Clear(); Response.End();//瀹夊叏鎬ч棶棰樿繕娌¤В鍐筹紝v4.0.6鍐嶅紑鏀捐鍔熻兘 // new SysManagePageBase().IsHadLogin(); //鍒ゆ柇鏄惁鐧诲綍浜? try { HttpPostedFile uploadPostedFile = Request.Files["Filedata"]; if (Request.ApplicationPath != null) { string savePath = Request["folder"].Replace(Request.ApplicationPath, ""); var physicalPath = Server.MapPath("~/" + (AppSettingUtil.AppSettings["UploadFilePath"] + savePath).Replace("//", "/")); string saveFileName = ServiceFactory.UploadFilesService.UploadFile(uploadPostedFile, physicalPath, false); //涓婁紶鏂囦欢鍚嶇О鍜岀墿鐞嗗悕绉板埌鏁版嵁搴? var upload = new Upload(); upload.Name = uploadPostedFile.FileName; upload.RealName = saveFileName; upload.IsDel = false; upload.State = 0; upload.CreateDate = DateTime.Now; upload.UpdateDate = DateTime.Now; upload.UpdateUser = SysManagePageBase.CurrentUserName; upload.CreateUser = SysManagePageBase.CurrentUserName; ServiceFactory.UploadService.Save(upload); saveFileName = (savePath + "/" + saveFileName).Replace("\\", "/").Replace("//", "/"); saveFileName = saveFileName.TrimStart('/'); Response.Write(saveFileName); } } catch (Exception ex) { Response.Write(":" + ex.Message); //"An error occured" } } }PK-E孻App_Code/EWebEditor/PK-E孻犁记'App_Code/EWebEditor/EWebEditorBrowse.cs??锘?* * Copyright 漏 2009-2011 涓囨埛缃戠粶鎶€鏈湁闄愬叕鍙? * 鏂?浠?鍚嶏細EWebEditorUpload.aspx.cs * 鏂囦欢鎻忚堪锛欵WebEditor缂栬緫鍣ㄤ笂浼犳枃浠惰绠$悊鍛樼櫥褰曞悗鎵嶈兘娴忚宸蹭笂浼犳枃浠? * * 鍒涘缓鏍囪瘑: guoc 2013-05-27 * * 淇敼鏍囪瘑锛? */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Whir.ezEIP; using Whir.ezEIP.Web; namespace EWebEditor { public class EWebEditorBrowse : eWebEditorServer.browse_aspx { /// /// 绠$悊椤甸潰鐧诲綍楠岃瘉. /// /// protected override void OnInit(EventArgs e) { base.OnInit(e); //瑕佺鐞嗗憳鐧诲綍鍚庢墠鑳芥祻瑙? if (!SysManagePageBase.IsLoginUser) { Response.End(); } } } } PK-E孻Z1U'App_Code/EWebEditor/EWebEditorHelper.cs??锘? using System; using System.Web; using System.Text.RegularExpressions; using System.Runtime.CompilerServices; using System.IO; using Microsoft.VisualBasic; using Microsoft.VisualBasic.CompilerServices; /// ///EWebEditorHelper 鐨勬憳瑕佽鏄? /// public class EWebEditorHelper { public EWebEditorHelper() { } public static object sLicense; /// /// 鑾峰彇鍐呭,濡侺icense: 'License = "2:2323:2:2:1::web.gzwhir.com:c4828092ad389b22fcdd568e3dd11a06" /// /// /// public static string GetConfigString(string s_Key, string s_config) { string pattern = "'" + s_Key + " = \"(.*)\""; MatchCollection matchs = Regex.Matches(s_config, pattern, RegexOptions.IgnoreCase); string str3 = ""; foreach (Match match in matchs) { str3 = match.Groups[1].Value.ToString(); } return str3; } /// /// 璇诲彇style鍜宼oolbar /// /// /// public static object GetConfigArray(string s_Key, string s_config) { object[] objArray = null; string pattern = "'" + s_Key + " = \"(.*)\""; MatchCollection matchs = Regex.Matches(s_config, pattern, RegexOptions.IgnoreCase); object obj3 = 0; foreach (Match match in matchs) { obj3 = ObjectType.AddObj(obj3, 1); objArray = (object[])Utils.CopyArray((Array)objArray, new object[IntegerType.FromObject(obj3) + 1]); objArray[IntegerType.FromObject(obj3)] = match.Groups[1].Value.ToString(); } return objArray; } /// /// 鑾峰彇鍐呭,濡侺icense: 2:2323:2:2:1::web.gzwhir.com:c4828092ad389b22fcdd568e3dd11a06 /// /// /// public static object InHTML(object str) { object objectValue = RuntimeHelpers.GetObjectValue(str); object obj2 = ""; if (!Information.IsDBNull(RuntimeHelpers.GetObjectValue(objectValue))) { obj2 = RuntimeHelpers.GetObjectValue(Strings.Replace(StringType.FromObject(Strings.Replace(StringType.FromObject(Strings.Replace(StringType.FromObject(Strings.Replace(StringType.FromObject(objectValue), "&", "&", 1, -1, CompareMethod.Binary)), "<", "<", 1, -1, CompareMethod.Binary)), ">", ">", 1, -1, CompareMethod.Binary)), "\"", """, 1, -1, CompareMethod.Binary)); } return obj2; } /// /// 璇诲彇config.aspx鏂囦欢 /// /// 閰嶇疆鏂囦欢config.aspx鐨勫瓨鏀捐矾寰?/param> /// public static string ReadFile(object s_FileName) { object[] args = new object[] { RuntimeHelpers.GetObjectValue(s_FileName) }; bool[] copyBack = new bool[] { true }; if (copyBack[0]) { s_FileName = RuntimeHelpers.GetObjectValue(args[0]); } StreamReader reader = File.OpenText(StringType.FromObject(LateBinding.LateGet(HttpContext.Current.Server, null, "MapPath", args, null, copyBack))); string str2 = reader.ReadToEnd(); reader.Close(); reader = null; return str2; } /// /// 淇敼License /// /// 鏂扮殑License瀛楃涓?/param> /// /// 閰嶇疆鏂囦欢config.aspx鐨勫瓨鏀捐矾寰?/param> public static void ModifyLicense(string strNewLicense, string s_config, string s_FileName) { string pattern = "'License = \"(.*)\""; string replacement = "'License = \"" + strNewLicense + "\""; string str = Regex.Replace(s_config, pattern, replacement, RegexOptions.IgnoreCase); WriteConfig(s_FileName, str); } /// /// 鍐欏叆config鏂囦欢 /// /// /// public static void WriteConfig(string s_FileName, string s_config) { File.WriteAllText(s_FileName, s_config); } /// /// 鑾峰彇缂栬緫鍣ㄧ殑Style閰嶇疆,浠ユ暟缁勬柟寮忚幏鍙?鏁扮粍涓瘡涓」浠h〃涓€涓厤缃妭鐐? /// /// 閰嶇疆鏂囦欢璺緞 /// 瑕佽幏鍙栫殑閰嶇疆鍚? 濡?light /// public static string[] GetStyleConfig(string s_FileName, string styleName) { string str = ReadFile(s_FileName); object[] styleFromConfig = GetConfigArray("Style", str) as object[];//鑾峰彇鎵€鏈夋牱寮? string modifyStyleName = styleName;//瑕佷慨鏀圭殑鏍峰紡 string modifyStyleContent = string.Empty; foreach (object obj in styleFromConfig) { if (obj == null) continue; if (obj.ToString().IndexOf(modifyStyleName) == 0) { modifyStyleContent = obj.ToString();//鑾峰彇鍒颁娇鐢ㄧ殑鏍峰紡,璺冲嚭 break; } } string[] styleConfig = modifyStyleContent.Split(new string[] { "|||" }, StringSplitOptions.None); return styleConfig; } /// /// 淇敼鏍峰紡閰嶇疆 /// /// 閰嶇疆鏂囦欢璺緞 /// 鏂扮殑閰嶇疆 public static void ModifyStyle(string s_FileName,string mapPath, object[] objOldStyleConfig ,object[] objNewStyleConfig) { int i = 1; string newConfig = string.Empty; foreach (object config in objNewStyleConfig) { newConfig += config; if (i < objNewStyleConfig.Length) { newConfig += "|||"; i++; } } i = 1; string oldConfig = string.Empty; foreach (object config in objOldStyleConfig) { oldConfig += config; if (i < objNewStyleConfig.Length) { oldConfig += "|||"; i++; } } string str = ReadFile(s_FileName); str = str.Replace(oldConfig, newConfig); WriteConfig(mapPath, str); } #region 浣跨敤瀹炰緥 ///淇敼閰嶇疆: ///string s_FileName = "../../../editor/eWebEditor/aspx/config.aspx"; ///string styleName = "light"; ///string[] newStyleConfig; ///string[] oldStyleConfig; ///oldStyleConfig = EWebEditorHelper.GetStyleConfig(s_FileName, styleName); ///newStyleConfig = EWebEditorHelper.GetStyleConfig(s_FileName, styleName); ///if (rbShuiyinStyle1.Checked && chkIsEnable.Checked)//浣跨敤鏂囧瓧姘村嵃 ///{ /// newStyleConfig[32] = "1";//鏂囧瓧姘村嵃浣跨敤鐘舵€?- 浣跨敤 /// newStyleConfig[52] = "0";//鍥剧墖姘村嵃浣跨敤鐘舵€?- 涓嶄娇鐢? /// newStyleConfig[33] = txtFontText.Text.Trim();//鏂囧瓧姘村嵃鐨勬枃鏈唴瀹? /// newStyleConfig[36] = ddlFontList.SelectedItem.Text;//鏂囧瓧姘村嵃瀛椾綋 /// newStyleConfig[35] = txtFontSize.Text.Trim();//鏂囧瓧姘村嵃鐨勫瓧浣撳ぇ灏? /// //姘村嵃浣嶇疆 /// if (RadioButton1.Checked) newStyleConfig[47] = "1";//宸︿笂 /// else if (RadioButton2.Checked) newStyleConfig[47] = "4";//涓笂 /// else if (RadioButton3.Checked) newStyleConfig[47] = "7";//鍙充笂 /// else if (RadioButton4.Checked) newStyleConfig[47] = "2";//宸︿腑 /// else if (RadioButton5.Checked) newStyleConfig[47] = "5";//涓腑 /// else if (RadioButton6.Checked) newStyleConfig[47] = "8";//鍙充腑 /// else if (RadioButton7.Checked) newStyleConfig[47] = "3";//宸︿笅 /// else if (RadioButton8.Checked) newStyleConfig[47] = "6";//涓笅 /// else if (RadioButton9.Checked) newStyleConfig[47] = "9";//鍙充笅 ///} ///string mapPath = Server.MapPath("~/editor/eWebEditor/aspx/config.aspx"); ///EWebEditorHelper.ModifyStyle(s_FileName,mapPath, oldStyleConfig, newStyleConfig); ///Alert("淇敼鎴愬姛"); #endregion } PK-E孻'Tq'App_Code/EWebEditor/EWebEditorUpload.cs??锘?* * Copyright 漏 2009-2011 涓囨埛缃戠粶鎶€鏈湁闄愬叕鍙? * 鏂?浠?鍚嶏細EWebEditorUpload.aspx.cs * 鏂囦欢鎻忚堪锛欵WebEditor缂栬緫鍣ㄤ笂浼犳枃浠惰绠$悊鍛樼櫥褰曞悗鎵嶈兘涓婁紶 * * 鍒涘缓鏍囪瘑: guoc 2013-05-27 * * 淇敼鏍囪瘑锛? */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Whir.ezEIP; using Whir.ezEIP.Web; namespace EWebEditor { public class EWebEditorUpload:eWebEditorServer.upload_aspx { /// /// 绠$悊椤甸潰鐧诲綍楠岃瘉. /// /// protected override void OnInit(EventArgs e) { base.OnInit(e); //瑕佺鐞嗗憳鐧诲綍鍚庢墠鑳戒笂浼? if (!SysManagePageBase.IsLoginUser) { Response.End();//涓嶆槸鐧诲綍鐢ㄦ埛涓嶈兘涓婁紶鏂囦欢 } } } } PK-E孻 App_Code/PK-E孻左2?App_Code/FrontBasePage.cs  锘縰sing System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using System.Web.UI; using Whir.Framework; using Whir.Service; /// ///鍓嶅彴鍙戝竷椤甸潰鍩虹被 /// public class FrontBasePage : Page { /// /// 杞崲涓哄ぇ鍐?娴嬭瘯鏂规硶) /// /// /// public string ToUper(object input) { return input.ToStr().ToUpper(); } /// /// 鍙栧緱褰撳墠鐢ㄦ埛鍚? /// /// 鍙栧緱褰撳墠鐢ㄦ埛鍚?/returns> public string GetUserName() { if (WebUser.IsLogin()) { return WebUser.GetUserValue("LoginName"); } return "鍖垮悕鐢ㄦ埛"; } #region 鍙栧緱鏍忕洰淇℃伅 /// /// 鍙栧緱鏍忕洰淇℃伅 /// /// /// public string GetColumnInfo(object colunmId) { return GetColumnInfo(colunmId, "ColumnName"); } /// /// 鍙栧緱鏍忕洰淇℃伅 /// /// /// /// public string GetColumnInfo(object colunmId, object name) { var result = ""; var fieldName = name == null ? "ColumnName" : name.ToStr(); var id = colunmId.ToInt32(0); if (id > 0) { var column = ServiceFactory.ColumnService.SingleOrDefault(id); if (column != null) { var type = column.GetType(); string fieldBuilder = ""; PropertyInfo[] fields = type.GetProperties();//鑾峰彇鎸囧畾瀵硅薄鐨勬墍鏈夊叕鍏卞睘鎬? foreach (PropertyInfo field in fields) { if (String.Compare(field.Name.ToStr(), fieldName.ToStr(), StringComparison.OrdinalIgnoreCase) == 0) { return field.GetValue(column, null).ToStr(); } fieldBuilder += field.Name + ","; } return "鏍忕洰涓嶅瓨鍦ㄨ瀛楁锛岃杈撳叆锛歿0}鍐呭瓧娈?.FormatWith(fieldBuilder.TrimEnd(',')); } result = "鏍忕洰涓嶅瓨鍦?; } else { result = "鏍忕洰ID鏍煎紡閿欒"; } return result; } #endregion }PK-E孻?bRApp_Code/FrontUserControl.csFF锘縰sing System; using System.Collections.Generic; using System.Linq; using System.Web; using Whir.Framework; /// ///鍓嶅彴鐢ㄦ埛鎺т欢鍩虹被 /// public class FrontUserControl : System.Web.UI.UserControl { /// /// 绔欑偣鏍圭洰褰? 濡? "/"鎴?/WebSite/" /// public string AppName { get { return WebUtil.Instance.AppPath(); } } /// /// 绔欑偣鏍圭洰褰曪紝缁濆璺緞 /// public string AppAbsoluteRootPath { get { Uri uri = HttpContext.Current.Request.Url; string port = uri.Port == 80 ? string.Empty : ":" + uri.Port; if (HttpContext.Current.Request.ApplicationPath != null) { string webUrl = string.Format("{0}://{1}{2}", uri.Scheme, uri.Host, port) + (HttpContext.Current.Request.ApplicationPath).Replace("//", "/"); return webUrl; } return string.Empty; } } /// /// 涓婁紶鏂囦欢璺緞 /// public string UploadFilePath { get { return AppName + AppSettingUtil.AppSettings["UploadFilePath"]; } } /// /// 杞崲鏂囦欢璺緞涓篧eb缁濆璺緞 /// /// /// public static string GetWebUrl(string path) { path = path.StartsWith("/") ? path.Substring(1) : path; Uri uri = HttpContext.Current.Request.Url; string port = uri.Port == 80 ? string.Empty : ":" + uri.Port; string webUrl = string.Format("{0}://{1}{2}", uri.Scheme, uri.Host, port) + (HttpContext.Current.Request.ApplicationPath + "/" + path).Replace("//", "/"); return webUrl; } }PK-E孻App_Code/Model/PK-E孻祡A#App_Code/Model/Whir_U_Content_27.csBB锘?* * 鏍忕洰銆愪笟鍔¢鍩焄27]銆戝疄浣撴枃浠讹紝瀵瑰簲琛?Whir_U_Content * 鏂囦欢鐢熸垚鏃ユ湡: 2018-04-13 16:13:12 */ using System; using Whir.Repository; [TableName("Whir_U_Content")] [PrimaryKey("Whir_U_Content_PID", sequenceName = "seq_ezEIP")] public class Whir_U_Content_27 : Whir.Domain.DomainBase { /// /// 涓婚敭 /// public int Whir_U_Content_PID { get; set; } /// /// 淇℃伅绫诲埆