forked from ramstram/Deal4loans
-
Notifications
You must be signed in to change notification settings - Fork 1
/
100nestslogin.php
162 lines (141 loc) · 4.57 KB
/
100nestslogin.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
require 'scripts/db_init.php';
require 'scripts/functions.php';
session_start();
$Msg = "";
if ($_SERVER['REQUEST_METHOD'] == 'POST')
formHandler();
function formHandler(){
foreach($_POST as $a=>$b)
$$a=$b;
//echo $sql = "select * from Bidders where Email='$Email' and PWD='$PWD' and Is_Verified>1";
$result = ExecQuery("select * from Bidders where Email='$Email' and PWD='$PWD' and BidderID=1418");
$num_rows = mysql_num_rows($result);
$_SESSION['ReplyType']=" ";
if($num_rows > 0){
/* Get Resultset */
$row = mysql_fetch_array($result);
/* Create Session Variables */
setSessionBidder($Email, $row);
// echo $sql = "Select Reply_Type,Dated from Bidders_List where BidderID='".$_SESSION['BidderID']."'";
mysql_free_result($result);
$IP = getenv("REMOTE_ADDR");
// echo $_SESSION['ReplyType'];
/* Redirect browser */
$strDir = dir_name();
header("Location: http://".$_SERVER['HTTP_HOST'].$strDir."100nests_lms_pl.php");
// header("Location: http://".$_SERVER['HTTP_HOST'].$strDir."100nests_index.php");
exit;
}
else{
global $Msg;
$Msg = "** Invalid Email. Please try again **";
}
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1252">
<title>Login(Bidder)</title>
<script Language="JavaScript" Type="text/javascript" src="scripts/common.js"></script>
<link href="includes/style1.css" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css" />
<style>
.bidderclass
{
Font-family:Comic Sans MS;
font-size:13px;
}
.style1 {
font-family: verdana;
font-size: 12px;
font-weight: bold;
color:#084459;
}
</style>
<Script Language="JavaScript">
function validateMe(theFrm){
if(!checkData(theFrm.Email, 'Email', 4))
{
return false;
}
var str=theFrm.Email.value
var aa=str.indexOf("@")
var bb=str.indexOf(".")
var cc=str.charAt(aa)
if(aa==-1)
{
alert("Please enter the valid Email Address");
theFrm.Email.focus();
return false;
}
else if(bb==-1)
{
alert("Please enter the valid Email Address");
theFrm.Email.focus();
return false;
}
if(!checkData(theFrm.PWD, 'Password', 3))
return false;
return true;
}
</Script>
<body style="margin:0px; padding:0px; background-color:#45B2D8;">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse" valign="top">
<tr bgcolor="#FFFFFF">
<Td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="323" height="93" align="left" valign="top"><img src="images/login-logo.gif" width="323" height="93" /></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="67" align="right" bgcolor="#C6E3F2"> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></Td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center">
</td>
</tr>
<tr>
<td bgcolor="#45B2D8" ><table width="361" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="361" height="43" align="center" valign="middle"><img src="images/login-form-topshine-bg.gif" width="361" height="43"></td>
</tr>
<tr>
<td height="156" align="center" valign="middle" background="images/login-form-login-bg.gif"><form method="post" action="<? echo $_SERVER['PHP_SELF'] ?>" onSubmit="return validateMe(this);">
<table width="250" border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="2" align="center" id="Alert"> <span class="bodyarial11"><? echo $Msg ?></span></td>
</tr>
<tr>
<td width="100%" class="style1">Email</td>
<td width="100%"><input type="text" name="Email" size="20" maxlength="50"></td>
</tr>
<tr>
<td width="100%" class="style1">Password</td>
<td width="100%"><input type="password" name="PWD" size="20" maxlength="50"></td>
</tr>
<tr>
<td width="100%" colspan="2" align="center"><input name="submit" type="image" src="images/login-form-lgn-sbtn.gif" style="width:111px; height:35px; border:none;"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td width="361" height="70" align="center" valign="middle"><img src="images/login-form-bot-shine-bg.jpg" width="361" height="70"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>