From a11856ca5aacd4e5a726b7b46bd7362798b3e575 Mon Sep 17 00:00:00 2001
From: raulmateos
Date: Tue, 25 May 2010 18:09:27 +0000
Subject: [PATCH] 2010-05-25 Raul Mateos
* extensions/update_manager/lib/*.php: Updated year, clean code.
* extensions/update_manager/lib/libupdate_manager.php: Improved usability.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
pandora_console/ChangeLog | 6 +++
.../update_manager/lib/libupdate_manager.php | 40 ++++++++++++++++++-
.../lib/libupdate_manager_client.php | 2 +-
.../lib/libupdate_manager_components.php | 3 +-
.../lib/libupdate_manager_updates.php | 2 +-
.../lib/libupdate_manager_utils.php | 4 +-
.../update_manager/lib/load_updatemanager.php | 2 +-
7 files changed, 50 insertions(+), 9 deletions(-)
diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index 3d1aea0402..44cd52fed4 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-25 Raúl Mateos
+
+ * extensions/update_manager/lib/*.php: Updated year, clean code.
+
+ * extensions/update_manager/lib/libupdate_manager.php: Improved usability.
+
2010-05-24 Sancho Lerena
* group_view.php: Much nicer view of group view. Added
diff --git a/pandora_console/extensions/update_manager/lib/libupdate_manager.php b/pandora_console/extensions/update_manager/lib/libupdate_manager.php
index b22393e10a..75ff39e2c4 100644
--- a/pandora_console/extensions/update_manager/lib/libupdate_manager.php
+++ b/pandora_console/extensions/update_manager/lib/libupdate_manager.php
@@ -1,7 +1,7 @@
PEAR::DB not found. Please install it with: pear install DB
');
+ die ('
+
+
+
+
+
+
+
PEAR::DB not found
+
+

+
+
+
ERROR: PEAR::DB not found
+
+ Please install it from command line with:
+
sudo pear install DB
+
+
+
+
+
+
+');
+
error_reporting ($prev_level);
unset ($prev_level);
diff --git a/pandora_console/extensions/update_manager/lib/libupdate_manager_client.php b/pandora_console/extensions/update_manager/lib/libupdate_manager_client.php
index e8535528ea..2fde09a0a7 100644
--- a/pandora_console/extensions/update_manager/lib/libupdate_manager_client.php
+++ b/pandora_console/extensions/update_manager/lib/libupdate_manager_client.php
@@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
-// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
+// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
diff --git a/pandora_console/extensions/update_manager/lib/libupdate_manager_components.php b/pandora_console/extensions/update_manager/lib/libupdate_manager_components.php
index 888686d98f..284825d643 100644
--- a/pandora_console/extensions/update_manager/lib/libupdate_manager_components.php
+++ b/pandora_console/extensions/update_manager/lib/libupdate_manager_components.php
@@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
-// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
+// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -13,7 +13,6 @@
// GNU General Public License for more details.
-
function um_component_database_get_data ($component_db) {
$db = um_component_db_connect ();
diff --git a/pandora_console/extensions/update_manager/lib/libupdate_manager_updates.php b/pandora_console/extensions/update_manager/lib/libupdate_manager_updates.php
index 1fa89a49cb..cdb399512a 100644
--- a/pandora_console/extensions/update_manager/lib/libupdate_manager_updates.php
+++ b/pandora_console/extensions/update_manager/lib/libupdate_manager_updates.php
@@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
-// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
+// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
diff --git a/pandora_console/extensions/update_manager/lib/libupdate_manager_utils.php b/pandora_console/extensions/update_manager/lib/libupdate_manager_utils.php
index 70035121a9..b3d0512752 100644
--- a/pandora_console/extensions/update_manager/lib/libupdate_manager_utils.php
+++ b/pandora_console/extensions/update_manager/lib/libupdate_manager_utils.php
@@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
-// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
+// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -26,7 +26,7 @@ function is_binary ($filepath) {
return false;
}
-function directory_to_array ($directory, $ignores = NULL, $only_binary_files = false) {
+function directory_to_array ($directory, $ignores = NULL, $only_binary_files = false) {
if (! $ignores)
$ignores = array ('.', '..');
diff --git a/pandora_console/extensions/update_manager/lib/load_updatemanager.php b/pandora_console/extensions/update_manager/lib/load_updatemanager.php
index 14cbb8635a..6b6a25f2e7 100644
--- a/pandora_console/extensions/update_manager/lib/load_updatemanager.php
+++ b/pandora_console/extensions/update_manager/lib/load_updatemanager.php
@@ -2,7 +2,7 @@
// Pandora FMS - http://pandorafms.com
// ==================================================
-// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
+// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License