anchor.diff:        } catch(Exception e) {
             enableActionStatus += "Set Log Level (" + logging + ") Failed: "
                                    + e.toString();
  -          wasOk = false;
         }
       }
     } else {
       enableActionStatus = "Illegal Action";
     }
   
  -  String hostname="localhost";
  -  try {
  -    InetAddress addr = InetAddress.getLocalHost();
  -    // Get IP Address
  -    byte[] ipAddr = addr.getAddress();
  -    // Get hostname
  -    // hostname = addr.getHostName();
  -    hostname = addr.getCanonicalHostName();
  -  } catch (UnknownHostException e) {}
   %>
  -<%
  -  if (wasOk) {
  -%>
  -<meta http-equiv="refresh" content="4;url=index.jsp">
  -<%
  -  }
  -%>
  -<html>
  -<head>
  -    <link rel="stylesheet" type="text/css" href="solr-admin.css">
  -    <link rel="icon" href="favicon.ico" type="image/ico">
  -    <link rel="shortcut icon" href="favicon.ico" type="image/ico">
  -</head>
  -<body>
  -<a href="."><img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR"></a>
  -<h1>SOLR Action (<%= collectionName %>) - <%= action %></h1>
  -<%= hostname %> : <%= request.getServerPort() %>
   <br clear="all">
   <table>
     <tr>
  
positive.code: <%@ page import="java.util.Date"%>
  <%@ page import="java.util.logging.Level"%>
  <%@ page import="java.util.logging.Logger"%>
  <%
    SolrCore core = SolrCore.getSolrCore();
    IndexSchema schema = core.getSchema();
    String collectionName = schema!=null ? schema.getName():"unknown";
  
    String action = request.getParameter("action");
    String logging = request.getParameter("log");
    String enableActionStatus = "";
    boolean isValid = false;
    boolean wasOk = true;
  
    String rootdir = "/var/opt/resin3/"+request.getServerPort();
    File pidFile = new File(rootdir + "/logs/resin.pid");
    String startTime = "";
  
    try {
      startTime = (pidFile.lastModified() > 0)
                ? new Date(pidFile.lastModified()).toString()
                      : "No Resin Pid found (logs/resin.pid)";
    } catch (Exception e) {
      out.println("<ERROR>");
      out.println("Couldn't open Solr pid file:" + e.toString());
      out.println("</ERROR>");
    }
  
    File enableFile = new File(rootdir + "/logs/server-enabled");
  
    if (action != null) {
      // Validate fname
  
negative.code:     </td>
    </tr>
  </table>
  <br><br>
      <a href=".">Return to Admin Page</a>
  </body>
  