Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/cacti/files/patch-utilities.php
--- utilities.php.orig 2017-04-26 00:30:09 UTC | --- utilities.php.orig 2017-06-05 03:49:49 UTC | ||||
+++ utilities.php | +++ utilities.php | ||||
@@ -872,7 +872,7 @@ function utilities_view_logfile() { | @@ -877,7 +877,7 @@ function utilities_view_logfile() { | ||||
$logfile = read_config_option('path_cactilog'); | $logfile = $requestedFile; | ||||
} | |||||
if ($logfile == '') { | } elseif ($logfile == '') { | ||||
- $logfile = $config['base_path'] . '/log/cacti.log'; | - $logfile = $config['base_path'] . '/log/cacti.log'; | ||||
+ $logfile = '/var/log/cacti/log'; | + $logfile = '/var/log/cacti/log'; | ||||
} | } | ||||
/* helps determine output color */ | /* ================= input validation and session storage ================= */ | ||||
@@ -1155,7 +1155,7 @@ function utilities_clear_logfile() { | @@ -1194,7 +1194,7 @@ function utilities_clear_logfile() { | ||||
$logfile = read_config_option('path_cactilog'); | $logfile = read_config_option('path_cactilog'); | ||||
if ($logfile == '') { | if ($logfile == '') { | ||||
- $logfile = './log/cacti.log'; | - $logfile = './log/cacti.log'; | ||||
+ $logfile = '/var/log/cacti/log'; | + $logfile = '/var/log/cacti/log'; | ||||
} | } | ||||
html_start_box(__('Clear Cacti Log'), '100%', '', '3', 'center', ''); | html_start_box(__('Clear Cacti Log'), '100%', '', '3', 'center', ''); |