resetPassword(get_code_str(), $db, $_GET['userID'], $_GET['hash'], $_POST["password"], $_POST["confirmPassword"]); else $html = $passMachine->resetPassword(get_code_str(), $db, $_GET['userID'], $_GET['hash']); } else { if (isset($_POST["submitme"])) $html = $passMachine->forgotPassword($db, $_POST["u_email"]); else $html = $passMachine->forgotPassword($db); } $smarty->assign("pageContent", $html ); $smarty->assign("metaTitle", "Forgot Password - " . get_website_name()); $smarty->assign("metaDescription", "Forgot Password - " . get_website_name()); $smarty->assign("metaKeywords", "Forgot,Password".",".get_website_name()); $smarty->display($_SERVER["DOCUMENT_ROOT"]."/templates/main.tpl"); $db->close(); ?>