From e84d4d981c6e585722e65b9cc86ff2eec5feb977 Mon Sep 17 00:00:00 2001 From: raulmateos Date: Thu, 23 Sep 2010 13:35:59 +0000 Subject: [PATCH] 2010-09-23 Raul Mateos * extensions/users_connected.php: Show text to admin if no other user connected. TO DO: This extension gives non-accurate information due to the use of timestamp in one hour since the login event. It should be improved to check logout events in table. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ pandora_console/extensions/users_connected.php | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8d09585c3c..38b1a6cbe0 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2010-09-23 Raúl Mateos + + * extensions/users_connected.php: Show text to admin if no other + user connected. + TO DO: This extension gives non-accurate information due to the use + of timestamp in one hour since the login event. It should be + improved to check logout events in table. + 2010-09-23 Raúl Mateos * godmode/users/user_list.php: Able to edit profiles. diff --git a/pandora_console/extensions/users_connected.php b/pandora_console/extensions/users_connected.php index fe21c175dc..992267477c 100644 --- a/pandora_console/extensions/users_connected.php +++ b/pandora_console/extensions/users_connected.php @@ -27,8 +27,9 @@ function users_extension_main_god () { $rows = get_db_all_rows_sql ($sql); if (empty ($rows)) { $rows = array (); + echo "
".__('No other users connected')."
"; } - + else { $table->cellpadding = 4; $table->cellspacing = 4; $table->width = 600; @@ -61,7 +62,7 @@ function users_extension_main_god () { } print_table ($table); - +} } add_godmode_menu_option (__('Users connected'), 'UM','gusuarios',"users/icon.png");