This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
forked from kohler/hotcrp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
require __DIR__ ."/../../conf/options.php"; | ||
|
||
// The iacr_paperid should be globally unique across all hotcrp instances. It should be short, | ||
// because it is hashed to create the DOI for the paper. It should not be parsed to extract | ||
// other elements like the volume number. | ||
|
||
function iacr_paperid($paperId) { | ||
global $Opt; | ||
$suffix = strval($Opt['volume']) . '_' . strval($Opt['issue']) . '_' . strval($paperId); | ||
switch ($Opt['iacrType']) { | ||
case 'cic': | ||
return 'cc' . $suffix; | ||
case 'tches': | ||
return 'tc' . $suffix; | ||
case 'tosc': | ||
return 'to' . $suffix; | ||
case 'crypto': | ||
return 'cr' . $suffix; | ||
case 'eurocrypt': | ||
return 'eu' . $suffix; | ||
case 'asiacrypt': | ||
return 'as' . $suffix; | ||
case 'tcc': | ||
return 'tc' . $suffix; | ||
case 'pkc': | ||
return 'pk' . $suffix; | ||
default: | ||
return $Opt['iacrType'] . $suffix; | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters