%@ language=VBScript %> <% ' /////////////////////////////////////////////////////// ' // Dimac CMS ' // Copyright 2004-2008 Dimac Development AB, Sweden ' // www.Dimac.net ' // ' // NOTE: ' // You are not allowed to remove this ' // Copyright information without written ' // permission from Dimac Development. ' /////////////////////////////////////////////////////// If NOT CBool(Session("ValidAdminUser")) Then Response.Redirect("../../LIO/loggin.asp") End IF ' ------------------------------------------------------- ' -- Global variables ' ------------------------------------------------------- Dim xPath ' ------------------------------------------------------- If Request.Form("Action").Item = "DELETE" Then Set fso = Server.CreateObject("Scripting.FileSystemObject") For Each Item In Request.Form("file") xPath = Server.MapPath("..\..\..\SiteResources\Data\Templates\") + "\" +Item fso.DeleteFile(xPath) Next End If ' ------------------------------------------------------- ' ------------------------------------------------------- %>