summaryrefslogtreecommitdiff
path: root/pages/error.ecpp
blob: df24dd4fdca7171e97c852c2747f5a09726b52fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%pre>
#include <vdr/i18n.h>
#include "setup.h"

using namespace vdrlive;

</%pre>
<%args>
	pageTitle;
	errorTitle = tr("Page error");
	errorMessage;
</%args>
<%session scope="global">
bool logged_in(false);
</%session>
<{
if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
}>
<& pageelems.doc_type &>
<html>
	<head>
		<title>VDR-Live - <$ pageTitle $></title>
		<& pageelems.stylesheets &>
	</head>
	<body>
		<& pageelems.logo &>
		<& menu &>
		<div class="inhalt">
			<& error.error_widget errorTitle=(errorTitle) errorMessage=(errorMessage) &>
		</div>
	</body>
</html>
<%def error_widget>
	<%args>
		errorTitle;
		errorMessage;
	</%args>
	<table class="error" cellpadding="0" cellspacing="0">
		<tr><td class="title"><$ errorTitle $></td></tr>
		<tr><td class="message"><$ errorMessage $></td></tr>
	</table>
</%def>