<?php
declare(strict_types=1);
require_once("PaperRecord.php");

if (isOnline() or Config::isTesting()) {
  [$eventmain, $paperid, $full, $toc, , , , , $ConfigKey] = getInputValues($_GET);
} else {
  [$eventmain, $paperid, $full, $toc, , , , , $ConfigKey] = getInputValuesShell($argv);
}

$eventRecord = getEventRecord($eventmain);

$fd = fopen("php://output", "w");
(new EventListingFormatter($eventRecord))->printAuthors($fd, $full, $ConfigKey);
fclose($fd);
?>
