<?php
session_start();
if(isset($_SESSION['SESS_LOGGEDIN']) == TRUE) {
    header("Location: " . $config_basedir);
}
require("config.php");
require("db.php");
?>
<?php
if(!empty($_POST['email']))
{
    $reseta = mysql_real_escape_string($_POST['email']); 
    $lenght=20;
    $key=substr(str_shuffle(md5(time())),0,$lenght);
    //check data
    $sql = mysql_query("SELECT * FROM logins WHERE email='$reseta'");
    $result =mysql_num_rows($sql);
    if ($result > 0){
        while($row = mysql_fetch_assoc($sql)) {
            $email = $row['email'];
        }

        //if username matches create key using php date
        $sql = mysql_query("UPDATE logins SET reset='$key' WHERE email ='$email'");
        $result =mysql_num_rows($sql);
        if ($result > 0){
            echo "Error:  <br>";
        } else {

            $message = 'Click or copy paste the following link on your URL bar to reset your password '.$config_basedir.'new-password.php?user='.$email.'&reset='.$key.'';
            $header = "From: $adminemail";
            mail($email,'Password Reset Request',$message,$header);
            echo 'An email has been sent to you';


        }
    }
    else {
        echo "Email wasn't found in our database";
    }
    mysqli_close($db);
}
?>

<!DOCTYPE html>
<html>


<head>
<meta charset="utf-8">
<title>Elite Crypto Services | Login your account</title>
<!-- Stylesheets -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

<!--Color Switcher Mockup-->
<link href="css/color-switcher-design.css" rel="stylesheet">

<!--Color Themes-->
<link id="theme-color-file" href="css/color-themes/default-theme.css" rel="stylesheet">

<!--Favicon-->
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
<link rel="icon" href="images/favicon.png" type="image/x-icon">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]><script src="js/respond.js"></script><![endif]-->



<!-- Bootstrap core CSS External-->
        <link href="css2/bootstrap.css" rel='stylesheet' type='text/css'>
        <link href="css2/styles.css" rel='stylesheet' type='text/css'>
        <link href="css2/grid.css" rel='stylesheet' type='text/css'>
        <!-- Custom styles for this template External-->
        <link href="js2/colorbox/colorbox.css"  rel='stylesheet' type='text/css'>
        <link href="css2/templatemo_style.css"  rel='stylesheet' type='text/css'>
</head>

<body>
<div class="page-wrapper">
 	
    <!-- Preloader -->
    <div class="preloader"></div>
 	
    <!-- Main Header-->
    <header class="main-header">
    
    	<!--Header Top-->
    	<div class="header-top">
        	<div class="auto-container">
            	<div class="top-inner">
                	<div class="clearfix">
                        <div class="top-left">
                             <ul class="clearfix">
                                <li><span><?php $mydate=getdate(date("U"));
                               echo "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]";
                                ?></span></li>
                               
                                <li class="email" style="margin-left: 77px"><a href="#" ><span class="icon fa fa-envelope-o"></span>support@elitecryptoservices.com</a></li>
                            </ul>
                        </div>
                        <div class="top-right clearfix">
                            <ul class="clearfix">
                                <li><a href="login.php"><span class="icon flaticon-web-log-in"></span>Login</a></li>
                                <li><a href="reg.php"><span class="icon flaticon-file-1"></span>Register</a></li>
                                <li class="language dropdown"><a class="btn btn-default dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" href="#"><span class="flag-icon"><img src="images/icons/flag-icon.png" alt="" /></span>En &nbsp;<span class="arrow-icon fa fa-angle-down"></span></a>
                                    <ul class="dropdown-menu style-one" aria-labelledby="dropdownMenu1">
                                        <li><a href="#">Arabic</a></li>
                                        <li><a href="#">China</a></li>
                                        <li><a href="#">German</a></li>
                                        <li><a href="#">French</a></li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    
        <!--Header-Upper-->
        <div class="header-upper">
        	<div class="auto-container clearfix">
                	
                <div class="pull-left logo-outer">
                    <div class="logo"><a href="index.php"><img src="images/logo.png" alt="" title=""></a></div>
                </div>
                
                <div class="pull-right upper-right clearfix">
                    
                    <div class="nav-outer clearfix">
                		<!-- Main Menu -->
                        <nav class="main-menu">
                                                        <div class="navbar-header">
                                <!-- Toggle Button -->    	
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                </button>
                            </div>
                            
                            <div class="navbar-collapse collapse clearfix">
                                <ul class="navigation clearfix">
                                    <li class="current"><a href="index.php">Home</a></li>
                                    <li class="dropdown"><a href="#">About us</a></li>
                                        
                                    
                                    <li class="dropdown"><a href="#">Services</a>
                                        <ul>
                                        	<li><a href="services.html">services</a></li>
                                            <li><a href="#">Initial Coin Offering</a></li>
                                            <li><a href="#">Bitcoion Investment</a></li>
                                            <li><a href="#">Research & Development</a></li>
                                            <li><a href="#">Worshops & Seminars</a></li>
                                            <li><a href="#">Payment Integration</a></li>
                                            <li><a href="#">Bitcoin ATM’s & Kiosks</a></li>
                                        </ul>
                                    </li>
                                    <li><a href="how-it-works.php">How it Works</a></li>
									<li><a href="#">VIP Withdrawal</a></li>
                                   
                                   
                                    <li><a href="contact.html">Contact Us</a></li>
                                </ul>
                            </div>
                        </nav>
                        
                        <!-- Main Menu End-->
                        <div class="outer-box">
                            <!--Search Box-->
                            <div class="search-box-outer">
                                <div class="dropdown">
                                    <button class="search-box-btn dropdown-toggle" type="button" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="fa fa-search"></span></button>
                                    <ul class="dropdown-menu pull-right search-panel" aria-labelledby="dropdownMenu3">
                                        <li class="panel-outer">
                                            <div class="form-container">
                                                <form method="post" action="http://t.commonsupport.com/mastercoin/blog.html">
                                                    <div class="form-group">
                                                        <input type="search" name="field-name" value="" placeholder="Search Here" required>
                                                        <button type="submit" class="search-btn"><span class="fa fa-search"></span></button>
                                                    </div>
                                                </form>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="reservation-form-btn consult-form-btn"><span class="icon flaticon-menu-options"></span></div>
                        </div>
            		</div>
                    
                </div>
                    
            </div>
        </div>
        <!--End Header Upper-->
        
        <!--Sticky Header-->
        <div class="sticky-header">
        	<div class="auto-container clearfix">
            	<!--Logo-->
            	<div class="logo pull-left">
                	<a href="index.html" class="img-responsive"><img src="images/logo-small.png" alt="" title=""></a>
                </div>
                
                <!--Right Col-->
                <div class="right-col pull-right">
                	<!-- Main Menu -->
                    <nav class="main-menu">
                         <div class="navbar-header">
                            <!-- Toggle Button -->    	
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                        </div>
                        
                        <div class="navbar-collapse collapse clearfix">
                            <ul class="navigation clearfix">
                                <li class="current"><a href="index.php">Home</a></li>
                                <li class="dropdown"><a href="#">About us</a></li>
                                    
                                
                                <li class="dropdown"><a href="#">Services</a>
                                    <ul>
                                        <li><a href="#">services</a></li>
                                        <li><a href="#">Initial Coin Offering</a></li>
                                        <li><a href="#">Bitcoion Investment</a></li>
                                        <li><a href="#">Research & Development</a></li>
                                        <li><a href="#">Worshops & Seminars</a></li>
                                        <li><a href="#">Payment Integration</a></li>
                                        <li><a href="#">Bitcoin ATM’s & Kiosks</a></li>
                                    </ul>
                                </li>
                                <li><a href="how-it-works.php">How it Works</a></li>
									<li><a href="#">VIP Withdrawal</a></li>
                                   
                                <li><a href="contact.html">Contact Us</a></li>
                            </ul>
                        </div>
                    </nav><!-- Main Menu End-->
                </div>
                
            </div>
        </div>
        <!--End Sticky Header-->
    
    </header>
    <!--End Main Header -->
	
	<!--Form Back Drop-->
    <div class="form-back-drop"></div>
    <!--Consulting Form-->
    <section class="consulting-form">
    	<div class="inner-box">
            <div class="cross-icon"><span class="flaticon-cancel-1"></span></div>
            <div class="logo">
                <a href="#"><img src="images/logo-3.png" alt="" /></a>
            </div>
            <div class="title">
                <h2>Free Consultation</h2>
                <div class="separator"></div>
            </div>
            
            <!--Consult Form-->
            <div class="consult-form">
                <form method="post" action="http://t.commonsupport.com/mastercoin/contact.html">

                    <div class="form-group">
                        <input type="text" name="text" value="" placeholder="Your Name" required>
                    </div>
                    <div class="form-group">
                        <input type="email" name="email" value="" placeholder="Email Address" required>
                    </div>
                    <div class="form-group">
                        <textarea placeholder="Your Message"></textarea>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="theme-btn btn-style-one">Submit</button>
                    </div>
                    
                </form>
            </div>
            
            <!--Btns Box-->
            <div class="btns-box">
                <a href="login.php" class="signin-btn theme-btn"><span class="icon flaticon-web-log-in"></span>Login</a>
                <span class="or">or</span>
                <a href="reg.php" class="signup-btn theme-btn"><span class="icon flaticon-edit"></span>Register</a>
            </div>
            
        </div>
    </section>
    <!--End Consulting Form-->
    
    <!--Page Title-->
    <section class="page-title" style="background-image:url(images/background/3.jpg);">
        <div class="auto-container">
            <h1>Forgot Password</h1>
            <div class="title">Our goal here is to provide low prices on high quality <br> products and excellent service.</div>
        </div>
        <!--Page Info-->
        <div class="page-info">
            <div class="auto-container">
            	<div class="inner-container">
                    <ul class="bread-crumb">
                        <li><a href="index.php">Home</a></li>
                        <li>Forgot Password</li>
                    </ul>
                </div>
            </div>
        </div>
        <!--End Page Info-->
    </section>
    <!--End Page Title-->
	
	
    <div class="container">
	
	  <div class="row">
        <div class="col-md-7">

            <div class="category" align="left" >
                <form action="" method="post">
                    <div class="ncat"><h2>Forgot Password</h2></div>
                    <label for="username">Email:&nbsp;&nbsp;&nbsp;</label>
                    <input type="text" id="username" name="email" placeholder="enter your email..."/>

                    &nbsp;&nbsp;&nbsp;<input type="submit" id="btn-mlogin" value="Reset" style=" background: green !important"/>
                </form>
            </div>
        </div>
                       
        
        
       </div>
	
	
	</div><!--end of container-->
   
   
   
   
   
   
   
   
    
    <!--Main Footer-->
    <footer class="main-footer" style="background-image:url(images/background/2.jpg)">
		<div class="auto-container">
        	<!--Widgets Section-->
            <div class="widgets-section">
            	<div class="row clearfix">
                	
                    <!--big column-->
                    <div class="big-column col-md-6 col-sm-12 col-xs-12">
                        <div class="row clearfix">
                        
                            <!--Footer Column-->
                            <div class="footer-column col-md-6 col-sm-6 col-xs-12">
                                <div class="footer-widget link-widget">
                                    <div class="footer-title">
                                        <h2>Usefull Links</h2>
                                        <div class="separator"></div>
                                	</div>
                                    <ul class="list-links">
                                    	<li><a href="#">Coin Overview</a></li>
                                        <li><a href="#">How to Buy Coin</a></li>
                                        <li><a href="#">Payment Options</a></li>
                                        <li><a href="#">Legal & security</a></li>
                                        <li><a href="#">Refund Policy</a></li>
                                        <li><a href="#">Contact Center</a></li>
                                    </ul>
                                </div>
                            </div>
                            
                            <!--Footer Column-->
                            <div class="footer-column col-md-6 col-sm-6 col-xs-12">
                                <div class="footer-widget link-widget">
                                    <div class="footer-title">
                                        <h2>Our Services</h2>
                                        <div class="separator"></div>
                                	</div>
                                    <ul class="list-links">
                                    	<li><a href="#">Transaction</a></li>
                                        <li><a href="#">Exchange</a></li>
                                        <li><a href="#">Investments</a></li>
                                        <li><a href="#">Shopping</a></li>
                                        <li><a href="#">Escrow Service</a></li>
                                        <li><a href="#">Bitcoin Mining</a></li>
                                    </ul>
                                </div>
                            </div>
                            
                        </div>
                    </div>
                    
                    <!--big column-->
                    <div class="big-column col-md-6 col-sm-12 col-xs-12">
                        <div class="row clearfix">
                        
                            <!--Footer Column-->
                            <div class="footer-column col-md-6 col-sm-6 col-xs-12">
                                <div class="footer-widget info-widget">
                                	<div class="footer-title">
                                        <h2>Get In Touch</h2>
                                        <div class="separator"></div>
                                	</div>
									<ul class="info-list">
                                    	<li><span>Email:</span>support@elitecryptoservices.com</li>
                                        <li><span>Phone:</span>Tollfree: +1 904-4474-856</li>
                                        <li><span>Address:</span>8147, Willis Rd, Gloucester, <br> United States.</li>
                                    </ul>
                                </div>
                            </div>
                            
                            <!--Footer Column-->
                            <div class="footer-column col-md-6 col-sm-6 col-xs-12">
                                <div class="footer-widget info-widget">
                                	<div class="footer-title">
                                        <h2>We Are Social</h2>
                                        <div class="separator"></div>
                                	</div>
                                    <ul class="social-links">
                                    	<li><a href="#"><span class="fa fa-facebook"></span> Facebook</a></li>
                                        <li><a href="#"><span class="fa fa-twitter"></span> Twitter</a></li>
                                        <li><a href="#"><span class="fa fa-linkedin"></span> Linkedin</a></li>
                                        <li><a href="#"><span class="fa fa-pinterest-p"></span> Pinterest</a></li>
                                        <li><a href="#"><span class="fa fa-rss"></span> RSS Feed</a></li>
                                    </ul>
                                </div>
                            </div>
                            
                        </div>
                    </div>
                    
                </div>
    		</div>
            
            <!--Footer Nav Links-->
            <div class="footer-nav-links">
            	<ul class="footer-nav">
                	<li><a href="index.php">Home</a></li>
                    <li><a href="#">About Us</a></li>
                    <li><a href="#">Services</a></li>
                    <li><a href="#">How it Works</a></li>
                  
                    <li><a href="contact.html">Contact</a></li>
                </ul>
            </div>
            
        </div>
        <!--Footer Bottom-->
        <div class="footer-bottom">
        	<div class="auto-container">
            	<div class="row clearfix">
                    <div class="col-md-6 col-sm-12 col-xs-12">
                        <div class="copyright">Copyrights &copy; 2018 All Rights Reserved by <a href="index.php">Elite Crypto Services.</a></div>
                    </div>
                    <div class="cards-column col-md-6 col-sm-12 col-xs-12">
                    	<div class="cards">
                        	<img src="images/resource/cards.png" alt="" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    <!--End Main Footer-->
    
</div>
<!--End pagewrapper-->

<!--Scroll to top-->
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="icon fa fa-angle-double-up"></span></div>

<!-- Color Palate / Color Switcher -->

<!-- /.End Of Color Palate -->

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.fancybox.js"></script>
<script src="js/owl.js"></script>
<script src="js/appear.js"></script>
<script src="js/wow.js"></script>
<script src="js/validate.js"></script>
<script src="js/script.js"></script>
<!--Google Map APi Key-->
<script src="http://maps.google.com/maps/api/js?key=AIzaSyBKS14AnP3HCIVlUpPKtGp7CbYuMtcXE2o"></script>
<script src="js/gmaps.js"></script>
<script src="js/map-script.js"></script>
<!--End Google Map APi-->

<!--Color Switcher-->
<script src="js/color-settings.js"></script>

<script type='text/javascript' data-cfasync='false'>window.purechatApi = { l: [], t: [], on: function () { this.l.push(arguments); } }; (function () { var done = false; var script = document.createElement('script'); script.async = true; script.type = 'text/javascript'; script.src = 'https://app.purechat.com/VisitorWidget/WidgetScript'; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.onreadystatechange = script.onload = function (e) { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { var w = new PCWidget({c: '8c294eb0-d636-48de-9190-da6b1b2bd51e', f: true }); done = true; } }; })();</script>
</body>


</html>