wrcspkkit

resetpass.php

May 5th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>.::PkKit::.</title>
  5.  
  6. <!-- BootStrap -->
  7.  
  8. <!-- Latest compiled and minified CSS -->
  9. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  10.  
  11. <!-- jQuery library -->
  12. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
  13.  
  14. <!-- Latest compiled JavaScript -->
  15. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  16.  
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18.  
  19. <link rel="stylesheet" href="style.css" type="text/css" />
  20. <link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700|Lato:400,100,300,700,900' rel='stylesheet' type='text/css'>
  21.  
  22.     <link rel="stylesheet" href="css/animate.css">
  23.    
  24.     <link rel="stylesheet" href="css/style.css">
  25.  
  26.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  27. </head>
  28.  
  29. <body>
  30.  
  31. <nav class="navbar navbar-inverse">
  32.   <div class="container-fluid">
  33.     <div class="navbar-header">
  34.       <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
  35.         <span class="icon-bar"></span>
  36.         <span class="icon-bar"></span>
  37.         <span class="icon-bar"></span>
  38.       </button>
  39.       <a class="navbar-brand" href="#">PKKIT</a>
  40.     </div>
  41.     <div class="collapse navbar-collapse" id="myNavbar">
  42.       <ul class="nav navbar-nav">
  43.         <li><a href="myphotos.php">My Photos</a></li>
  44.         <li><a href="aboutus.php">About Us</a></li>
  45.         <li><a href="faqs.php">FAQs</a></li>
  46.         <li><a href="support.php">Support</a></li>
  47.       </ul>
  48.       <ul class="nav navbar-nav navbar-right">
  49.         <li><a href="register.html"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
  50.         <li><a href="login.html"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
  51.       </ul>
  52.     </div>
  53.   </div>
  54. </nav>
  55.  
  56.  
  57.  
  58. </div>
  59.  
  60.  
  61. <div id="body" class="container-fluid">
  62. <div class="login-box animated fadeInUp">
  63.             <div class="box-header">
  64.                 <h2>Account Recovery</h2>
  65.             </div>
  66.            
  67.             <?php
  68.             $AccountID = $_POST['username'];
  69.             $answer = $_POST['answer'];
  70.             $pass = $_POST['password'];
  71.            
  72.  
  73.             $pass = md5($pass);
  74.            
  75.            
  76.             include_once 'dbconfig.php';
  77.              
  78.              $sql= mysql_query("SELECT * FROM account WHERE account_id='$AccountID' AND answer='$answer'");
  79.              if (mysql_num_rows($sql))
  80.              {
  81.              $sql2 = mysql_query("UPDATE account SET account_pwd='$pass' WHERE account_id='$AccountID' AND answer='$answer'");
  82.              echo "<label>Your password has been updated successfully!</label><br />";
  83.              }else{
  84.                  echo "<label>Please check the information and try again</label>";
  85.              }
  86.              mysqli_close();
  87.                    
  88.             ?>
  89.            
  90.             <form method="get" action="login.html">
  91.     <button type="submit">Continue</button>
  92. </form>
  93.         </div>
  94.     </div>
  95.  
  96. </div>
  97.  
  98.  
  99. <script>
  100.     $(document).ready(function () {
  101.         $('#logo').addClass('animated fadeInDown');
  102.         $("input:text:visible:first").focus();
  103.     });
  104.     $('#username').focus(function() {
  105.         $('label[for="username"]').addClass('selected');
  106.     });
  107.     $('#username').blur(function() {
  108.         $('label[for="username"]').removeClass('selected');
  109.     });
  110.     $('#password').focus(function() {
  111.         $('label[for="password"]').addClass('selected');
  112.     });
  113.     $('#password').blur(function() {
  114.         $('label[for="password"]').removeClass('selected');
  115.     });
  116. </script>
  117.  
  118. </html>
Advertisement
Add Comment
Please, Sign In to add comment