@@ 32-39 (lines=8) @@ | ||
29 | $gateway = Oledrion_gateways::getCurrentGateway(); |
|
30 | $temporaryGateway = null; |
|
31 | $temporaryGateway = Oledrion_gateways::getGatewayObject(); |
|
32 | if (is_object($temporaryGateway)) { |
|
33 | if (!file_exists(OLEDRION_GATEWAY_LOG_PATH)) { |
|
34 | file_put_contents(OLEDRION_GATEWAY_LOG_PATH, '<?php exit(); ?>'); |
|
35 | } |
|
36 | $user_log = $temporaryGateway->gatewayNotify(OLEDRION_GATEWAY_LOG_PATH); |
|
37 | unset($temporaryGateway); |
|
38 | echo $user_log; |
|
39 | } |
|
40 |
@@ 34-40 (lines=7) @@ | ||
31 | // On donne la possibilité à la passerelle de traiter la commande |
|
32 | $gateway = null; |
|
33 | $gateway = Oledrion_gateways::getGatewayObject(); |
|
34 | if (is_object($gateway) && method_exists($gateway, 'thankYou')) { |
|
35 | if (!file_exists(OLEDRION_GATEWAY_LOG_PATH)) { |
|
36 | file_put_contents(OLEDRION_GATEWAY_LOG_PATH, '<?php exit(); ?>'); |
|
37 | } |
|
38 | $gateway->thankYou(OLEDRION_GATEWAY_LOG_PATH); |
|
39 | unset($gateway); |
|
40 | } |
|
41 | $xoopsTpl->assign('success', $success); |
|
42 | $xoopsTpl->assign('global_advert', OledrionUtility::getModuleOption('advertisement')); |
|
43 | $xoopsTpl->assign('breadcrumb', OledrionUtility::breadcrumb(array(OLEDRION_URL . basename(__FILE__) => _OLEDRION_PURCHASE_FINSISHED))); |