| Server IP : 104.21.21.239 / Your IP : 216.73.216.68 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/mitzvahm/planner/mod/ |
Upload File : |
<?php include('_mod_security.php'); ?>
<?php
$_SESSION['login_token1'] = mt_rand();
$_SESSION['login_token2'] = mt_rand();
$salt = '';
$salt2 = '';
$sql = "SELECT * FROM users WHERE email = '".mysqli_real_escape_string($GLOBALS['con'], $_GET['email'])."' AND active = 1";
//echo '==='.$sql.'===';
//$result = mysqli_query($GLOBALS['con'], $sql) or die('Database Error!');
$result = mysqli_query($GLOBALS['con'], $sql);
if (mysqli_num_rows($result) > 0) :
$row = mysqli_fetch_object($result);
if (empty($row->salt)) :
$salt2 = hash('sha512', random_bytes(64));
else :
$salt = $row->salt;
endif;
endif;
echo json_encode(array('token1' => $_SESSION['login_token1'], 'token2' => $_SESSION['login_token2'], 'salt' => $salt, 'salt2' => $salt2));
?>