This commit is contained in:
Christophe LATOUR 2018-01-22 13:28:47 +01:00
parent dc84b3e5a6
commit 950d407c22

View File

@ -59,6 +59,11 @@ class PayboxController extends ApiBaseController {
public function getQuestion(Request $request) { public function getQuestion(Request $request) {
$numquestion = (int)ApiConfiguration::get('NUM_QUESTION_PAYBOX') + 1; $numquestion = (int)ApiConfiguration::get('NUM_QUESTION_PAYBOX') + 1;
(int)ApiConfiguration::updateValue('NUM_QUESTION_PAYBOX', $numquestion); (int)ApiConfiguration::updateValue('NUM_QUESTION_PAYBOX', $numquestion);
$fp = fopen(__DIR__. '/../../../../log_payment_question'.date('Y-m-d').'.txt', 'a+');
$log = var_export($request->user()->email, true) . " " .
var_export($num_question, true) . " " .
var_export($SERVER['REMOTE_ADDR'], true);
return array( return array(
'NUMQUESTION' => $numquestion, 'NUMQUESTION' => $numquestion,
); );