One Hat Cyber Team
Your IP :
216.73.216.186
Server IP :
93.127.173.57
Server :
Linux in-mum-web1837.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
u322583024
/
domains
/
jimmy2chs.in
/
public_html
/
Edit File:
login_process.php
<?php session_start(); include('connection.inc.php'); if (isset($_POST['phone']) && isset($_POST['password']) && isset($_POST['captcha_answer'])) { $phone = $_POST['phone']; $password = $_POST['password']; $captcha_answer = $_POST['captcha_answer']; // Validate the CAPTCHA if ($captcha_answer == $_SESSION['captcha_answer']) { // Check if phone exists in the database $check_sql = "SELECT * FROM members WHERE phone='$phone'"; $check_result = mysqli_query($con, $check_sql); if (mysqli_num_rows($check_result) > 0) { $row = mysqli_fetch_assoc($check_result); // Verify the password using password_verify() if (password_verify($password, $row['pass'])) { $_SESSION['USER_LOGIN'] = 'yes'; $_SESSION['USER_ID'] = $row['id']; $_SESSION['USER_NAME'] = $row['name']; $_SESSION['USER_EMAIL'] = $row['email']; $_SESSION['USER_CONTACT'] = $row['phone']; echo 'success'; } else { echo 'error'; // Incorrect password } } else { echo 'error'; // Phone number not found } } else { echo 'captcha_invalid'; // Incorrect CAPTCHA } } ?>
Simpan