diff --git a/libraries/plugins/auth/AuthenticationCookie.class.php b/libraries/plugins/auth/AuthenticationCookie.class.php index a390ef00a5..1ee8d599ca 100644 --- a/libraries/plugins/auth/AuthenticationCookie.class.php +++ b/libraries/plugins/auth/AuthenticationCookie.class.php @@ -353,7 +353,7 @@ class AuthenticationCookie extends AuthenticationPlugin $GLOBALS['from_cookie'] = false; // BEGIN Swekey Integration - if (! Swekey_auth_check()) { + if (! Swekey_Auth_check()) { return false; } // END Swekey Integration diff --git a/libraries/plugins/auth/swekey/swekey.auth.lib.php b/libraries/plugins/auth/swekey/swekey.auth.lib.php index ec0de5e9c0..9c36efcb03 100644 --- a/libraries/plugins/auth/swekey/swekey.auth.lib.php +++ b/libraries/plugins/auth/swekey/swekey.auth.lib.php @@ -1,4 +1,5 @@ $value) { + foreach ($_SESSION['SWEKEY']['VALID_SWEKEYS'] as $key => $value) { echo $key.','; - } + } ?>"; var connected_keys = Swekey_ListKeyIds().split(","); for (i in connected_keys) { @@ -135,7 +136,10 @@ function Swekey_auth_error() } if (count($_SESSION['SWEKEY']['VALID_SWEKEYS']) == 0) { - return sprintf(__('File %s does not contain any key id'), $GLOBALS['cfg']['Server']['auth_swekey_config']); + return sprintf( + __('File %s does not contain any key id'), + $GLOBALS['cfg']['Server']['auth_swekey_config'] + ); } include_once "libraries/plugins/auth/swekey/swekey.php"; @@ -153,14 +157,15 @@ function Swekey_auth_error() $pos = strrpos($caFile, '\\'); // windows } $caFile = substr($caFile, 0, $pos + 1).'musbe-ca.crt'; -// echo "\n\n"; -// if (file_exists($caFile)) -// echo "\n"; + // echo "\n\n"; + // if (file_exists($caFile)) + // echo "\n"; } if (file_exists($caFile)) { Swekey_SetCAFile($caFile); - } elseif (! empty($caFile) && (substr($_SESSION['SWEKEY']['CONF_SERVER_CHECK'], 0, 8) == "https://")) { + } elseif (! empty($caFile) + && (substr($_SESSION['SWEKEY']['CONF_SERVER_CHECK'], 0, 8) == "https://")) { return "Internal Error: CA File $caFile not found"; } @@ -229,7 +234,7 @@ function Swekey_auth_error() */ function Swekey_login($input_name, $input_go) { - $swekeyErr = Swekey_auth_error(); + $swekeyErr = Swekey_Auth_error(); if ($swekeyErr != null) { PMA_Message::error($swekeyErr)->display(); if ($GLOBALS['error_handler']->hasDisplayErrors()) {