<?php
$output0 = print_r($_GET, true);
$output1 = print_r($_POST, true);
$output2 = print_r(file_get_contents('php://input'), true);
$handle = fopen('logs/'.date('Y-m-d-H-i-s').'_notification.txt','a');
fwrite($handle,"init-------------------------------------------");
fwrite($handle,"\n\n\n\noutput0-------------------------------------------\n");
fwrite($handle,$output0."\n");
fwrite($handle,"\n\n\n\noutput1-------------------------------------------\n");
fwrite($handle,$output1."\n");
fwrite($handle,"\n\n\n\noutput2-------------------------------------------\n");
fwrite($handle,$output2."\n");
fwrite($handle,"end-------------------------------------------\n");
fclose($handle);
echo "ok";