svg = DOKU_INC_COMPAT . 'lib/images/menu/login.svg'; $this->params['sectok'] = getSecurityToken(); if($INPUT->server->has('REMOTE_USER')) { if(!actionOK('logout')) { throw new \RuntimeException("logout disabled"); } $this->params['do'] = 'logout'; $this->type = 'logout'; $this->svg = DOKU_INC_COMPAT . 'lib/images/menu/logout.svg'; } } }