using System; using System.Data; using System.Collections; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using CMS.GlobalHelper; using CMS.UIControls; public partial class CMSModules_MediaLibrary_Tools_FolderActions_SelectFolder_Footer : CMSMediaLibraryModalPage { protected override void OnInit(EventArgs e) { base.OnInit(e); SetBrowserClass(); } protected void Page_Load(object sender, EventArgs e) { if (!QueryHelper.ValidateHash("hash")) { string url = ResolveUrl("~/CMSMessages/Error.aspx?title=" + GetString("dialogs.badhashtitle") + "&text=" + GetString("dialogs.badhashtext") + "&cancel=1"); ScriptHelper.RegisterStartupScript(Page, typeof(string), "redirect", ScriptHelper.GetScript("if (window.parent != null) { window.parent.location = '" + url + "' }")); } } }