Fix #5

parent 3664862a
......@@ -291,6 +291,8 @@ class Core{
public function echoWithLog($string){
echo($string);
file_put_contents("log/".date("d-m-Y").".txt",date("h:i:sa")." : ".$_SERVER["REQUEST_URI"]."\r".$string."\r",FILE_USE_INCLUDE_PATH | FILE_APPEND);
if($GLOBALS["logEnabled"]){
file_put_contents("log/".date("d-m-Y").".txt",date("h:i:sa")." : ".$_SERVER["REQUEST_URI"]."\r".$string."\r",FILE_USE_INCLUDE_PATH | FILE_APPEND);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment