\r
require_once("models/config.php");\r
if (!securePage($_SERVER['PHP_SELF'])){die();}\r
+if (isUserLoggedIn()){header("Location: index.php"); die();}\r
\r
//User has confirmed they want their password changed \r
if(!empty($_GET["confirm"]))\r
}\r
\r
require_once("models/header.php");\r
-echo "\r
-<body>\r
-<div id='wrapper'>\r
-<div id='top'><div id='logo'></div></div>\r
-<div id='content'>\r
-<h1>UserCake</h1>\r
-<h2>Forgot Password</h2>\r
-<div id='left-nav'>";\r
+startPage();\r
\r
-include("left-nav.php");\r
+//echo notificationBlock($errors,$successes);\r
\r
echo "\r
-</div>\r
-<div id='main'>";\r
-\r
-echo resultBlock($errors,$successes);\r
+<div id='login-container'>\r
+<div class='widget'><div class='title centre'>Forgot password</div>";\r
\r
echo "\r
<div id='regbox'>\r
<p>\r
<label> </label>\r
<input type='submit' value='Submit' class='submit' />\r
-</p>\r
+</p>";\r
+echo resultBlock($errors,$successes);\r
+\r
+echo "\r
</form>\r
</div>\r
</div>\r
-<div id='bottom'></div>\r
-</div>\r
-</body>\r
-</html>";\r
+</div>";\r
+\r
+finishPage();\r
\r
?>\r