-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex_first.php
More file actions
70 lines (62 loc) · 2.95 KB
/
index_first.php
File metadata and controls
70 lines (62 loc) · 2.95 KB
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
<?php
$content = "<html lang=\"de\">
<head>
<link rel=\"icon\" href=\"image/faviconMetis.ico\" type=\"image/x-icon\" />
<title>
Metis - Bitte stimmen Sie den Cookies zu
</title>
<?php
session_start();
if(isset(\$_SESSION[\"FIRST_SESSION\"])) { unlink(\"index_first.php\"); header(\"location: admin/index/\"); exit; }
elseif(!isset(\$_SESSION[\"cookies\"][\"allow_set_cookies\"])) {
\$_SESSION[\"cookie_caller\"] = \"./\";
\$_SESSION[\"cookie_request_get\"] = true;
header(\"location: cookies.php\");
}
elseif ((!isset(\$_SESSION[\"cookies\"][\"allow_set_cookies\"])) || (\$_SESSION[\"cookies\"][\"allow_set_cookies\"] == false)) {
echo \"<script type=\\\"text/javascript\\\"> var cookie=confirm(unescape(\\\"Diese Web-Site verwendet Cookies. Bitte stimmen Sie zu%2C um unsere Web-Site zu verwenden.\\\\n\".
\"Diese Cookies verbleiben bis zur n%E4chsten L%F6schung Ihrer Browserdaten auf Ihren Computer.\\\"));if(cookie){window.location=\\\"CookiesConfirm.php?confirm=true&\\\";}</script>\";
}
else {
header(\"location: index/\");
}
?>
</head>
<body style=\"font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #c2f9ff;\">
<a style=\"color:#FF1919;\" href=\"./\">
<b><u>Bitte akzeptieren Sie, das wir Cookies benutzen, um unsere Web-Site zu nutzten zu können.</u></b>
</a>
<p>
<h2>Wofür nutzten wir Cookies?</h2>
<br />
Wir nutzen Cookies, um Ihre Web-Site-Einstellungen auf Ihren PC zu speicher, damit Sie unsere Web-Site so wiederfinden, wie Sie sie verließen.
<br />
Keineswegs leiten wir Ihre Daten an andere Web-Sites weiter.
<br />
Um die Cookies (die jetzt noch nicht gesetzt wurden) zu löschen, gehen Sie einfach in Ihren Browserverlauf, und auf \"Browserdaten löschen\".
<br /><br />
Um mit Cookies forzufahren Klicken Sie bitte <a href=\"./\">hier</a>.
</p>
</body>
</html>";
session_start();
if(isset($_POST["sub_next"])) {
file_put_contents("index.php", $content);
$_SESSION["FIRST_SESSION"] = true;
header("location: index.php");
}
?><!DOCTYPE html>
<html>
<head>
<title>Metis - Einrichtung</title>
<link rel="stylesheet" href="student/mainStyle.css" />
<head>
<body>
<h1>Danke, dass Sie sich für Metis entschieden haben!</h1>
<h1>Was ist zu machen?</h1>
<form method="POST" action="index_first.php">
<p>Geben Sie als Benutzername "<b>Admin</b>" und als Passwort "<b>admin</b>" ein.</p>
<input type="submit" name="sub_next" id="sub_next" value="Zum Admininterface"></input> (Diese Datei wird beim Fortfahren gelöscht)
</form>
</body>
</html>