2010-11-04 Miguel de Dios <miguel.dedios@artica.es>

* extensions/users_connected.php: fixed call to operation function.
	
	Fixes: #3102855



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3528 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-11-04 18:23:40 +00:00
parent 8218a884a4
commit cbd69cc5ee
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed call to operation function.
Fixes: #3102855
2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fixed warning in foreach loop.

View File

@ -12,7 +12,11 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
function users_extension_main_god () {
function users_extension_main() {
users_extension_main_god(false);
}
function users_extension_main_god ($god = true) {
if (isset($config["id_user"])) {
if (!!give_acl ($config["id_user"], 0, "UM")) {
return;
@ -20,7 +24,7 @@ function users_extension_main_god () {
}
// Header
print_page_header (__("Users connected"), "images/extensions.png", false, "", true);
print_page_header (__("Users connected"), "images/extensions.png", false, "", $god);
$sql = "SELECT id_usuario, ip_origen, fecha, accion FROM tsesion WHERE descripcion = 'Logged in' AND utimestamp > (UNIX_TIMESTAMP(NOW()) - 3600) GROUP BY id_usuario, ip_origen, accion";
@ -72,6 +76,7 @@ if (isset($config["id_user"])) {
}
}
add_extension_godmode_function ('users_extension_main_god');
add_extension_godmode_function('users_extension_main_god');
add_extension_main_function('users_extension_main');
?>