Changeset dc0cc49d


Ignore:
Timestamp:
Jul 19, 2009 10:31:10 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8d2a5160
Parents:
497bc5a
Message:
  • Console: Hide configui.jsp from IE
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/confignav.jsp

    r497bc5a rdc0cc49d  
    11<div class="confignav" id="confignav">
    22<center>
    3 <!--
    4 <b>
    5 <% if (request.getRequestURI().indexOf("config.jsp") != -1) {
    6  %>Network<% }
    7  else if (request.getRequestURI().indexOf("configui.jsp") != -1) {
    8  %>UI<% }
    9  else if (request.getRequestURI().indexOf("configservice.jsp") != -1) {
    10  %>Service<% }
    11  else if (request.getRequestURI().indexOf("configupdate.jsp") != -1) {
    12  %>Update<% }
    13  else if (request.getRequestURI().indexOf("configtunnels.jsp") != -1) {
    14  %>Tunnels<% }
    15  else if (request.getRequestURI().indexOf("configclients.jsp") != -1) {
    16  %>Clients<% }
    17  else if (request.getRequestURI().indexOf("configpeer.jsp") != -1) {
    18  %>Peers<% }
    19  else if (request.getRequestURI().indexOf("configkeyring.jsp") != -1) {
    20  %>Keyring<% }
    21  else if (request.getRequestURI().indexOf("configlogging.jsp") != -1) {
    22  %>Logging<% }
    23  else if (request.getRequestURI().indexOf("configstats.jsp") != -1) {
    24  %>Stats<% }
    25  else if (request.getRequestURI().indexOf("configadvanced.jsp") != -1) {
    26  %>Advanced<% }%>
    27 Configuration</b>
    28 -->
    293<% if (request.getRequestURI().indexOf("config.jsp") != -1) {
    304 %>Network | <% } else { %><a href="config.jsp">Network</a> | <% }
    31  if (request.getRequestURI().indexOf("configui.jsp") != -1) {
    32  %>UI | <% } else { %><a href="configui.jsp">UI</a> | <% }
     5 String userAgent = request.getHeader("User-Agent");
     6 if (userAgent == null || !userAgent.contains("MSIE")) {
     7     if (request.getRequestURI().indexOf("configui.jsp") != -1) {
     8     %>UI | <% } else { %><a href="configui.jsp">UI</a> | <% }
     9 }
    3310 if (request.getRequestURI().indexOf("configservice.jsp") != -1) {
    3411 %>Service | <% } else { %><a href="configservice.jsp">Service</a> | <% }
Note: See TracChangeset for help on using the changeset viewer.