修复了一些小问题

This commit is contained in:
Bigsk 2020-07-24 15:12:06 +08:00 committed by Gitee
parent 044f7dda0b
commit c6b7c0e5c9

View File

@ -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.