Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from IACR/finalVersions
Browse files Browse the repository at this point in the history
Fix journals having download link in final.php.
  • Loading branch information
kmccurley authored Nov 2, 2021
2 parents 824cf76 + d79128c commit 541762e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions iacr/final.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
include "../src/initweb.php";
include "includes/header.inc";
global $Opt;
require_once "/var/www/util/hotcrp/hmac.php";
// The download URL for the zip archive of final papers.
$url = "https://iacr.org/submit/api/?action=download&venue=" . $Opt['iacrType'] . "&shortName=" . $Opt['dbName'] . "&year=" . $Opt['year'];
$url .= "&auth=" . get_hmac(get_conf_message($Opt['dbName'], $Opt['iacrType'], $Opt['year']));
$dbName = $Opt['dbName'];
?>
<div class="container-fluid float-left">
<div class="row">
Expand All @@ -25,6 +30,12 @@
<a href="../search?q=&t=acc#view">searching for accepted papers</a>
and selecting "View options" to see how many have uploaded their final versions.
</p>
<p>
You can
<a style="font-weight: 600;" target="_blank"
<?php echo "href=\"$url\" download=\"$dbName.zip\"";?>>Download a Zip archive</a> of all final versions of papers. (warning: this is slow).
</p>
</p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion iacr/includes/leftnav.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<div><a id="menucoll" class="navitem" href="coll.php">PC Collaborators</a></div>
<div class="navheader font-weight-bold">Final versions</div>
<div><a id="menuaccepted" class="navitem" href="accepted.php">Accepted papers</a></div>
<div><a id="menufinal" class="navitem" href="final.php">Final papers</a></div>
<?php
global $Opt;
$withLNCS = array('pkc', 'tcc', 'crypto', 'eurocrypt', 'asiacrypt');
if (in_array($Opt['iacrType'], $withLNCS)) {
echo '<div><a id="menucopyright" class="navitem" href="copyright.php">Copyright forms</a></div>';
echo '<div><a id="menufinal" class="navitem" href="final.php">Final papers</a></div>';
} elseif ($Opt['iacrType'] === 'tches' or $Opt['iacrType'] === 'tosc') {
echo '<div><a id="menucopyright" class="navitem" href="copyright.php">Copyright forms</a></div>';
}
Expand Down
4 changes: 2 additions & 2 deletions iacr/lncs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_once "includes/header.inc";
global $Opt, $Conf;
require_once "finalLib.php";
$dbname = $Opt['dbName'];
$dbName = $Opt['dbName'];

require_once "/var/www/util/hotcrp/hmac.php";
// The download URL for the zip archive of final papers.
Expand All @@ -21,7 +21,7 @@
<h3>LNCS Preparation</h3>
<?php
try {
$db = new PDO("mysql:host=localhost;dbname=$dbname;charset=utf8", $Opt['dbUser'], $Opt['dbPassword']);
$db = new PDO("mysql:host=localhost;dbname=$dbName;charset=utf8", $Opt['dbUser'], $Opt['dbPassword']);
// outcome>0 and timeWithdrawn = 0 corresponds to an accepted paper. optionId is from create_conf.py when
// the conference is first set up. It indicates that a final version was uploaded.
$optionId = getFinalPaperOptionId();
Expand Down

0 comments on commit 541762e

Please sign in to comment.