'tcp', 'host' => '192.168.122.1', 'port' => 6379, 'database' => 2, ]); $redis->set($mail, $hash, "ex", 86400); // hält den Wert für 24h $pheanstalk = new Pheanstalk('192.168.122.1'); $data = array( 'To' => array($mail), 'Name' => 'Gospelchor Adlershof', 'From' => 'noreply@gospeladlershof.de', 'ReplyTo' => 'webmaster@gospeladlershof.de', 'Subject' => 'Gospelchor Adlershof | Login', 'HTMLMessage' => $htmlmessage, 'TextMessage' => $textmessage, ); $pheanstalk ->useTube('contactme_mail') ->put(json_encode($data)); $_SESSION["user"] = $mail; error_log(json_encode($data)); } } header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /check_login.php"); /* $_SESSION["login"] = true; $_SESSION["success"] = "Erfolgreich eingeloggt."; $_SESSION["dontdisplaydeploybutton"] = 1; $_SESSION["user"] = $mail; header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /"); exit; } } $_SESSION["login"] = false; $_SESSION["error"] = "E-Mail oder Passwort stimmmen nicht überein."; header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /login.php"); */