aboutsummaryrefslogtreecommitdiff
path: root/www/reset.php
blob: 4d6069e82747a689c874f97c8e0b78958302dc7b (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
<?php

/* Copyright Maximilian Möhring, 2013
Licensed under the GPL. Read LICENSE for more Information.*/

function print_recover_password($var){

	echo "
<!doctype html>

<html>
 <head>
  <title>Junge Gemeinde Adlershof.</title>
  <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
  <link rel='stylesheet' type='text/css' href='/static/hyperstyle.css' />
  <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'>
 </head>

";

	if($_SESSION["login"]){
		include("static/head.php");

	} else {
		echo "
			<div id='header' class='kleineschrift'>
			<br><br>
			<hr>
			</div>
		";
		include("piwik.php");
	}

	$startseite="<div class='kleineschrift'><a style='text-decoration:underline;' href='/'>Zurück zur Startseite.</a></div>";
	echo "
        <div id='content_container' align='center'><br>

        <div align='center'>
        <p5>JUNGE GEMEINDE ADLERSHOF</p5>
<br><br><div id='behaelter' align='center'>
	";

	if($var == RECOVER_EMAIL){
		$p = "
			<a5>Die E-Mail ist nicht in der Datenbank gespeichert. Achte auf Tippfehler und probiere noch einmal.<br>
			Du hast noch ".$_SESSION["login_attempts"] ."Versuche, bevor du gesperrt wirst.</a5>
		";
	} else {
		$p = "<a5>Gib deine E-Mail Adresse ein, um dir ein neues Passwort zuzuschicken.</a5><br><br>";
	}

	echo 
		$p.
		"
		<form action='/password_recover' method='post'>
		<input type='text' name='email' size='30'/>
		</form>
		<br>
		$startseite
		</div>
		</div>
		</div>
	";
			//if(mail($email, "Dein neues Passwort", "Dein neues Passwort für https://jungegemeinde.iamfabulous.de lautet: '" . $secret . "'. Wenn du diese E-Mail nicht erwartet hast, bitte sende eine Nachricht an max-moehring@web.de. Danke.", "From: no-reply@jg-adlershof.de")){
//				echo "Wir haben deine E-Mail in der Datenbank. Eine E-Mail mit deinem neuen Passwort wurde soeben verschickt.<br>";
//			} else {
//				echo "Fehler mit der mail() Funktion. Bitte schick eine Benachrichtigung an <a href='mailto:max-moehring@web.de'>max-moehring@web.de</a>.";
//			}

}