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);
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;
}
}

View File

@ -2,14 +2,14 @@
<html>
<head>
<title>Logout</title>
<meta http-equiv="refresh" content="3; URL=login.php">
<meta http-equiv="refresh" content="3; URL=/">
</head>
<body>
<?php
session_start();
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>

View File

@ -59,7 +59,7 @@ if(isset($_GET['send'])) {
$result = $statement->execute(array('passwordhash' => $passwordhash, 'userid'=> $userid ));
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">');
}
}
}