| 1 |
<?php |
| 2 |
defined('ABSPATH') || die('Restricted Access'); |
| 3 |
|
| 4 |
function acym_getLogPath(string $filename = '', bool $create = false): string |
| 5 |
{ |
| 6 |
$reportPath = ACYM_LOGS_FOLDER.$filename; |
| 7 |
$reportPath = acym_cleanPath(ACYM_ROOT.trim(html_entity_decode($reportPath))); |
| 8 |
|
| 9 |
if ($create) { |
| 10 |
acym_createDir(dirname($reportPath), true, true); |
| 11 |
} |
| 12 |
|
| 13 |
return $reportPath; |
| 14 |
} |
| 15 |
|