status.jsp revision 1364
1089N/A<%--
1089N/A$Id$
1089N/A
1089N/ACDDL HEADER START
1089N/A
1089N/AThe contents of this file are subject to the terms of the
1089N/ACommon Development and Distribution License (the "License").
1089N/AYou may not use this file except in compliance with the License.
1089N/A
1089N/ASee LICENSE.txt included in this distribution for the specific
1089N/Alanguage governing permissions and limitations under the License.
1089N/A
1089N/AWhen distributing Covered Code, include this CDDL HEADER in each
1089N/Afile and include the License file at LICENSE.txt.
1089N/AIf applicable, add the following below this CDDL HEADER, with the
1089N/Afields enclosed by brackets "[]" replaced with your own identifying
1089N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
1089N/A
1089N/ACDDL HEADER END
1089N/A
1089N/ACopyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
1089N/APortions Copyright 2011 Jens Elkner.
1089N/A
1089N/A--%><%@page session="false" errorPage="error.jsp" import="
1089N/Aorg.opensolaris.opengrok.web.Util"
1089N/A%><%@
1089N/A
1089N/Ainclude file="projects.jspf"
1089N/A
1089N/A%><%
1089N/A/* ---------------------- status.jsp start --------------------- */
1089N/A{
1089N/A cfg = PageConfig.get(request);
1089N/A cfg.setTitle("Status");
1089N/A long lmdate = cfg.getEnv().getConfiguration().getLastModified();
1089N/A if (request.getDateHeader("If-Modified-Since") >= lmdate) {
1089N/A response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
1089N/A return;
1089N/A }
1089N/A response.setDateHeader("Last-Modified", lmdate);
1089N/A%><%@
1089N/A
1089N/Ainclude file="httpheader.jspf"
1089N/A
1089N/A%>
1089N/A<script type="text/javascript">/* <![CDATA[ */
1089N/A O.domReady.push(O.domReadyStatus);
1089N/A/* ]]> */</script>
1089N/A<body class="yui3-skin-sam">
1089N/A <div id="page">
1089N/A <div id="whole_header">
1089N/A <div id="header"><%@
1089N/A
1089N/Ainclude file="pageheader.jspf"
1089N/A
1089N/A %>
1089N/A </div>
1089N/A <div id="Masthead"></div>
1089N/A </div>
1089N/A <div id="status">
1089N/A <h1>OpenGrok status page</h1>
1089N/A <p>
1089N/AThis page is only used for testing purposes to dump some of the
1089N/Ainternal settings on your OpenGrok server.</p><%
606N/A if (cfg.getEnv().isChattyStatusPage()) {
606N/A Util.dumpConfiguration(out);
606N/A } else {
606N/A %><p>
606N/AFor security reasons, printing of internal settings is not enabled by
606N/Adefault. To enable, set the property <tt>chattyStatusPage</tt> to
606N/A<tt>true</tt> in <tt>configuration.xml</tt> or use the commandline option
606N/A<tt>-Z</tt>.</p><%
1089N/A }
606N/A %>
705N/A </div>
1089N/A<%
1089N/A}
606N/A/* ---------------------- status.jsp start --------------------- */
606N/A%><%@
1089N/A
606N/Ainclude file="foot.jspf"
606N/A
606N/A%>