Skip to content
Snippets Groups Projects
whatsnew.php 1.14 KiB
<?php
require(eduGAIN_config."database_ro.php");
$data = [];
$edugain = new eduGAIN(1);
$entity= new eduGAIN_entity();
$cats = $entity->entityCategories['uri_based'];
$data['eventName'] = [
'M' => 'become member',
'R' => 'started supplying metadtata',
'P' => 'signed eduGAIN declaration',
'O' => '' // this will use the supplied text message
];

$backTimeFed  = BACK_TIME_FED;
$startYearTimestamp = strtotime("-$backTimeFed");
$backTimeEntities = BACK_TIME_ENTITIES;
$startTimestamp = strtotime("-$backTimeEntities");

$addEvents = [
    strtotime("2023-01-20") => [["O", "RUNNET AAI and FEDURUS were removed as members of eduGAIN at the request of the eduGAIN Executive Committee"]],
];

$data['backTimeFed'] = $backTimeFed;
$data['backTimeEntities'] = $backTimeEntities;
$data['events'] = $edugain->getFederationNews($startYearTimestamp, $addEvents);
$data['entityListIDP'] = $entity->getEntityList(Constants::IDP,'0', -2, 1, 1, 'NOTSET', '', 0, 0, 0, 0, 0, $startTimestamp , 0, 'html');
$data['entityListSP'] = $entity->getEntityList(Constants::SP,'0', -2, 1, 1, 'NOTSET', '', 0, 0, 0, 0, 0, $startTimestamp , 0, 'html');
echo $twig->render('whatsnew.html', $data);