added auto redirect
This commit is contained in:
parent
21ad06603c
commit
4365f2b510
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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">');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user