Modificare il file:
\iwgallery\admin\inc_zip_listing.asp
<% If LCase(Request.Cookies("IWGalleryAccess")) <> "amministratore" Then Response.Redirect("logout.asp?reason=Accesso negato") %> <SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT> function DoDateTime(str, nNamedFormat, nLCID) dim strRet dim nOldLCID strRet = str If (nLCID > -1) Then oldLCID = Session.LCID End If On Error Resume Next If (nLCID > -1) Then Session.LCID = nLCID End If If ((nLCID < 0) Or (Session.LCID = nLCID)) Then strRet = FormatDateTime(str, nNamedFormat) End If If (nLCID > -1) Then Session.LCID = oldLCID End If DoDateTime = strRet End Function </SCRIPT> <!--#include virtual="/iwgallery/ScriptLibrary/incPureUpload.asp" --> <!--#include virtual="/iwgallery/ScriptLibrary/incFSClass.asp" --> <% Dim objZip, objItem Set objZip = Server.CreateObject("XStandard.Zip") %> <% pau_AutoCreatePath(Server.MapPath(strPublicPath & "/zip")) %> <% Dim objFSO, Folder, Files, FilesCount Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set Folder = objFSO.GetFolder(Server.MapPath(strPublicPath & "/zip/")) Set Files = Folder.Files FilesCount = Files.Count If Request.Form("action") = "DeleteAll" Then For Each File in Files objFSO.DeleteFile(Folder & "\" & File.Name) Next Response.Redirect("../admin/zip_listing.asp") End If %> <% ' *** Delete Listed File fm_DeleteListedFile %> <% ' *** Folder List 1.0.3 Dim ZipFiles Set ZipFiles = New FolderList With ZipFiles .Path = strPublicPath & "/zip" .allowedExtensions = "" .includeFolders = false .ShowThumbnailsOnly = false .ThumbnailsSuffix = "_small" .officeAttributes = false .ReadFolder() End With %> <% ' *** Folder List Repeater Vars 1.0.3 ZipFiles.pageRecs = 0 ZipFiles.pageCols = 1 %> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> <script language="JavaScript" type="text/JavaScript"> <!-- function GP_popupConfirmMsg(msg) { //v1.0 document.MM_returnValue = confirm(msg); } //--> </script> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" align="left" class="box-header"><img src="../themes/<%= strTheme %>/box-header-left.jpg"></td> <td width="100%" class="box-header">Zip </td> <td width="1" align="right" class="box-header"><img src="../themes/<%= strTheme %>/box-header-right.jpg"></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" class="box-main"><table width="100%" border="0" cellspacing="1" cellpadding="0" class="content"> <tr> <td>Files: <strong><%= FilesCount %></strong> </td> <td align="right"><strong>Nota</strong>: si consiglia di cancellare periodicamente i files .zip per risparmiare spazio su disco </td> </tr> </table> <% If FilesCount > 0 Then %> <table width="100%" border="0" cellspacing="1" cellpadding="0" class="grid"> <tr class="grid-header"> <td>Nome</td> <td align="center">Data</td> <td width="1%"> </td> </tr> <% ' *** Folder List Repeater Start while ZipFiles.CanRepeat() %> <tr class="grid-main"> <td><a href="javascript:void(0);" onClick="MM_openBrWindow('zip_content.asp?file=<%= ZipFiles.Files("Name") %>','zip','scrollbars=yes,resizable=yes,width=320,height=240')"><strong><%= ZipFiles.Files("Name") %></strong></a> (<%= ZipFiles.Files("Size_name") %>)</td> <td align="center"><%= DoDateTime( ZipFiles.Files("DateLastModified") , 2, 2057) %></td> <td align="center"><a href="<%=ZipFiles.getDeleteLink()%>" onClick="GP_popupConfirmMsg('Cancellare definitivamente il File selezionato?');return document.MM_returnValue"><img src="../images/icon_delete.gif" alt="Cancella" border="0"></a></td> </tr> <% 'if ZipFiles.IsLastColumn() then %> <% 'end if ZipFiles.MoveNext wend ZipFiles.EndRepeater ' *** Folder List Repeater End %> </table> <table width="100%" border="0" cellspacing="1" cellpadding="0" class="content"> <tr> <td align="center"><form action="../admin/zip_listing.asp" method="post" name="form1" onSubmit="GP_popupConfirmMsg('Cancellare definitivamente tutti i Files?');return document.MM_returnValue"> <input type="submit" name="Submit" value="Cancella tutti i Files" class="button"> <input name="action" type="hidden" id="action" value="DeleteAll"> </form></td> </tr> </table> <% End If %> </td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" align="left" class="box-bottom"><img src="../themes/<%= strTheme %>/box-bottom-left.jpg"></td> <td width="100%" class="box-bottom"><img src="../images/shim.gif" width="1" height="1"></td> <td width="1" align="right" class="box-bottom"><img src="../themes/<%= strTheme %>/box-bottom-right.jpg"></td> </tr> </table></td> </tr> </table> <% set ZipFiles = Nothing ' *** End Folder List %> <% Set Files = Nothing Set Folder = Nothing Set objFSO = Nothing %>
[
Íàçàä
]