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