server-restart.jsp 1.01 KB
Newer Older
1
<%@ page errorPage="error.jsp" %>
2
<%@ page import="org.jivesoftware.openfire.XMPPServer" %>
Gaston Dombiak's avatar
Gaston Dombiak committed
3

4 5 6
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
Gaston Dombiak's avatar
Gaston Dombiak committed
7

8 9
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager"/>
<% admin.init( request, response, session, application, out ); %>
Gaston Dombiak's avatar
Gaston Dombiak committed
10

11
<%
12
    // Log the event
13
    admin.logEvent( "restarted the http server", null );
Gaston Dombiak's avatar
Gaston Dombiak committed
14 15
    XMPPServer.getInstance().restartHTTPServer();
%>
16
<c:set var="redirectPage" value="login.jsp?url=${fn:escapeXml(page)}&username=${admin.authToken.username}"/>
Gaston Dombiak's avatar
Gaston Dombiak committed
17 18 19 20
<html>
<head>
    <title><fmt:message key="server-restart.title"/></title>
    <meta name="pageID" content="server-settings"/>
21
    <meta http-equiv="refresh" content="5; URL=${redirectPage}">
Gaston Dombiak's avatar
Gaston Dombiak committed
22
</head>
23 24 25 26 27
<body><fmt:message key="server-restart.info">
    <fmt:param value="<a href=\"$redirectPage}\">"/>
    <fmt:param value="</a>"/>
</fmt:message>
</body>
Gaston Dombiak's avatar
Gaston Dombiak committed
28
</html>