From 2bb9bf650c4f37688d266b3d10e6bb4347af35f9 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 17 Dec 2009 14:32:56 +0000 Subject: [PATCH] 2009-12-17 Miguel de Dios * pandora_console/extensions/update_manager/load_updatemanager.php: add more info (Pandora version and build) to statistics in update process. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../extensions/update_manager/load_updatemanager.php | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 973834b0c0..0c38aebe33 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-12-17 Miguel de Dios + + * pandora_console/extensions/update_manager/load_updatemanager.php: add more + info (Pandora version and build) to statistics in update process. + 2009-12-16 Raul Mateos * include/config_process.php, DEBIAN/make_deb_package.sh: Preparing diff --git a/pandora_console/extensions/update_manager/load_updatemanager.php b/pandora_console/extensions/update_manager/load_updatemanager.php index f048d778e0..188b35a3ff 100644 --- a/pandora_console/extensions/update_manager/load_updatemanager.php +++ b/pandora_console/extensions/update_manager/load_updatemanager.php @@ -57,10 +57,13 @@ function get_user_key ($settings) { We only want to know this for statistics records. Feel free to disable this extension if you want. */ + global $build_version; + global $pandora_version; + $n = (int) get_db_value ('COUNT(`id_agente`)', 'tagente', 'disabled', 0); $m = (int) get_db_value ('COUNT(`id_agente_modulo`)', 'tagente_modulo', 'disabled', 0); - $user_key = array ('A' => $n, 'M' => $m); + $user_key = array ('A' => $n, 'M' => $m, 'B' => $build_version, 'P' => $pandora_version); return json_encode ($user_key); }