Initial commit

This commit is contained in:
mkuba50
2019-04-12 15:40:27 +02:00
commit c9a741eaed
14 changed files with 578 additions and 0 deletions

21
listeditions.php Normal file
View File

@ -0,0 +1,21 @@
<?php
$lang = isset($argv[1]) ? $argv[1] : 'en-us';
$updateId = isset($argv[2]) ? $argv[2] : 0;
require_once dirname(__FILE__).'/api/listeditions.php';
$editions = uupListEditions($lang, $updateId);
if(isset($editions['error'])) {
throwError($editions['error']);
}
$editions = $editions['editionFancyNames'];
asort($editions);
foreach($editions as $key => $val) {
echo $key;
echo '|';
echo $val;
echo "\n";
}
?>