gradido/login_server/src/cpsp/Error500.cpsp
2021-05-20 13:45:47 +02:00

27 lines
804 B
Plaintext

<%@ page class="Error500Page" %>
<%@ page baseClass="SessionHTTPRequestHandler" %>
<%@ page ctorArg="Session*" %>
<%@ header include="HTTPInterface/SessionHTTPRequestHandler.h" %>
<%!
#include <Poco/Net/HTTPResponse.h>
%>
<%
const char* pageName = "Error";
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR);
Poco::AutoPtr<controller::User> user;
if(mSession) {
auto user = mSession->getNewUser();
}
%><%@ include file="include/header_old.cpsp" %>
<div class="grd_container">
<h2>Ein Fehler auf dem Server trat ein, der Admin bekam eine E-Mail.</h2>
<% if(mSession) { %>
<%= mSession->getErrorsHtmlNewFormat() %>
<% } %>
<% if(!user.isNull()) {%>
<%= user->getModel()->getErrorsHtmlNewFormat() %>
<% } %>
</div>
<%@ include file="include/footer.cpsp" %>