if (!empty($_GET['access'])) {
// Secure input and construct FQFN
$access = SQL_ESCAPE(strip_tags($_GET['access']));
- $target = sprintf("%slogs/%s", PATH, $access);
+ $target = sprintf("%slogs/%s", constant('PATH'), $access);
// Is the file valid and readable?
if (FILE_READABLE($target)) {