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