added auto redirect

This commit is contained in:
Thies Mueller 2021-01-08 20:47:35 +01:00
parent 21ad06603c
commit 4365f2b510
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ loginpagefoo script';
mail($mailrcpt, $mailsubject, $text, $from); mail($mailrcpt, $mailsubject, $text, $from);
echo "Link send."; echo "Link send. Going back to <a href="login.php">login</a> page. <meta http-equiv="refresh" content="0; URL=login.php">";
$showForm = false; $showForm = false;
} }
} }

View File

@ -2,14 +2,14 @@
<html> <html>
<head> <head>
<title>Logout</title> <title>Logout</title>
<meta http-equiv="refresh" content="3; URL=login.php"> <meta http-equiv="refresh" content="3; URL=/">
</head> </head>
<body> <body>
<?php <?php
session_start(); session_start();
session_destroy(); session_destroy();
echo "Logout. Session is now destroyed. Now lets go to the login page."; echo "Logout. Session is now destroyed. Now lets go to the start page.";
?> ?>
</body> </body>

View File

@ -59,7 +59,7 @@ if(isset($_GET['send'])) {
$result = $statement->execute(array('passwordhash' => $passwordhash, 'userid'=> $userid )); $result = $statement->execute(array('passwordhash' => $passwordhash, 'userid'=> $userid ));
if($result) { if($result) {
die('Changed password. Please goto <a href="login.php">login</a> now.'); die('Changed password. Going to <a href="login.php">login</a> now.<meta http-equiv="refresh" content="1; URL=login.php">');
} }
} }
} }