getAttributes(), "user", "User"); ?>
isFederationAdmin()) { echo "

" . _("You are not a federation manager.") . "

"; footer(); exit(0); } $feds = $user->getAttributes("user:fedadmin"); foreach ($feds as $onefed) { $thefed = new Federation(strtoupper($onefed['value'])); echo "

"; echo sprintf(_("Federation Statistics: %s"), strtoupper($thefed->identifier)); echo "

"; echo ""; // idp stats echo ""; echo ""; // download stats echo ""; echo Federation::downloadStats($thefed->identifier, TRUE); echo "
" . _("IdPs Total") . "" . _("Public Download") . "
" . count($thefed->listIdentityProviders(0)) . "" . count($thefed->listIdentityProviders(1)) . "
" . _("Downloads") . "" . _("Admin") . "" . _("User") . "
"; echo "
"; } if (isset($_POST['submitbutton']) && $_POST['submitbutton'] == BUTTON_DELETE && isset($_POST['invitation_id'])) { $mgmt->invalidateToken($_POST['invitation_id']); } if (isset($_GET['invitation'])) { echo "
"; if ($_GET['invitation'] == "SUCCESS") echo UI_remark(_("The invitation email was sent successfully."), _("The invitation email was sent.")); else if ($_GET['invitation'] == "FAILURE") echo UI_error(_("The invitation email could not be sent!"), _("The invitation email could not be sent!")); else echo UI_error(_("Error: unknown result code of invitation!?!"), _("Unknown result!")); echo "
"; } if (Config::$CONSORTIUM['name'] == 'eduroam') $helptext = "

" . sprintf(_("Need help? Refer to the Federation Operator manual"),"https://wiki.geant.org/x/KQB_AQ")."

"; else $helptext = ""; echo $helptext; ?> getAttributes("user:fedadmin"); $pending_invites = $mgmt->listPendingInvitations(); if (Config::$DB['enforce-external-sync']) echo ""; ?> "; // extract only pending invitations for *this* fed $display_pendings = FALSE; foreach ($pending_invites as $oneinvite) if (strtoupper($oneinvite['country']) == strtoupper($thefed->identifier)) { // echo "PENDINGS!"; $display_pendings = TRUE; } $idps = $thefed->listIdentityProviders(); $my_idps = array(); foreach ($idps as $index => $idp) { $my_idps[$idp['entityID']] = strtolower($idp['title']); } asort($my_idps); foreach ($my_idps as $index => $my_idp) { $idp_instance = $idps[$index]['instance']; // new row, with one IdP inside echo ""; // deployment status; need to dive into profiles for this // show happy eyeballs if at least one profile is configured/showtime echo ""; // name echo ""; // external DB sync, if configured as being necessary if (Config::$DB['enforce-external-sync']) { if ($idp_instance->getExternalDBSyncState() != EXTERNAL_DB_SYNCSTATE_NOTSUBJECTTOSYNCING) { echo ""; } } // admin management echo ""; // end of entry echo ""; } if ($display_pendings) { echo ""; foreach ($pending_invites as $oneinvite) if (strtoupper($oneinvite['country']) == strtoupper($thefed->identifier)) { echo ""; } } }; ?>
" . sprintf(_("%s Database Sync Status"), Config::$CONSORTIUM['name']) . "
" . sprintf(_("Your federation %s contains the following institutions:"), '' . $thefed::$FederationList[$onefed['value']] . '') . "
" . ($idp_instance->isOneProfileConfigured() ? "C" : "" ) . ($idp_instance->isOneProfileShowtime() ? "V" : "" ) . " " . $idp_instance->name . " "; echo "
"; if ($idp_instance->getExternalDBSyncState() != EXTERNAL_DB_SYNCSTATE_SYNCED) { echo "
" . _("NOT linked") . "
"; } else { echo "
" . _("Linked") . "
"; } echo "
"; echo "
" . _("Pending invitations in your federation:") . "
" . $oneinvite['name'] . " " . $oneinvite['mail'] . " "; echo "
"; echo "