mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-26 02:02:15 +01:00
30 lines
985 B
PHP
30 lines
985 B
PHP
<?php
|
|
use Afup\Site\Forum\Inscriptions;
|
|
|
|
require_once '../../include/prepend.inc.php';
|
|
require_once dirname(__FILE__) . '/../../../sources/Afup/Bootstrap/_Common.php';
|
|
|
|
|
|
$forum_inscriptions = new Inscriptions($bdd);
|
|
$forum_facturation = new \Afup\Site\Forum\Facturation($bdd);
|
|
$forumEvent = new \Afup\Site\Forum\Forum($bdd);
|
|
$incriptionType = new \Afup\Site\Forum\InscriptionType();
|
|
|
|
$query = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY); // Should be like http://event.afup.org/paiement-confirme?cmd=F201610-0707-CCMBE-68287
|
|
parse_str($query); // Should contains cmd=XXXX
|
|
|
|
if (isset($cmd) === false) {
|
|
die;
|
|
}
|
|
|
|
$inscriptions = $forum_inscriptions->getRegistrationsByReference($cmd);
|
|
$invoice = $forum_facturation->obtenir($cmd);
|
|
$event = $forumEvent->obtenir($invoice['id_forum']);
|
|
|
|
echo $twig->render('paiement/payment_tracking.html.twig', [
|
|
'inscriptions' => $inscriptions,
|
|
'invoice' => $invoice,
|
|
'inscriptionType' => $incriptionType,
|
|
'event' => $event
|
|
]);
|