diff --git a/src/config/functions.php b/src/config/functions.php index 9c71a42d..08b9d552 100644 --- a/src/config/functions.php +++ b/src/config/functions.php @@ -2780,7 +2780,7 @@ function url($page) { 'google_validate_login' => '/src/api/google_validate_login.php', // Processors - 'validate_login' => '/src/processors/validate_login.php', + 'validate_login' => '/validate_login.php', 'register_user' => '/src/processors/register_user.php', 'process_application' => '/src/processors/process_application.php', 'process_booking' => '/src/processors/process_booking.php', diff --git a/src/processors/process_signature.php b/src/processors/process_signature.php index 559571bc..9ff21efb 100644 --- a/src/processors/process_signature.php +++ b/src/processors/process_signature.php @@ -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 = ?"); diff --git a/src/processors/submit_pop.php b/src/processors/submit_pop.php index f2719db7..ee46a450 100644 --- a/src/processors/submit_pop.php +++ b/src/processors/submit_pop.php @@ -38,7 +38,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { exit; } - $target_dir = $rootPath . "/src/processors/uploads/pop/"; + $target_dir = $rootPath . "/uploads/pop/"; // Use EFT ID as filename instead of random filename $filename = $eft_id . '.pdf'; $target_file = $target_dir . $filename;