From 6bf672a8466463fbb31aab551870a6e4edbaa1b9 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 26 May 2017 14:47:37 +0200 Subject: [PATCH 1/2] Added changes --- pandora_console/extensions/pandora_logs.php | 10 ++++---- .../godmode/setup/setup_general.php | 24 +++++++++++-------- pandora_console/include/functions_config.php | 6 +++++ 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/pandora_console/extensions/pandora_logs.php b/pandora_console/extensions/pandora_logs.php index f129f7b45d..f20bcab720 100644 --- a/pandora_console/extensions/pandora_logs.php +++ b/pandora_console/extensions/pandora_logs.php @@ -39,10 +39,9 @@ function view_logfile ($file_name) { echo "

$file_name (" . __("File is too large than PHP memory allocated in the system.") . ")

"; echo "

" . __("The preview file is imposible.") . "

"; } - else if ($file_size > 512000) { - $data = file_get_contents ($file_name, false, NULL, $file_size - 512000); - echo "

$file_name (".__("File is too large (> 500KB)").")

"; - + else if ($file_size > ($config['max_log_size'] * 1000)) { + $data = file_get_contents ($file_name, false, NULL, $file_size - ($config['max_log_size'] * 1000)); + echo "

$file_name (".format_numeric(filesize ($file_name)/1024)." KB)

"; echo "