diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3ed2c539b8..b370b81ad6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2013-06-05 Miguel de Dios + + * include/functions.php: cleaned source code style. + + * include/get_file.php: fixed the include the auth. + + Fixes: #2274 + 2013-06-05 Miguel de Dios * operation/snmpconsole/snmp_view.php: fixed the pagination. diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 4da949d2d9..b0baa3acf4 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -611,7 +611,7 @@ function get_parameterBetweenListValues ($name, $values, $default) { if (isset($_GET[$name])) $parameter = get_parameter_get ($name, $default); - + foreach($values as $value) { if ($value == $parameter) { return $value; diff --git a/pandora_console/include/get_file.php b/pandora_console/include/get_file.php index e92c7c98d1..062bd73a78 100644 --- a/pandora_console/include/get_file.php +++ b/pandora_console/include/get_file.php @@ -23,7 +23,7 @@ global $config; $auth_method = db_get_value('value', 'tconfig', 'token', 'auth'); -include("auth/" . $auth_method . ".php"); +require_once("auth/" . $auth_method . ".php"); session_write_close ();