Update: Formatting and code cleanup in processor and config files

This commit is contained in:
twotalesanimation
2025-12-04 16:41:10 +02:00
parent a3403bf503
commit ec563e0376
3 changed files with 6 additions and 6 deletions

View File

@@ -33,11 +33,11 @@ if (isset($_POST['signature'])) {
// Create a file path for the signature image
$fileName = 'signature_' . $user_id . '.png';
$filePath = $rootPath . '/src/processors/uploads/signatures/' . $fileName;
$filePath = $rootPath . '/uploads/signatures/' . $fileName;
// Ensure the directory exists
if (!is_dir($rootPath . '/src/processors/uploads/signatures')) {
mkdir($rootPath . '/src/processors/uploads/signatures', 0777, true);
if (!is_dir($rootPath . '/uploads/signatures')) {
mkdir($rootPath . '/uploads/signatures', 0777, true);
}
// Save the image file
@@ -49,7 +49,7 @@ if (isset($_POST['signature'])) {
}
// Store relative path for HTML display
$display_path = 'src/processors/uploads/signatures/' . $fileName;
$display_path = '/uploads/signatures/' . $fileName;
// Update the signature and indemnity acceptance in the membership application table
$stmt = $conn->prepare("UPDATE membership_application SET sig = ?, accept_indemnity = 1 WHERE user_id = ?");