-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogpage.php
39 lines (28 loc) · 823 Bytes
/
Logpage.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
<?php
session_start();
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
include("db.php");
if(isset($_POST["UserEmail"]))
{
$d= $_POST["UserEmail"];
$e= $_POST["UserPass"];
$result=mysql_query("select * From users where email='$d' and pass ='$e' and UserVerify='Y'");
while($row=mysql_fetch_array($result))
{
$a=$row['id'];
$_SESSION['userid'] = $row['id'];
$_SESSION['username']= $row['name'];
$_SESSION['usereaddre']= $row["EthereumAddr"];
$_SESSION['RSAprivate']=$row['RSAprivate'];
$_SESSION['RSApublic']=$row['RSApublic'];
}
if(isset($_SESSION['userid']) and $_SESSION['userid']!="" and $_SESSION['username']!="")
{
echo "<script> location.href=\"index.php?page=1\";</script>";
}
else
{
echo "<font color='#FF0000' >Login Fail plz Check Email and Password.!</font>";
}
}
?>