xref: /OpenGrok/opengrok-web/src/main/webapp/status.jsp (revision f11f248b32b65f089db8a8e8db75e88c2b25d859)
10d40e9d0SAdam Hornáček<%--
20d40e9d0SAdam Hornáček$Id$
30d40e9d0SAdam Hornáček
40d40e9d0SAdam HornáčekCDDL HEADER START
50d40e9d0SAdam Hornáček
60d40e9d0SAdam HornáčekThe contents of this file are subject to the terms of the
70d40e9d0SAdam HornáčekCommon Development and Distribution License (the "License").
80d40e9d0SAdam HornáčekYou may not use this file except in compliance with the License.
90d40e9d0SAdam Hornáček
100d40e9d0SAdam HornáčekSee LICENSE.txt included in this distribution for the specific
110d40e9d0SAdam Hornáčeklanguage governing permissions and limitations under the License.
120d40e9d0SAdam Hornáček
130d40e9d0SAdam HornáčekWhen distributing Covered Code, include this CDDL HEADER in each
140d40e9d0SAdam Hornáčekfile and include the License file at LICENSE.txt.
150d40e9d0SAdam HornáčekIf applicable, add the following below this CDDL HEADER, with the
160d40e9d0SAdam Hornáčekfields enclosed by brackets "[]" replaced with your own identifying
170d40e9d0SAdam Hornáčekinformation: Portions Copyright [yyyy] [name of copyright owner]
180d40e9d0SAdam Hornáček
190d40e9d0SAdam HornáčekCDDL HEADER END
200d40e9d0SAdam Hornáček
2156f072caSAdam HornáčekCopyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
220d40e9d0SAdam HornáčekPortions Copyright 2011 Jens Elkner.
23a804b2d7SAdam HornáčekPortions Copyright (c) 2018, Chris Fraire <cfraire@me.com>.
240d40e9d0SAdam Hornáček
25a804b2d7SAdam Hornáček--%>
26a804b2d7SAdam Hornáček<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
27a804b2d7SAdam Hornáček<%@page session="false" errorPage="error.jsp" import="
2856f072caSAdam Hornáčekorg.opengrok.configuration.RuntimeEnvironment,
2956f072caSAdam Hornáčekorg.opengrok.web.Util"
300d40e9d0SAdam Hornáček%><%
310d40e9d0SAdam Hornáček{
320d40e9d0SAdam Hornáček    PageConfig cfg = PageConfig.get(request);
330d40e9d0SAdam Hornáček    cfg.checkSourceRootExistence();
340d40e9d0SAdam Hornáček}
350d40e9d0SAdam Hornáček%><%@
360d40e9d0SAdam Hornáček
370d40e9d0SAdam Hornáčekinclude file="projects.jspf"
380d40e9d0SAdam Hornáček
390d40e9d0SAdam Hornáček%><%
400d40e9d0SAdam Hornáček/* ---------------------- status.jsp start --------------------- */
410d40e9d0SAdam Hornáček{
420d40e9d0SAdam Hornáček    PageConfig cfg = PageConfig.get(request);
430d40e9d0SAdam Hornáček    cfg.setTitle("Status");
440d40e9d0SAdam Hornáček}
450d40e9d0SAdam Hornáček%><%@
460d40e9d0SAdam Hornáček
470d40e9d0SAdam Hornáčekinclude file="httpheader.jspf"
480d40e9d0SAdam Hornáček
490d40e9d0SAdam Hornáček%>
500d40e9d0SAdam Hornáček<body>
510d40e9d0SAdam Hornáček    <div id="page">
520d40e9d0SAdam Hornáček        <div id="whole_header">
530d40e9d0SAdam Hornáček            <div id="header"><%@
540d40e9d0SAdam Hornáček
550d40e9d0SAdam Hornáčekinclude file="pageheader.jspf"
560d40e9d0SAdam Hornáček
570d40e9d0SAdam Hornáček            %>
580d40e9d0SAdam Hornáček            </div>
590d40e9d0SAdam Hornáček            <div id="Masthead"></div>
600d40e9d0SAdam Hornáček        </div>
610d40e9d0SAdam Hornáček        <div id="status">
620d40e9d0SAdam Hornáček            <h1>OpenGrok status page</h1>
630d40e9d0SAdam Hornáček            <p>
640d40e9d0SAdam HornáčekThis page is only used for testing purposes to dump some of the
650d40e9d0SAdam Hornáčekinternal settings on your OpenGrok server.</p><%
660d40e9d0SAdam Hornáček{
670d40e9d0SAdam Hornáček        PageConfig cfg = PageConfig.get(request);
680d40e9d0SAdam Hornáček        if (cfg.getEnv().isChattyStatusPage()) {
690d40e9d0SAdam Hornáček            Util.dumpConfiguration(out);
700d40e9d0SAdam Hornáček        } else {
710d40e9d0SAdam Hornáček        %><p>
720d40e9d0SAdam HornáčekFor security reasons, printing of internal settings is not enabled by
73*f11f248bSAdam Hornáčekdefault. To enable, set the property <code>chattyStatusPage</code> to
74*f11f248bSAdam Hornáček<code>true</code> in <code>configuration.xml</code>.</p><%
750d40e9d0SAdam Hornáček        }
760d40e9d0SAdam Hornáček        %>
770d40e9d0SAdam Hornáček        </div>
780d40e9d0SAdam Hornáček<%
790d40e9d0SAdam Hornáček}
800d40e9d0SAdam Hornáček/* ---------------------- status.jsp start --------------------- */
810d40e9d0SAdam Hornáček%><%@
820d40e9d0SAdam Hornáček
830d40e9d0SAdam Hornáčekinclude file="foot.jspf"
840d40e9d0SAdam Hornáček
850d40e9d0SAdam Hornáček%>