-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathindex.php
129 lines (102 loc) · 4.67 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!-- Authors:
Rashid Feroz [[email protected]]
fb - facebook.com/rashid.feroz1
website - www.hackwhiz.com
Kuldeep kumar [[email protected]]
fb - facebook.com/kuldeepanditkumar
Abhimanyu shrivastava [[email protected]]
fb - facebook.com/abhimanyu.shrivastava.58
-->
<?php
if(isset($_REQUEST['submitBtn'])){
include '_inc/dbconn.php';
$username=$_REQUEST['uname'];
//salting of password
$salt="@g26jQsG&nh*v";
$password= sha1($_REQUEST['pwd'].$salt);
$sql="SELECT email,password FROM customer WHERE email='$username' AND password='$password'";
$result=mysql_query($sql) or die(mysql_error());
$rws= mysql_fetch_array($result);
$user=$rws[0];
$pwd=$rws[1];
if($user==$username && $pwd==$password){
session_start();
$_SESSION['customer_login']=1;
$_SESSION['cust_id']=$username;
header('location:customer_account_summary.php');
}
else{
header('location:index.php');
}}
?>
<?php
session_start();
if(isset($_SESSION['customer_login']))
header('location:customer_account_summary.php');
?>
<!DOCTYPE html>
<html>
<head>
<noscript><meta http-equiv="refresh" content="0;url=no-js.php"></noscript>
<meta charset="UTF-8">
<title>Online Banking System</title>
<link rel="stylesheet" href="newcss.css">
</head>
<body>
<div class="wrapper">
<div class="header">
<img src="header.jpg" height="100%" width="100%"/>
</div>
<div class="navbar">
<ul>
<li><a href="index.php">Home </a></li>
<li><a href="features.php">Features </a></li>
<li id="last"><a href="contact.php">Contact Us</a></li>
</ul>
</div>
<div class="user_login">
<form action='' method='POST'>
<table align="left">
<tr><td><span class="caption">Secure Login</span></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td>Username:</td></tr>
<tr><td><input type="text" name="uname" required></td> </tr>
<tr><td>Password:</td></tr>
<tr><td><input type="password" name="pwd" required></td></tr>
<tr><td class="button1"><input type="submit" name="submitBtn" value="Log In" class="button"></td></tr>
</table>
</form>
</div>
<div class="image">
<img src="home.jpg" height="100%" width="100%"/>
<div class="text">
<a href="safeonlinebanking.php"><h3>Click to read safe online banking tips</h3></a>
<a href="t&c.php"><h3>Terms and conditions</h3></a>
<a href="faq.php"><h3>FAQ'S</h3></a>
</div>
</div>
<div class="left_panel">
<p>Our internet banking portal provides personal banking services that gives you complete control over all your banking demands online.</p>
<h3>Features</h3>
<ul>
<li>Registration for online banking</li>
<li>Adding Beneficiary account</li>
<li>Funds Transfer</li>
<li>Last Login record</li>
<li>Mini Statement</li>
<li>ATM and Cheque Book</li>
<li>Staff approval Feature</li>
<li>Account Statement by date</li>
</ul>
</div>
<div class="right_panel">
<h3>PERSONAL BANKING</h3>
<ul>
<li>Personal Banking application provides features to administer and manage non personal accounts online.</li>
<li>Phishing is a fraudulent attempt, usually made through email, phone calls, SMS etc seeking your personal and confidential information.</li>
<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>
<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>
</ul>
</div>
<?php include 'footer.php' ?>