From ebc0007069b1c51536774dd122a3933a356b994d Mon Sep 17 00:00:00 2001 From: Juthatip McDevitt Date: Sun, 23 Jun 2024 10:57:59 -0500 Subject: [PATCH] updated git ignore and created email confirmation page --- hotel_booking/.gitignore | 4 +++- hotel_booking/email_confirm.php | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 hotel_booking/email_confirm.php diff --git a/hotel_booking/.gitignore b/hotel_booking/.gitignore index c998c5f..a183f70 100644 --- a/hotel_booking/.gitignore +++ b/hotel_booking/.gitignore @@ -1,3 +1,5 @@ images/* admin/components/db_config.php -admin/components/api.php \ No newline at end of file +admin/components/api.php +ajax/login_register.php +components/sendgrid/* \ No newline at end of file diff --git a/hotel_booking/email_confirm.php b/hotel_booking/email_confirm.php new file mode 100644 index 0000000..3d1ff84 --- /dev/null +++ b/hotel_booking/email_confirm.php @@ -0,0 +1,27 @@ +alert('Your email is already verified.')"; + } else{ + $update = update("UPDATE `user_creds` SET `is_verified`=? WHERE `id`=?", [1, $fetch['id']], 'ii'); + if($update){ + echo ""; + } else{ + echo ""; + } + } + redirect('index.php'); + } else{ + echo ""; + redirect('index.php'); + } + } +?> \ No newline at end of file