diff --git a/rqdeal/index.php b/rqdeal/index.php index 0b9eec4..7f8c40a 100644 --- a/rqdeal/index.php +++ b/rqdeal/index.php @@ -1175,9 +1175,9 @@ if(empty(mysqli_fetch_array($result))){ } //Output the site logs. -$logs="[GEMCAPI-RQDEAL-1][".date('Y-m-d H:i:d')."][HOST:".$_SERVER['HTTP-HOST']."][IP:"$_SERVER['HTTP_X_FORWARDED_FOR']."][PRO:".$pro."][GET:path=".$_GET['path']."&type=".$_GET['type']."]" -$fd = fopen("logs/".date('Y-m-d'),'a'); -fwrite($fd,$logs; +$logs="[GEMCAPI-RQDEAL-1][".date('Y-m-d H:i:d')."][HOST:".$_SERVER['HTTP_HOST']."][IP:".$_SERVER['HTTP_X_FORWARDED_FOR']."][PRO:".$pro."][GET:path=".$_GET['path']."&type=".$_GET['type']."]\n"; +$fd = fopen("logs/".date('Y-m-d').".txt",'a'); +fwrite($fd,$logs); fclose($fd); mysqli_close($link);//Close the link with database. \ No newline at end of file