2009-12-17 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2009-12-17 14:32:56 +00:00
parent fea271930b
commit 2bb9bf650c
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-12-17 Miguel de Dios <miguel.dedios@artica.es>
* 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 <raulofpandora@gmail.com> 2009-12-16 Raul Mateos <raulofpandora@gmail.com>
* include/config_process.php, DEBIAN/make_deb_package.sh: Preparing * include/config_process.php, DEBIAN/make_deb_package.sh: Preparing

View File

@ -57,10 +57,13 @@ function get_user_key ($settings) {
We only want to know this for statistics records. We only want to know this for statistics records.
Feel free to disable this extension if you want. 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); $n = (int) get_db_value ('COUNT(`id_agente`)', 'tagente', 'disabled', 0);
$m = (int) get_db_value ('COUNT(`id_agente_modulo`)', 'tagente_modulo', $m = (int) get_db_value ('COUNT(`id_agente_modulo`)', 'tagente_modulo',
'disabled', 0); '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); return json_encode ($user_key);
} }