-
Notifications
You must be signed in to change notification settings - Fork 0
/
einstell.php
53 lines (26 loc) · 1.02 KB
/
einstell.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
<?php
// Dein Benutzername
$BenNme = "admin";
// Dein Passwort
$Pswt = "pass";
// Sekunden, bis du automatisch abgemeldet wirst
$Ablaufzeit = "900";
// Denke dir 4-stellige Zahl um den Loginvorgang sicherer zu machen (für die Session ID).
$ZufaelligeZahl = "666";
// Auswahl zwischen "dunkel" und "hell"
$Theme = "hell";
//Hier werden deine eingetragenen Daten gespeichert. Wenn du den Dateinamen hier änderst, musst du die Datei umbenennen!
$Dateiname = "w3FyCgBtRs7I1Mn.php";
// Wird angezeigt, wenn jemand die $Dateiname Datei direkt aufruft.
$Schutz = "Gehen Sie bitte weiter. Hier gibt es nichts zu sehen!";
/* ---------- Finger weg! - Hier wird die zufällige ID erstellt ------------*/
$heute = date('YmdHi');
$Start = date('YmdHi', strtotime('1986-02-14 08:30:00'));
$Bereich = $heute - $Start;
$Wert = rand(0, $Bereich);
$VorID = ($Start + $Wert * $ZufaelligeZahl - $Ablaufzeit);
$UnID = uniqid();
$IstID = $VorID . $UnID;
$SHAID = sha1($IstID);
$SessionID = password_hash($SHAID, PASSWORD_DEFAULT);
?>