mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-10 03:30:08 +01:00
rename thanks.php to recapitulatif.php in admin and partage
This commit is contained in:
1 parent
4d88bd8cc5
commit
aca7e7eef8
9 files changed
+18
-13
No files matched your search
@@ -5,7 +5,7 @@
|
||||
* Routes:
|
||||
* /partage/<slug> — Render the share-link form (or password gate)
|
||||
* /partage/<slug>/submit — POST endpoint for form submissions via share link
|
||||
* /partage/thanks.php?id=N — Post-submission confirmation page
|
||||
* /partage/recapitulatif.php?id=N — Post-submission confirmation page
|
||||
*/
|
||||
require_once __DIR__ . '/../../bootstrap.php';
|
||||
|
||||
@@ -21,10 +21,10 @@ $parts = explode('/', $path);
|
||||
$slug = $parts[0] ?? '';
|
||||
$action = $parts[1] ?? '';
|
||||
|
||||
// Special route: /partage/thanks?id=N
|
||||
if ($slug === 'thanks' || $slug === 'thanks.php') {
|
||||
// Special route: /partage/recapitulatif?id=N
|
||||
if ($slug === 'recapitulatif' || $slug === 'recapitulatif.php') {
|
||||
App::boot();
|
||||
require_once __DIR__ . '/thanks.php';
|
||||
require_once __DIR__ . '/recapitulatif.php';
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@ function handleShareLinkSubmission(string $slug): void
|
||||
$_SESSION['share_email_sent'] = $emailSent;
|
||||
|
||||
// Redirect to thanks page
|
||||
header('Location: /partage/thanks?id=' . urlencode((string)$thesisId));
|
||||
header('Location: /partage/recapitulatif?id=' . urlencode((string)$thesisId));
|
||||
exit();
|
||||
} catch (Exception $e) {
|
||||
$logger->logError('partage', $e->getMessage(), [
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user