/
index.php
252 lines (248 loc) · 8.82 KB
/
index.php
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
$root = "..";
// Set flag that this is a parent file
define( '_JEXEC', 1 );
include_once($root."/include/sessionFunctions.inc.php");
include_once($root."/include/uebersetzer.php");
include_once($root."/include/benutzerFunctions.php");
include_once($root."/include/unterkunftFunctions.php");
include_once($root."/include/reseller/reseller.php");
$noLanguage = false;
//sprache auslesen:
//entweder aus übergebener url oder aus session
if (isset($_POST["sprache"])){
$sprache = $_POST["sprache"];
}
else if (isset($_GET["sprache"])){
$sprache = $_GET["sprache"];
}
else if (getSessionWert(SPRACHE)!=false){
$sprache = getSessionWert(SPRACHE);
}
if (!isset($sprache) || $sprache == ""){
// Sprache aus datenbank holen:
if (isset( $_POST["unterkunft_id"])){
$unterkunft_id = $_POST["unterkunft_id"];
}
else if (isset($_GET["unterkunft_id"])){
$unterkunft_id = $_GET["unterkunft_id"];
}
if (isset($unterkunft_id) && $unterkunft_id != ""){
include_once("../include/einstellungenFunctions.php");
$sprache = getStandardSprache($unterkunft_id,$link);
}
}
//keine sprache von irgendwo -> mehrsprachig anzeigen:
if (!isset($sprache) || $sprache == ""){
$noLanguage = true;
$sprache = "de";
}
if (!isset($unterkunft_id)){
$unterkunft_id = 1;
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Wartungsseite Reservierungsplan utilo.eu Belegungsplan und Kundendatenbank Rezervi</title>
<meta http-equiv="Content-Type" content="text/html; charset="UTF-8">
<link href="../templates/stylesheets.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
//pruefen ob installation schon durchgeführt wurde:
if (!isInstalled($unterkunft_id)){
?>
Please install Rezervi first! <br/>
Bitte insallieren sie Rezervi zuerst! <br/>
<a href="../install/index.php">--> Install</a>
<?php
}
else{
?>
<table width="95%" height="90%" border="0" align="center" cellpadding="0" cellspacing="3" class="table">
<tr>
<td align="center" valign="middle"><table border="0" align="center" cellpadding="0" cellspacing="2" class="table">
<tr>
<?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
?>
<td class="ueberschrift" align="right">Welcome at the
webinterface of your personal
availability overview und guest database 'Rezervi'
<?php
if ($isReseller){
?>
from <a href="<?php echo $resellerUrl ?>" target="_blank" class="ueberschrift"><?php echo $resellerName ?></a>
<?php
}
else{
?>
<a href="http://www.utilo.eu/" target="_blank" class="ueberschrift">© utilo.eu</a>
<?php
}
?>
</td>
<?php
}
?>
<td>
<?php
if ($isReseller){
?>
<a href="<?php echo $resellerUrl ?>" target="_blank">
<img src="<?php echo $root.$resellerLogo ?>" border="1" hspace="10"/>
</a>
<?php
}
else{
?>
<a href="http://www.utilo.eu" target="_blank">
<img src="utilologo200px.gif" hspace="10" border="0"/>
</a>
<?php
}
?>
</td>
<td class="ueberschrift"><?php echo(getUebersetzung("Willkommen auf der Wartungsseite",$sprache,$link)); ?>
<?php echo(getUebersetzung("ihres persönlichen Belegungsplanes",$sprache,$link)); ?>
<?php echo(getUebersetzung("und Ihrer Gästedatenbank Rezervi",$sprache,$link)); ?>
<?php
if ($isReseller){
?>
von <a href="<?php echo $resellerUrl ?>" target="_blank" class="ueberschrift"><?php echo $resellerName ?></a>
<?php
}
else{
?>
<a href="http://www.utilo.eu/" target="_blank" class="ueberschrift">© utilo.eu</a>
<?php
}
?>
</td>
</tr>
</table>
<p class="ueberschrift">
<?php
//passwort wurde falsch eingegeben:
if (!(empty($fehlgeschlagen)) && $fehlgeschlagen) {
?>
</p>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="belegt">
<tr>
<td><div align="center"><?php echo(getUebersetzung("Der Benutzername und/oder das Passwort wurden falsch eingegeben, bitte wiederholen Sie Ihre Eingabe!",$sprache,$link)); ?></div></td>
</tr>
</table>
<br />
<?php
} //ende if passwort falsch
?>
<table border="0" align="center" cellpadding="0" cellspacing="2" class="table">
<tr>
<td><p align="center" class="standardSchrift"><?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("Please login with your username and password:<br/>");
}
echo(getUebersetzung("Bitte melden Sie sich hier mit Ihrem Benutzernamen und Passwort an",$sprache,$link)); ?>:<br/></p>
<?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("If you login for the first time please use 'test' for username and password. Change that after your first login!<br/>");
}
echo(getUebersetzung("Verwenden sie den Benutzernamen und das Password ",$sprache,$link)); ?>
<?php echo("'test', "); ?>
<?php echo(getUebersetzung("wenn sie sich das erste mal anmelden. Vergessen sie nicht diese Daten danach zu Ändern!",$sprache,$link));
?>
<form action="./inhalt.php" method="post" name="passwortEingabe" target="_self" id="passwortEingabe">
<table width="10" border="0" align="center" cellpadding="0" cellspacing="5" class="table">
<tr>
<td valign="middle"><?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("Username<br/>");
}
echo(getUebersetzung("Benutzername",$sprache,$link)); ?></td>
<td><input name="ben" type="text" id="ben">
</td>
</tr>
<tr>
<td valign="middle"><?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("Password<br/>");
}
echo(getUebersetzung("Passwort",$sprache,$link)); ?></td>
<td><input name="pass" type="password" id="pass"></td>
</tr>
<tr>
<td valign="middle"><?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("Language<br/>");
}
echo(getUebersetzung("Sprache",$sprache,$link)); ?></td>
<td><select name="sprache">
<?php
$res = getSprachenForWebinterface($link);
while($d = mysqli_fetch_array($res)){
$bezeichnung = $d["Bezeichnung"];
$spracheID = $d["Sprache_ID"];
if ($noLanguage){
$bezeichnung_en = getUebersetzung($bezeichnung,"en",$link);
}
?>
<option value="<?php echo($spracheID); ?>" <?php if ($sprache == $spracheID) echo(" selected"); ?>>
<?php if ($noLanguage){
echo($bezeichnung_en."/");
}
echo($bezeichnung);
?></option>
<?php
}
?>
</select></td>
</tr>
</table>
<p align="center">
<input name="anmelden" type="submit" class="btn btn-success" id="anmelden" value="<?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("login/");
}
echo(getUebersetzung("anmelden",$sprache,$link)); ?>">
</p>
</form>
<span class="standardSchriftBold"></span></td>
</tr>
</table>
<p><span class="standardSchriftBold"><?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo("You have no Rezervi for your accommodation?<br/>");
}
echo(getUebersetzung("Sie haben noch keinen Belegungs-/Reservierungsplan für Ihre Unterkunft?",$sprache,$link)); ?></span><br/>
<a href="http://belegungsplan.utilo.eu" target="_blank"><?php
//keine sprache -> auch englisch anzeigen:
if ($noLanguage){
echo(">> Klick here to get more informations!<br/>");
}
echo(">> ");
echo(getUebersetzung("Klicken Sie hier um mehr Informationen zu erhalten!",$sprache,$link)); ?></a></p></td>
</tr>
<tr>
<td align="center" valign="middle">
<?php if ($isReseller) { ?>
<font size="1">Rezervi by <?php echo $resellerName ?> 2008</font>
<?php } else { ?>
<font size="1">© UTILO, 2002 - 2008</font>
<?php } ?>
</td>
</tr>
</table>
<?php
}
?>
</body>
</html>