X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment.php;h=52dd453572c1942adef005861fa9a41f7b92dcc6;hb=46ca73eadbd598ee219bdc48724e14c8c08b40ef;hp=f9cc6c6394cfb07822a2bb7bd6ace02e7581d89d;hpb=81120a6fae8573d4d333ab9009f57efa81b55c7e;p=platal.git diff --git a/modules/payment.php b/modules/payment.php index f9cc6c6..52dd453 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -1,6 +1,6 @@ assign('meth', $meth); $page->assign('pay', $pay); $page->assign('evtlink', $pay->event()); + $page->assign('sex', S::user()->isFemale()); } - function handler_cyber_return(&$page, $uid = null) + function handler_cyber_return($page, $uid = null) { /* reference banque (numero de transaction) */ $champ901 = Env::s('CHAMP901'); @@ -252,7 +253,7 @@ class PaymentModule extends PLModule /* on genere le mail de confirmation */ $conf_text = str_replace( - array('', '', '', '', '', '', 'comment>'), + array('', '', '', '', '', '', ''), array($user->firstName(), $user->lastName(), $user->promo(), $montant, $user->isFemale() ? 'Chère' : 'Cher', $user->isFemale() ? 'Chère' : 'Cher', Env::v('comment')), $conf_text); @@ -282,7 +283,7 @@ class PaymentModule extends PLModule exit; } - function handler_cyber2_return(&$page, $uid = null) + function handler_cyber2_return($page, $uid = null) { global $globals, $platal; @@ -380,7 +381,7 @@ class PaymentModule extends PLModule exit; } - function handler_paypal_return(&$page, $uid = null) + function handler_paypal_return($page, $uid = null) { $page->changeTpl('payment/retour_paypal.tpl'); @@ -476,7 +477,7 @@ class PaymentModule extends PLModule $page->assign('erreur', $erreur); } - function handler_xnet_payment(&$page, $pid = null) + function handler_xnet_payment($page, $pid = null) { global $globals; @@ -588,7 +589,7 @@ class PaymentModule extends PLModule $page->assign('event', $event); } - function handler_admin(&$page, $action = 'list', $id = null) { + function handler_admin($page, $action = 'list', $id = null) { $page->setTitle('Administration - Paiements'); $page->assign('title', 'Gestion des télépaiements'); $table_editor = new PLTableEditor('admin/payments','payments','id'); @@ -611,7 +612,7 @@ class PaymentModule extends PLModule $table_editor->apply($page, $action, $id); } - function handler_adm_transactions(&$page, $payment_id = null, $action = "list", $id = null) { + function handler_adm_transactions($page, $payment_id = null, $action = "list", $id = null) { // show transactions. FIXME: should not be modifiable $page->setTitle('Administration - Paiements - Transactions'); $page->assign('title', "Liste des transactions pour le paiement {$payment_id}"); @@ -625,7 +626,7 @@ class PaymentModule extends PLModule $page->assign('readonly', 'readonly'); // don't show modification features } - function handler_adm_bankaccounts(&$page, $action = 'list', $id = null) { + function handler_adm_bankaccounts($page, $action = "list", $id = null) { // managment of bank account used for money transfert $page->setTitle('Administration - Paiements - RIBs'); $page->assign('title', "Liste des RIBs"); @@ -646,7 +647,7 @@ class PaymentModule extends PLModule $table_editor->apply($page, $action, $id); } - function handler_adm_methods(&$page, $action = 'list', $id = null) { + function handler_adm_methods($page, $action = "list", $id = null) { // show and edit payment methods $page->setTitle('Administration - Paiements - Méthodes'); $page->assign('title', 'Méthodes de paiement'); @@ -654,7 +655,7 @@ class PaymentModule extends PLModule $table_editor->apply($page, $action, $id); } - function handler_adm_reconcile(&$page, $step = 'list', $param = null) { + function handler_adm_reconcile($page, $step = 'list', $param = null) { // reconciles logs with transactions // FIXME: the admin is considered to be fair => he doesn't hack the $step value, nor other params $page->setTitle('Administration - Paiements - Réconciliations'); @@ -721,7 +722,7 @@ class PaymentModule extends PLModule } } - function handler_adm_importlogs(&$page, $step, $param = null) { + function handler_adm_importlogs($page, $step, $param = null) { $page->setTitle('Administration - Paiements - Réconciliations'); $page->changeTpl('payment/reconcile.tpl'); $page->assign('step', $step); @@ -893,7 +894,7 @@ class PaymentModule extends PLModule } } - function handler_adm_transfers(&$page, $action = null, $id = null) { + function handler_adm_transfers($page, $action = null, $id = null) { // list/log all bank transfers and link them to individual transactions if (Post::has('generate')) {