blob: e69ef667018d9d8d3803d2eccec41b9b122ec629 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<%pre>
#include "setup.h"
using namespace vdrlive;
using namespace std;
</%pre>
<%args>
int lastchannel = 0;
bool useauth = 0;
string login;
string pass;
int passLength = 0;
</%args>
<%session scope="global">
bool logged_in(false);
</%session>
<%include>page_init.eh</%include>
<{
if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
}>
<%cpp>
if ( request.getMethod() == "POST") {
LiveSetup().SetLastChannel(lastchannel);
LiveSetup().SetUseAuth(useauth);
LiveSetup().SetAdminLogin(login);
LiveSetup().SetAdminPassword(pass);
return reply.redirect("setup.html");
}
pageTitle = tr("Setup");
lastchannel = LiveSetup().GetLastChannel();
login = LiveSetup().GetAdminLogin();
useauth = LiveSetup().UseAuth();
</%cpp>
<& pageelems.doc_type &>
<html>
<head>
<title>VDR-Live - <$ pageTitle $></title>
<link rel="stylesheet" type="text/css" href="/styles.css" />
<& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &>
<& pageelems.ajax_js &>
</head>
<body onload="<& pageelems.infobox_start_update &>">
<& pageelems.logo &>
<& menu active=("setup") &>
<div class="inhalt">
<form method="POST" name="setup" action="setup.ecpp">
<table class="edit" cellpadding="0" cellspacing="0">
<tr>
<td class="head" colspan="4"><div class="boxheader"><div><div><$ tr("Setup") $></div></div></div></td>
</tr> <!-- Last channel -->
<tr>
<td class="border" style="border-left: 1px solid black"></td>
<td class="label"><$ tr("Last channel to display") $>:</td>
<td><input type="text" name="lastchannel" value="<$ lastchannel $>" id="lastchannel" /></td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
<tr>
<td class="border" style="border-left: 1px solid black"></td>
<td class="label"><$ tr("Use authentication") $>:</td>
<td><input type="checkbox" name="useauth" value="1" <{ reply.out() << ( useauth ? "checked=\"checked\"" : "" ); }>/></td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
<tr>
<td class="border" style="border-left: 1px solid black"></td>
<td class="label"><$ tr("Admin login") $>:</td>
<td><input type="text" name="login" value="<$ login $>" id="login" /></td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
<tr>
<td class="border" style="border-left: 1px solid black"></td>
<td class="label"><$ tr("Admin password") $>:</td>
<td><input type="text" name="pass" value="<$ pass $>" id="pass" /></td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
<tr>
<td class="border" style="border-left: 1px solid black"></td>
<td class="buttonpanel" colspan="2">
<button class="green" type="submit" name="save" onclick="return checksearch();"><$ tr("Save") $></button>
</td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%include>page_exit.eh</%include>
|