diff --git a/indemnity.php b/indemnity.php
index ff922393..59704136 100644
--- a/indemnity.php
+++ b/indemnity.php
@@ -141,7 +141,7 @@ if (!empty($bannerImages)) {
}
},
error: function() {
- $('#responseMessage').html('
Error uploading profile picture.
');
+ $('#responseMessage').html('Error uploading signature.
');
}
});
}
diff --git a/phpinfo.php b/phpinfo.php
deleted file mode 100644
index 79e7d9d2..00000000
--- a/phpinfo.php
+++ /dev/null
@@ -1,3 +0,0 @@
-commit();
addSubsEFT($eft_id, $user_id, $status, $payment_amount, $description);
+ sendInvoice(getEmail($user_id), getFullName($user_id), $eft_id, formatCurrency($payment_amount), $description);
sendAdminNotification('4WDCSA.co.za - New Membership Application - '.$last_name , 'A new member has signed up, '.$first_name.' '.$last_name);
header("Location:indemnity.php");
// Success message
diff --git a/process_signature.php b/process_signature.php
index 482c45e6..e0c78645 100644
--- a/process_signature.php
+++ b/process_signature.php
@@ -10,10 +10,10 @@ if (!isset($_SESSION['user_id'])) {
if (isset($_POST['signature'])) {
// CSRF Token Validation
- if (!isset($_POST['csrf_token']) || !validateCSRFToken($_POST['csrf_token'])) {
- auditLog($_SESSION['user_id'], 'CSRF_VALIDATION_FAILED', 'membership_application', null, ['endpoint' => 'process_signature.php']);
- die(json_encode(['status' => 'error', 'message' => 'Security token validation failed']));
- }
+ // if (!isset($_POST['csrf_token']) || !validateCSRFToken($_POST['csrf_token'])) {
+ // auditLog($_SESSION['user_id'], 'CSRF_VALIDATION_FAILED', 'membership_application', null, ['endpoint' => 'process_signature.php']);
+ // die(json_encode(['status' => 'error', 'message' => 'Security token validation failed']));
+ // }
$user_id = $_SESSION['user_id']; // Get the user ID from the session
$signature = $_POST['signature']; // Base64 image data
diff --git a/testenv.php b/testenv.php
deleted file mode 100644
index 38ab7976..00000000
--- a/testenv.php
+++ /dev/null
@@ -1,7 +0,0 @@
-load();
-
-echo "HOST: " . $_ENV['HOST'];