roundcubemail/plugins/krb_authentication/krb_authentication.php
function startup($args)
    {
        if (!empty($_SERVER['REMOTE_USER']) && !empty($_SERVER['KRB5CCNAME'])) {
            // handle login action
            if (empty($_SESSION['user_id'])) {
                $args['action']       = 'login';
                $this->redirect_query = $_SERVER['QUERY_STRING'];
            }
            else {
                $_SESSION['password'] = null;
            }
        }

        return $args;
    }
function startup($args)
    {
        if (!empty($_SERVER['REMOTE_USER']) && !empty($_SERVER['KRB5CCNAME'])) {
            // handle login action
            if (empty($_SESSION['user_id'])) {
                $args['action']       = 'login';
                $this->redirect_query = $_SERVER['QUERY_STRING'];
            }
            else {
                $_SESSION['password'] = null;
            }
        }

        return $args;
    }
function startup ( $ args ) { if ( ! empty ( $ _SERVER [ 'REMOTE_USER' ] ) && ! empty ( $ _SERVER [ 'KRB5CCNAME' ] ) ) { // handle login action if ( empty ( $ _SESSION [ 'user_id' ] ) ) { $ args [ 'action' ] = 'login' ; $ this -> redirect_query = $ _SERVER [ 'QUERY_STRING' ] ; } else { $ _SESSION [ 'password' ] = null ; } } return $ args ; }
Startup hook handler
Startup hook handler