From b86253ff0ed15c7b302b849ee6af42ff777288d2 Mon Sep 17 00:00:00 2001 From: esanchezm Date: Thu, 5 Mar 2009 14:34:39 +0000 Subject: [PATCH] 2009-03-05 Esteban Sanchez * include/functions_config.php: Fixed auth files inclusion that may fail in some cases. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_config.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cd6c15f343..e648053013 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-03-05 Esteban Sanchez + + * include/functions_config.php: Fixed auth files inclusion that may + fail in some cases. + 2009-03-05 Esteban Sanchez * godmode/reporting/map_builder_wizard.php: Style correction. Use diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index a74b60aa3a..8c2102b7d3 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -214,9 +214,9 @@ function process_config () { $config["id_user"] = $_SESSION["id_usuario"]; if (!isset ($config["auth"])) { - require_once ("include/auth/mysql.php"); + require_once ($config["homedir"]."/include/auth/mysql.php"); } else { - require_once ("include/auth/".$config["auth"]["scheme"].".php"); + require_once ($config["homedir"]."/include/auth/".$config["auth"]["scheme"].".php"); } /* Finally, check if any value was overwritten in a form */