authentication failed * * @return boolean always true (no return indeed) */ public function authFails() { /* Session name */ $session_name = $GLOBALS['cfg']['Server']['SignonSession']; /* Does session exist? */ if (isset($_COOKIE[$session_name])) { /* End current session */ if (! defined('TESTSUITE')) { session_write_close(); } /* Load single signon session */ session_name($session_name); session_id($_COOKIE[$session_name]); if (! defined('TESTSUITE')) { session_start(); } /* Set error message */ if (! empty($GLOBALS['login_without_password_is_forbidden'])) { $_SESSION['PMA_single_signon_error_message'] = __( 'Login without a password is forbidden by configuration ' . '(see AllowNoPassword)' ); } elseif (! empty($GLOBALS['allowDeny_forbidden'])) { $_SESSION['PMA_single_signon_error_message'] = __('Access denied'); } elseif (! empty($GLOBALS['no_activity'])) { $_SESSION['PMA_single_signon_error_message'] = sprintf( __('No activity within %s seconds; please log in again.'), $GLOBALS['cfg']['LoginCookieValidity'] ); } elseif ($GLOBALS['dbi']->getError()) { $_SESSION['PMA_single_signon_error_message'] = PMA_sanitize( $GLOBALS['dbi']->getError() ); } else { $_SESSION['PMA_single_signon_error_message'] = __( 'Cannot log in to the MySQL server' ); } } $this->auth(); } /** * This method is called when any PluginManager to which the observer * is attached calls PluginManager::notify() * * @param SplSubject $subject The PluginManager notifying the observer * of an update. * * @return void */ public function update (SplSubject $subject) { } }