xref: /OpenGrok/opengrok-web/src/main/webapp/status.jsp (revision aa18fa2876e3629259023f79466c3f639b53b9d0)
1<%--
2$Id$
3
4CDDL HEADER START
5
6The contents of this file are subject to the terms of the
7Common Development and Distribution License (the "License").
8You may not use this file except in compliance with the License.
9
10See LICENSE.txt included in this distribution for the specific
11language governing permissions and limitations under the License.
12
13When distributing Covered Code, include this CDDL HEADER in each
14file and include the License file at LICENSE.txt.
15If applicable, add the following below this CDDL HEADER, with the
16fields enclosed by brackets "[]" replaced with your own identifying
17information: Portions Copyright [yyyy] [name of copyright owner]
18
19CDDL HEADER END
20
21Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
22Portions Copyright 2011 Jens Elkner.
23Portions Copyright (c) 2018, Chris Fraire <cfraire@me.com>.
24
25--%>
26<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
27<%@page session="false" errorPage="error.jsp" import="
28org.opengrok.indexer.configuration.RuntimeEnvironment,
29org.opengrok.indexer.web.Util"
30%><%
31{
32    PageConfig cfg = PageConfig.get(request);
33    cfg.checkSourceRootExistence();
34}
35%><%@
36
37include file="projects.jspf"
38
39%><%
40/* ---------------------- status.jsp start --------------------- */
41{
42    PageConfig cfg = PageConfig.get(request);
43    cfg.setTitle("Status");
44}
45%><%@
46
47include file="httpheader.jspf"
48
49%>
50<body>
51    <div id="page">
52        <header id="whole_header">
53            <%@include file="pageheader.jspf" %>
54            <div id="Masthead"></div>
55        </header>
56        <div id="status">
57            <h1>OpenGrok status page</h1>
58            <p>
59This page is only used for testing purposes to dump some of the
60internal settings on your OpenGrok server.</p><%
61{
62        PageConfig cfg = PageConfig.get(request);
63        if (cfg.getEnv().isChattyStatusPage()) {
64            Util.dumpConfiguration(out);
65        } else {
66        %><p>
67For security reasons, printing of internal settings is not enabled by
68default. To enable, set the property <code>chattyStatusPage</code> to
69<code>true</code> in <code>configuration.xml</code>.</p><%
70        }
71        %>
72        </div>
73<%
74}
75/* ---------------------- status.jsp start --------------------- */
76%><%@
77
78include file="foot.jspf"
79
80%>