From 86b90e987f16388ebf4f1ceeb8d29b3b2d9f4fc2 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 10 Mar 2011 12:49:55 +0000 Subject: [PATCH] 2011-03-10 Miguel de Dios * include/db/postgresql.php, include/db/mysql.php, include/functions_db.php: added function "get_db_type_field_table" and subfunctions for the engines. * extensions/pandora_logs.php, extenions/update_manager/lib/libupdate_manager_utils.php: fixed source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 9 ++++++++ pandora_console/extensions/pandora_logs.php | 6 ++++-- .../lib/libupdate_manager_utils.php | 5 ++++- pandora_console/include/db/mysql.php | 14 +++++++++++++ pandora_console/include/db/postgresql.php | 14 +++++++++++++ pandora_console/include/functions_db.php | 21 +++++++++++++++++++ 6 files changed, 66 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d9737e5ae4..48babd7180 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2011-03-10 Miguel de Dios + + * include/db/postgresql.php, include/db/mysql.php, include/functions_db.php: + added function "get_db_type_field_table" and subfunctions for the engines. + + * extensions/pandora_logs.php, + extenions/update_manager/lib/libupdate_manager_utils.php: fixed source code + style. + 2011-03-10 Sergio Martin * extensions/update_manager/sql/update_manager.sql diff --git a/pandora_console/extensions/pandora_logs.php b/pandora_console/extensions/pandora_logs.php index b418b8e0af..d9c1fb889a 100644 --- a/pandora_console/extensions/pandora_logs.php +++ b/pandora_console/extensions/pandora_logs.php @@ -18,11 +18,13 @@ function view_logfile ($file_name) { if (!file_exists($file_name)){ echo "

".__("Cannot find file"). "(".$file_name; echo ")

"; - } else { + } + else { if (filesize ($file_name) > 512000) { echo "

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

"; - } else { + } + else { $data = file_get_contents ($file_name); echo "

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

"; echo "