//* under any circumstances.
//* It must stay intact in all the files.
//* Samforum
//* Version 1.0
//* Script created by Samiuddin Samiuddin
//* Email: phpdevsami@gmail.com
//* Skype: n0h4cks
//* - This is not an open source project, functions/classes
//*   or any other code form this script cannot be
//*   used for other scripts or applications.
//*   You are not allowed to resell this script.
//* - You are free to make modification/changes,
//*   however it must be for your own use.
//*********************************************************************//
session_start();
if (isset($_GET["code"])) {
    include_once "recover_password_class.php";
    include_once "../connection_to_db.php";
    $rec_class = new recover_password();
    $rec_class->check_recovery_code($conn);
}
if (isset($_SESSION["recovery_code"])) {
    echo "<form method=\"POST\" action=\"{$_SERVER["PHP_SELF"]}\"> \n\t\t<p class='forum_title'>New password:</p> <input name=\"password_one\" type=\"text\">\n\t\t<p class='forum_title'>Repeat password: </p> <input name=\"password_two\" type=\"text\"> </br>\n\t\t<input type=\"submit\" name=\"recover_pass\"  value=\"Recover pass\">\n\t    </form>";
    include_once "recover_password_class.php";
    include_once "../connection_to_db.php";
    $rec_class = new recover_password();
    $rec_class->change_pass($conn);
} else {
    header("Location:../index.php");
}
///is confirmed.s