Modificare il file:
\iwgallery\includes\inc_config.asp
<% Response.Expires = -1 'relativo all'apertura della pagina Response.ExpiresAbsolute = Now() - 1 'assoluto rispetto ad una data definita Response.CacheControl = "no-cache" Response.AddHeader "pragma","no-cache" %> <!--#include virtual="/iwgallery/Connections/connIWGallery.asp" --> <% Set rsConfig = Server.CreateObject("ADODB.Recordset") rsConfig.ActiveConnection = MM_connIWGallery_STRING rsConfig.Source = "SELECT * FROM CONFIGURATION" rsConfig.CursorType = 0 rsConfig.CursorLocation = 2 rsConfig.LockType = 1 rsConfig.Open() %> <% strPageTitle = (rsConfig.Fields.Item("CON_TITLE").Value) strURL = (rsConfig.Fields.Item("CON_URL").Value) strAdminEmail = (rsConfig.Fields.Item("CON_ADMIN_EMAIL").Value) strDescription = (rsConfig.Fields.Item("CON_DESCRIPTION").Value) strKeywords = (rsConfig.Fields.Item("CON_KEYWORDS").Value) strPageSize = (rsConfig.Fields.Item("CON_PAGE_SIZE").Value) strLeftSize = (rsConfig.Fields.Item("CON_LEFT_SIZE").Value) strRightSize = (rsConfig.Fields.Item("CON_RIGHT_SIZE").Value) strAlign = (rsConfig.Fields.Item("CON_ALIGN").Value) strTheme = (rsConfig.Fields.Item("CON_THEME").Value) strProgress = (rsConfig.Fields.Item("CON_PROGRESS").Value) strImgFullWidth = (rsConfig.Fields.Item("CON_IMG_FULL_WIDTH").Value) strImgFullHeight = (rsConfig.Fields.Item("CON_IMG_FULL_HEIGHT").Value) strImgThumb = (rsConfig.Fields.Item("CON_IMG_THUMB").Value) strImgQuality = (rsConfig.Fields.Item("CON_IMG_QUALITY").Value) strRows = (rsConfig.Fields.Item("CON_ROWS").Value) strCols = (rsConfig.Fields.Item("CON_COLS").Value) strZip = (rsConfig.Fields.Item("CON_ZIP").Value) strPrivate = (rsConfig.Fields.Item("CON_PRIVATE").Value) strRegister = (rsConfig.Fields.Item("CON_REGISTER").Value) strApprove = (rsConfig.Fields.Item("CON_APPROVE").Value) strTerms = (rsConfig.Fields.Item("CON_TERMS").Value) strFooter = (rsConfig.Fields.Item("CON_FOOTER").Value) strLcid = (rsConfig.Fields.Item("CON_LCID").Value) %> <% Function TrimBody(str) If Str <> "" Then Str = (Replace(str, "<", "<")) Str = (Replace(str, ">", ">")) Str = (Replace(str, vbCrlf, "<br>")) Str = (Replace(str, "[", "<")) Str = (Replace(str, "]", ">")) Str = (Replace(str, "javascript", "java-script")) TrimBody = Str Else TrimBody = "" End If End Function %> <% Function IsComponentInstalled(ProgId) On Error Resume Next Dim tmpObject Set tmpObject = Server.CreateObject(ProgId) If Err.Number = 0 Then IsComponentInstalled = True Else IsComponentInstalled = False End If Set tmpObject = Nothing Err.Clear End Function %> <% Dim arrayId(), arrayName(), i, arraySize Redim arrayId(1), arrayName(1) If Request.QueryString("iCat") <> "" then varId = Request.QueryString("iCat") set objRec = Server.CreateObject("ADODB.Recordset") objRec.ActiveConnection = MM_connIWGallery_STRING objRec.Source = "SELECT * FROM CATEGORIES ORDER BY CAT_NAME ASC" objRec.CursorType = 0 objRec.CursorLocation = 2 objRec.LockType = 3 objRec.Open() objRec_numRows = 0 Sub FillArray i = 0 DO UNTIL varId = 0 objRec.Filter = "CAT_ID = " & varId arrayId(i) = objRec("CAT_ID") arrayName(i) = objRec("CAT_NAME") If NOT objRec("CAT_PARENT") = 0 then Redim Preserve arrayId(i+1) Redim Preserve arrayName(i+1) End If varId = objRec("CAT_PARENT") i = i + 1 LOOP End Sub %> <!--#include virtual="/iwgallery/includes/inc_mail_CdoSys.asp" --> <!--#include virtual="/iwgallery/includes/inc_filesize.asp" --> <% rsConfig.Close() Set rsConfig = Nothing %>
[
Íàçàä
]