if (REQUEST_ISSET_GET('access')) {
// Secure input and construct FQFN
$access = SQL_ESCAPE(strip_tags(REQUEST_GET('access')));
- $target = sprintf("%slogs/%s", constant('PATH'), $access);
+ $target = sprintf("%slogs/%s", getConfig('PATH'), $access);
// Is the file valid and readable?
if (isFileReadable($target)) {
}
} else {
// Is the directory there?
- if (isDirectory(constant('PATH') . getConfig('logs_base'))) {
+ if (isDirectory(getConfig('PATH') . getConfig('logs_base'))) {
// Logs directory does exist so begin the list
OUTPUT_HTML('<ol>');
$file = basename($file);
// Okay, add it
- OUTPUT_HTML("<li><a href=\"{!URL!}/modules.php?module=admin&what=".getWhat()."&access=".urlencode($file)."\">".$file."</a></li>");
+ OUTPUT_HTML("<li><a href=\"{?URL?}/modules.php?module=admin&what=".getWhat()."&access=".urlencode($file)."\">".$file."</a></li>");
} // END - foreach
// Finish list