updated CSRF tokens

This commit is contained in:
twotalesanimation
2025-12-03 13:26:57 +02:00
parent 3247d15ce7
commit 7b1c20410c
8 changed files with 9 additions and 2 deletions

View File

@@ -101,6 +101,7 @@ $user = $result->fetch_assoc();
<input type="email" id="email" name="email" class="form-control" value="<?php echo $user['email']; ?>" required> <input type="email" id="email" name="email" class="form-control" value="<?php echo $user['email']; ?>" required>
</div> </div>
</div> </div>
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group mb-0"> <div class="form-group mb-0">
<button type="submit" class="theme-btn style-two" style="width:100%;">Update Info</button> <button type="submit" class="theme-btn style-two" style="width:100%;">Update Info</button>
@@ -113,6 +114,7 @@ $user = $result->fetch_assoc();
<!-- Change Password Form --> <!-- Change Password Form -->
<form id="changePasswordForm" name="changePasswordForm" action="change_password.php" method="post"> <form id="changePasswordForm" name="changePasswordForm" action="change_password.php" method="post">
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<div class="col-md-12 mt-20"> <div class="col-md-12 mt-20">
<h4>Change Password</h4> <h4>Change Password</h4>
<div id="responseMessage2"></div> <!-- Message display area --> <div id="responseMessage2"></div> <!-- Message display area -->

View File

@@ -169,6 +169,7 @@ if (!empty($bannerImages)) {
<label for="agreeCheckbox" id="agreeLabel" style="color: #888;">I have read and agree to the indemnity terms</label> <label for="agreeCheckbox" id="agreeLabel" style="color: #888;">I have read and agree to the indemnity terms</label>
</div> </div>
</div> </div>
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<?php <?php
$button_text = "Book Now"; $button_text = "Book Now";
$button_disabled = ""; $button_disabled = "";

View File

@@ -123,6 +123,7 @@ checkUserSession();
<?php endif ?> <?php endif ?>
<h6>Total: <span id="booking_total" class="price">-</span></h6> <h6>Total: <span id="booking_total" class="price">-</span></h6>
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<button type="submit" class="theme-btn style-two w-100 mt-15 mb-5"> <button type="submit" class="theme-btn style-two w-100 mt-15 mb-5">
<span data-hover="Book Now">Book Now</span> <span data-hover="Book Now">Book Now</span>
<i class="fal fa-arrow-right"></i> <i class="fal fa-arrow-right"></i>

View File

@@ -175,6 +175,7 @@ if (!empty($bannerImages)) {
<label for="agreeCheckbox" id="agreeLabel" style="color: #888;">I have read and agree to the indemnity terms</label> <label for="agreeCheckbox" id="agreeLabel" style="color: #888;">I have read and agree to the indemnity terms</label>
</div> </div>
</div> </div>
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<?php <?php
$button_text = "Book Now"; $button_text = "Book Now";
$button_disabled = ""; $button_disabled = "";

View File

@@ -32,6 +32,7 @@
</div> </div>
</div> </div>
</div> </div>
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group mb-0"> <div class="form-group mb-0">
<button type="submit" class="theme-btn style-two" style="width:100%;">Send Link</button> <button type="submit" class="theme-btn style-two" style="width:100%;">Send Link</button>

View File

@@ -80,7 +80,7 @@ $login_url = $client->createAuthUrl();
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group mb-0"> <div class="form-group mb-0">
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<button type="submit" class="theme-btn style-two" style="width:100%;">Log In</button> <button type="submit" class="theme-btn style-two" style="width:100%;">Log In</button>
</div> </div>
</div> </div>

View File

@@ -83,7 +83,7 @@
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group mb-0"> <div class="form-group mb-0">
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<button type="submit" class="theme-btn style-two" style="width:100%;">Register</button> <button type="submit" class="theme-btn style-two" style="width:100%;">Register</button>
<div id="msgSubmit" class="hidden"></div> <div id="msgSubmit" class="hidden"></div>
</div> </div>

View File

@@ -543,6 +543,7 @@ $conn->close();
</div> </div>
</div> </div>
<h6>Total: <span id="booking_total" class="price">-</span></h6> <h6>Total: <span id="booking_total" class="price">-</span></h6>
<input type="hidden" name="csrf_token" value="<?php echo generateCSRFToken(); ?>">
<?php if ($remaining_places < 1): ?> <?php if ($remaining_places < 1): ?>
<button type="button" class="theme-btn style-two w-100 mt-15 mb-5" disabled> <button type="button" class="theme-btn style-two w-100 mt-15 mb-5" disabled>
<span>FULLY BOOKED</span> <span>FULLY BOOKED</span>