\n"; $result .= "\t\t\n"; } function loginBar($sp = 'default-sp') { require_once __DIR__ . '/../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'; $result = "\n"; $as = new SimpleSAML_Auth_Simple($sp); $attr = $as->getAttributes(); if($attr) { $uname = $attr['uid'][0]; $result .= "\t\t

Logget inn som: " . htmlspecialchars($uname) . "

\n"; } else { $result .= "\t\tgetLoginURL()) . "\">Logg inn\n"; } return $result; }