Fix hardcoded logfile path in article-flat.php

This commit is contained in:
Retro_Guy 2021-07-23 09:32:52 +00:00
parent fd8e56db5a
commit cd2da9952a
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
include "$file_newsportal";
$logfile=$logdir.'/newsportal.log';
$accessfile=$logdir.'/access.log';
throttle_hits();
// register parameters
@ -33,7 +34,7 @@
// $_SESSION['return_page'] = $location.'#'.$hash[1];
$_SESSION['return_page'] = $location.'#'.$id;
file_put_contents('/var/spool/rslight/log/access.log', "\n".format_log_date()." ".$config_name." ".$group.":".$id, FILE_APPEND);
file_put_contents($accessfile, "\n".format_log_date()." ".$config_name." ".$group.":".$id, FILE_APPEND);
if(isset($frames_on) && $frames_on === true) {
?>