File Manager

Path: /home/liffinac1/domains/fxinvestcapital.us/public_html/

Viewing File: processlogin.php

<?php
session_start();

$_SESSION['start'] = time(); // Taking now logged in time.
            // Ending a session in 1 minutes from the starting time.
$_SESSION['expire'] = ($_SESSION['start'] + (2 * 60));

require('db.php');

?>
<?php
	  
$username =$_REQUEST['username'];
$password =$_REQUEST['password'];

$sqlQuery = "SELECT * FROM  users WHERE uname='$username' AND password='$password'";


$result = mysqli_query($db, $sqlQuery);
$countrecord = mysqli_num_rows($result);

if($countrecord==1)

{

    $fetch = mysqli_fetch_assoc($result);

$i = 0;
$_SESSION['varfname'] = $fetch["fname"];
$_SESSION['varuname'] = $fetch["uname"];
$_SESSION['varemail'] = $fetch["email"];
$_SESSION['varvpin'] = $fetch["vpin"];
$_SESSION['varcurrency'] = $fetch["currency"];
$_SESSION['varpassword'] = $fetch["password"];
$_SESSION['varcountry'] = $fetch["country"];
$_SESSION['varsecquestion'] = $fetch["secquestion"];
$_SESSION['varsecanswer'] = $fetch["secanswer"];
$_SESSION['vartdate'] = $fetch["tdate"];
$_SESSION['vartearn'] = $fetch["tearn"];
$_SESSION['varadeposit'] = $fetch["adeposit"];
$_SESSION['varbal'] = $fetch["bal"];
$_SESSION['vartwithdrawal'] = $fetch["twithdrawal"];
$_SESSION['varldeposit'] = $fetch["ldeposit"];
$_SESSION['vartdeposit'] = $fetch["tdeposit"];
$_SESSION['varlwithdrawal'] = $fetch["lwithdrawal"];
$_SESSION['varpwithdrawal'] = $fetch["pwithdrawal"];
$_SESSION['varpstarter'] = $fetch["pstarter"];
$_SESSION['varpsilver'] = $fetch["psilver"];
$_SESSION['varpgold'] = $fetch["pgold"];
$_SESSION['vartranx1'] = $fetch["tranx1"];
$_SESSION['vartranx2'] = $fetch["tranx2"];
$_SESSION['vartranx3'] = $fetch["tranx3"];
$_SESSION['vardwallet'] = $fetch["dwallet"];
$_SESSION['varewallet'] = $fetch["ewallet"];
$_SESSION['varownwallet'] = $fetch["ownwallet"];
$_SESSION['varip'] = $fetch["ip"];

// Site Information

$_SESSION['LOGO-A'] = $siteLogoA;
$_SESSION['LOGO-B'] = $siteLogoB;
$_SESSION['SITE-NAME'] = $siteName;
$_SESSION['SITE-URL'] = $siteUrl;
$_SESSION['SITE-MAIL'] = $siteEmail;
$_SESSION['SITE-ICON'] = htmlspecialchars($siteUrl . str_replace('..', '', $siteIcon));
$_SESSION['W-BTC'] = $walletBTC;
$_SESSION['W-ETH'] = $walletETH;



require("dashboard.php");

}else {


require("invalidlogin.php");

}
?>