From 1cd4668eab4df2368fa651afaa098c63f65e2365 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Thu, 26 Jul 2012 16:06:52 +0000 Subject: [PATCH] 2012-07-26 Juan Manuel Ramon * operation/agentes/stat_win.php: Added hash login to graph module popup. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6815 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/stat_win.php | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index aabc015d53..102a389736 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-07-26 Juan Manuel Ramon + + * operation/agentes/stat_win.php: Added hash login to graph module + popup. + 2012-07-26 Miguel de Dios * operation/users/user_edit.php, diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index a558e25c69..5834e91cc9 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -28,6 +28,18 @@ require_once ($config['homedir'] . '/include/functions_reporting.php'); require_once ($config['homedir'] . '/include/functions_graph.php'); require_once ($config['homedir'] . '/include/functions_modules.php'); +// Hash login process +if (! isset ($config['id_user']) && isset ($_GET["loginhash"])) { + $loginhash_data = get_parameter("loginhash_data", ""); + $loginhash_user = get_parameter("loginhash_user", ""); + + if ($config["loginhash_pwd"] != "" && $loginhash_data == md5($loginhash_user.$config["loginhash_pwd"])) { + db_logon ($loginhash_user, $_SERVER['REMOTE_ADDR']); + $_SESSION['id_usuario'] = $loginhash_user; + $config["id_user"] = $loginhash_user; + } +} + check_login (); $user_language = get_user_language ($config['id_user']);