Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. <?php
  2. if(isset($_REQUEST['submitBtn'])){
  3. include '_inc/dbconn.php';
  4. $username=$_REQUEST['uname'];
  5.  
  6. //salting of password
  7. $salt="@g26jQsG&nh*&#8v";
  8. $password= sha1($_REQUEST['pwd'].$salt);
  9.  
  10. $sql="SELECT email,password FROM customer WHERE email='$username' AND password='$password'";
  11. $result=mysqli_query($conn, $sql) or die(mysqli_connect_error());
  12. $rws= mysqli_fetch_array($result);
  13.  
  14. $user=$rws[0];
  15. $pwd=$rws[1];
  16.  
  17. if($user==$username && $pwd==$password){
  18. session_start();
  19. $_SESSION['customer_login']=1;
  20. $_SESSION['cust_id']=$username;
  21. header('location:customer_account_summary.php');
  22. }
  23.  
  24. else{
  25. header('location:index.php');
  26. }}
  27. ?>
  28. <?php
  29. session_start();
  30.  
  31. if(isset($_SESSION['customer_login']))
  32. header('location:customer_account_summary.php');
  33. ?>
  34. <!DOCTYPE html>
  35. <html>
  36. <head>
  37. <noscript>
  38. <meta http-equiv="refresh" content="0;url=no-js.php">
  39. </noscript>
  40. <meta charset="UTF-8">
  41. <title>Online Banking System</title>
  42. <link rel="stylesheet" href="newcss.css">
  43. </head>
  44. <body>
  45. <div class="wrapper">
  46. <div class="header">
  47. <img src="header.jpg" height="100%" width="100%"/>
  48. </div>
  49. <div class="navbar">
  50. <ul>
  51. <li><a href="index.php">Home </a></li>
  52. </ul>
  53. </div>
  54. <div class="user_login">
  55. <form action='' method='POST'>
  56. <table align="left">
  57. <tr>
  58. <td><span class="caption">Secure Account Login</span></td>
  59. </tr>
  60. <tr>
  61. <td colspan="2">
  62. <hr>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td>Username:</td>
  67. </tr>
  68. <tr>
  69. <td><input type="text" name="uname" required></td>
  70. </tr>
  71. <tr>
  72. <td>Password:</td>
  73. </tr>
  74. <tr>
  75. <td><input type="password" name="pwd" required></td>
  76. </tr>
  77. <tr>
  78. <td class="button1"><input type="submit" name="submitBtn" value="Log In" class="button"></td>
  79. </tr>
  80. </table>
  81. </form>
  82. </div>
  83. <div class="image">
  84. <img src="home.jpg" height="100%" width="100%"/>
  85. <div class="text">
  86. <a href="safeonlinebanking.php">
  87. <h3>Click to read safe online banking tips</h3>
  88. </a>
  89. <a href="t&c.php">
  90. <h3>Terms and conditions</h3>
  91. </a>
  92. <a href="faq.php">
  93. <h3>FAQ'S</h3>
  94. </a>
  95. </div>
  96. </div>
  97. <div class="left_panel">
  98. <p>Our internet banking portal provides personal banking services that gives you complete control over all your banking demands online.</p>
  99. <h3>Features</h3>
  100. <ul>
  101. <li>Registration for online banking</li>
  102. <li>Adding Beneficiary account</li>
  103. <li>Funds Transfer</li>
  104. <li>Last Login record</li>
  105. <li>Mini Statement</li>
  106. <li>ATM and Cheque Book</li>
  107. <li>Account Statement by date</li>
  108. </ul>
  109. </div>
  110. <div class="right_panel">
  111. <h3>PERSONAL BANKING</h3>
  112. <ul>
  113. <li>Personal Banking application provides features to administer and manage non personal accounts online.</li>
  114. <li>Phishing is a fraudulent attempt, usually made through email, phone calls, SMS etc seeking your personal and confidential information.</li>
  115. <li>Online Bank or any of its representative never sends you email/SMS or calls you over phone to get your personal information, password or one time SMS (high security) password.</li>
  116. <li>Any such e-mail/SMS or phone call is an attempt to fraudulently withdraw money from your account through Internet Banking. Never respond to such email/SMS or phone call. Please report immediately on reportif you receive any such email/SMS or Phone call. Please lock your user access immediately.</li>
  117. </ul>
  118. </div>
  119. <?php include 'footer.php' ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement