This commit is contained in:
root 2018-01-22 14:24:30 +01:00
commit 63ec80f713

View File

@ -59,6 +59,13 @@ class PayboxController extends ApiBaseController {
public function getQuestion(Request $request) {
$numquestion = (int)ApiConfiguration::get('NUM_QUESTION_PAYBOX') + 1;
(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($numquestion, true) . " " .
var_export($_SERVER['REMOTE_ADDR'], true) . "\n\n";
fwrite($fp, $log);
fclose($fp);
return array(
'NUMQUESTION' => $numquestion,
);