Update: Formatting and code cleanup in processor and config files
This commit is contained in:
@@ -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 = ?");
|
||||
|
||||
Reference in New Issue
Block a user