//* 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
	<head> 
		<link rel="stylesheet" type="text/css" href="../style.css">
	</head>
</html>

<?php 
//******************************************//
//* This copyright notice must not be removed
//* 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.
//*********************************************************************//
if (isset($_SESSION["logged_in"])) {
    echo "Hello {$_SESSION} you can change your password here";
} else {
    echo "<form action=\"{$_SERVER["PHP_SELF"]}\"  method=\"POST\">\n\t\t<p class='form_title'> Your email: </p>\n\t\t<input name=\"email\" type=\"text\"> </br>\n\t\t<input name=\"recover\" type=\"submit\" value=\"Recover\">\n\t\t</form>";
    include_once "../connection_to_db.php";
    include_once "recover_password_class.php";
    $rec_pass = new recover_password();
    $rec_pass->data($conn);
}