'.htmlentities($result).''; } } public static function getLogPath($filename, $create = false) { $reportPath = ACYC_LOGS_FOLDER.$filename; $reportPath = File::cleanPath(ACYC_ROOT.trim(html_entity_decode($reportPath))); if ($create) FileService::createDir(dirname($reportPath), true, true); return $reportPath; } public static function logMessage($file, $message) { $reportPath = self::getLogPath($file, true); $lr = "\r\n"; file_put_contents( $reportPath, $lr.DateService::getDate(time()).' - '.$message, FILE_APPEND ); } }