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