Initial commit
This commit is contained in:
21
listeditions.php
Normal file
21
listeditions.php
Normal 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";
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user