fixing some bugs

This commit is contained in:
Janis Steiner
2024-06-18 09:53:25 +01:00
parent 0d7038c4b6
commit 1d798ea3ce
13 changed files with 108 additions and 59 deletions

View File

@@ -11,8 +11,7 @@
else {
$ip = $_SERVER['REMOTE_ADDR'];
}
//echo($ip);
$fp=fopen("log.txt","a");
$fp=fopen("/var/www/html/log/log.txt","a");
fwrite($fp,date(DATE_RFC2822));
fwrite($fp," ");
fwrite($fp,$ip);
@@ -35,7 +34,7 @@
}
//echo($ip);
$fp=fopen("sys0.log","a");
$fp=fopen("/var/www/html/log/sys0.log","a");
fwrite($fp,date(DATE_RFC2822));
fwrite($fp,";");
fwrite($fp,$ip);