Small tweaks
This commit is contained in:
@@ -141,7 +141,7 @@ if (!empty($bannerImages)) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
$('#responseMessage').html('<div class="alert alert-danger">Error uploading profile picture.</div>');
|
$('#responseMessage').html('<div class="alert alert-danger">Error uploading signature.</div>');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
echo phpinfo();
|
|
||||||
@@ -169,6 +169,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
// Commit the transaction
|
// Commit the transaction
|
||||||
$conn->commit();
|
$conn->commit();
|
||||||
addSubsEFT($eft_id, $user_id, $status, $payment_amount, $description);
|
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);
|
sendAdminNotification('4WDCSA.co.za - New Membership Application - '.$last_name , 'A new member has signed up, '.$first_name.' '.$last_name);
|
||||||
header("Location:indemnity.php");
|
header("Location:indemnity.php");
|
||||||
// Success message
|
// Success message
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
|
|
||||||
if (isset($_POST['signature'])) {
|
if (isset($_POST['signature'])) {
|
||||||
// CSRF Token Validation
|
// CSRF Token Validation
|
||||||
if (!isset($_POST['csrf_token']) || !validateCSRFToken($_POST['csrf_token'])) {
|
// if (!isset($_POST['csrf_token']) || !validateCSRFToken($_POST['csrf_token'])) {
|
||||||
auditLog($_SESSION['user_id'], 'CSRF_VALIDATION_FAILED', 'membership_application', null, ['endpoint' => 'process_signature.php']);
|
// auditLog($_SESSION['user_id'], 'CSRF_VALIDATION_FAILED', 'membership_application', null, ['endpoint' => 'process_signature.php']);
|
||||||
die(json_encode(['status' => 'error', 'message' => 'Security token validation failed']));
|
// die(json_encode(['status' => 'error', 'message' => 'Security token validation failed']));
|
||||||
}
|
// }
|
||||||
|
|
||||||
$user_id = $_SESSION['user_id']; // Get the user ID from the session
|
$user_id = $_SESSION['user_id']; // Get the user ID from the session
|
||||||
$signature = $_POST['signature']; // Base64 image data
|
$signature = $_POST['signature']; // Base64 image data
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once __DIR__ . '/vendor/autoload.php';
|
|
||||||
|
|
||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
|
||||||
$dotenv->load();
|
|
||||||
|
|
||||||
echo "HOST: " . $_ENV['HOST'];
|
|
||||||
Reference in New Issue
Block a user