Modificare il file:
\iwgallery\admin\inc_menu.asp
<% If LCase(Request.Cookies("IWGalleryAccess")) <> "amministratore" Then Response.Redirect("logout.asp?reason=Accesso negato") %> <!--#include virtual="/iwgallery/Connections/connIWGallery.asp" --> <% Set rsUseCounter = Server.CreateObject("ADODB.Recordset") rsUseCounter.ActiveConnection = MM_connIWGallery_STRING rsUseCounter.Source = "SELECT COUNT(*) AS USE_COUNT FROM USERS WHERE USE_APPROVED = 0" rsUseCounter.CursorType = 0 rsUseCounter.CursorLocation = 2 rsUseCounter.LockType = 1 rsUseCounter.Open() %> <% Set rsPicCounter = Server.CreateObject("ADODB.Recordset") rsPicCounter.ActiveConnection = MM_connIWGallery_STRING rsPicCounter.Source = "SELECT COUNT(*) AS PIC_COUNT FROM PICTURES WHERE PIC_APPROVED = 0" rsPicCounter.CursorType = 0 rsPicCounter.CursorLocation = 2 rsPicCounter.LockType = 1 rsPicCounter.Open() %> <% Tot = (rsUseCounter.Fields.Item("USE_COUNT").Value) + (rsPicCounter.Fields.Item("PIC_COUNT").Value) %> <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-menu-header-left.jpg"></td> <td width="100%" class="box-header">Menu</td> <td width="1" align="right" class="box-header"><img src="../themes/<%= strTheme %>/box-menu-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="menu"> <tr> <td width="1%"><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/home.asp">Da approvare</a> <% If Tot > 0 Then %><img src="../images/icon_alert.gif" title="Ci sono elementi che attendono l'approvazione" alt="Ci sono elementi che attendono l'approvazione" border="0" align="absmiddle"><% End If %></td> </tr> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/configuration.asp">Configurazione</a></td> </tr> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/cat_listing.asp">Categorie</a></td> </tr> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/pictures_listing.asp">Immagini</a></td> </tr> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/users_listing.asp">Utenti</a></td> </tr> <% If IsComponentInstalled("XStandard.Zip") = True Then %> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/zip_listing.asp">Zip</a></td> </tr> <% End If %> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../admin/tools.asp">Strumenti</a></td> </tr> <tr> <td><img src="../themes/<%= strTheme %>/menu-item.jpg" border="0" align="middle"></td> <td><a href="../home/default.asp"><strong>Front-End</strong></a></td> </tr> </table></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-menu-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-menu-bottom-right.jpg"></td> </tr> </table></td> </tr> </table> <% rsUseCounter.Close() Set rsUseCounter = Nothing %> <% rsPicCounter.Close() Set rsPicCounter = Nothing %>
[
Íàçàä
]