ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR/php/profile
/
home
mhhtmff
app
NH-HR
php
profile
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
change_password.php
352 B
chmod
View
DL
Edit
Rename
Delete
check_verification_code.php
878 B
chmod
View
DL
Edit
Rename
Delete
password_reset_content.php
1.12 MB
chmod
View
DL
Edit
Rename
Delete
profile_content.php
3.09 MB
chmod
View
DL
Edit
Rename
Delete
send_verification_code.php
1.22 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR/php/profile/check_verification_code.php
<?php include "../database.php"; session_start(); $otp_num_1 = $_POST["otp_num_1"]; $otp_num_2 = $_POST["otp_num_2"]; $otp_num_3 = $_POST["otp_num_3"]; $otp_num_4 = $_POST["otp_num_4"]; $otp_number = $otp_num_1 . "" . $otp_num_2 . "" . $otp_num_3 . "" . $otp_num_4; $sql_verification_code = "SELECT * FROM verification_codes WHERE email = '" . $_SESSION['email'] . "' AND code = " . $otp_number . " ORDER BY id DESC LIMIT 1"; $result_verification_code = mysqli_query($con, $sql_verification_code); if ($result_verification_code->num_rows > 0) { $verification_code = mysqli_fetch_assoc($result_verification_code); $expiration = $verification_code["expiration"]; if ($expiration > date("Y-m-d H:i:s")) { echo "ok"; } else { echo "error"; } } else { echo "error"; }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply