Modificare il file:
\iwgallery\admin\inc_subheader.asp
<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> <% If LCase(Request.Cookies("IWGalleryAccess")) <> "amministratore" Then Response.Redirect("logout.asp?reason=Accesso negato") %> <!--#include virtual="/iwgallery/Connections/connIWGallery.asp" --> <% Dim rsLogged__MMColParam rsLogged__MMColParam = "0" If (Request.Cookies("IWGalleryUserName") <> "") Then rsLogged__MMColParam = Request.Cookies("IWGalleryUserName") End If %> <% Set rsLogged = Server.CreateObject("ADODB.Recordset") rsLogged.ActiveConnection = MM_connIWGallery_STRING rsLogged.Source = "SELECT * FROM USERS WHERE USE_NAME = '" + Replace(rsLogged__MMColParam, "'", "''") + "'" rsLogged.CursorType = 0 rsLogged.CursorLocation = 2 rsLogged.LockType = 1 rsLogged.Open() %> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="sub-header"> <tr> <td width="1%"><img src="../themes/<%= strTheme %>/sub-header-left.jpg"></td> <td width="100%">Benvenuto, <span class="evidence"><%=(rsLogged.Fields.Item("USE_FIRST").Value)%></span> | <a href="../admin/profile.asp">Profilo</a> | <a href="../admin/logout.asp">Logout</a> </td> <td width="1%" align="right" nowrap><%= Server.HTMLEncode(DoDateTime( Date() , 1, -1)) %></td> <td width="1%" align="right"><img src="../themes/<%= strTheme %>/sub-header-right.jpg"></td> </tr> </table> <% rsLogged.Close() Set rsLogged = Nothing %>
[
Íàçàä
]