Skip to content

Commit

Permalink
Add array workaround to support ancient PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Nov 30, 2016
1 parent fdc68cd commit 4b7416f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions download-page.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<?php
// for command line use; parse_str($_SERVER['QUERY_STRING'], $_GET);
date_default_timezone_set('UTC');
$valid_pages = [
'nqp' => [
$valid_pages = array(
'nqp' => array(
'id' => 'nqp',
'name' => 'NQP (Not Quite Perl) Compiler Toolkit',
'path' => 'downloads/nqp/',
'vars' => ['.tar.gz' => null]
],
'rakudo' => [
'vars' => array('.tar.gz' => null)
),
'rakudo' => array(
'id' => 'rakudo',
'name' => 'Rakudo Perl 6 Compiler',
'path' => 'downloads/rakudo/',
'vars' => ['.tar.gz' => null]
],
'star' => [
'vars' => array('.tar.gz' => null)
),
'star' => array(
'id' => 'rakudo-star',
'name' => 'Rakudo Star Perl 6 Distribution',
'path' => 'downloads/star/',
'vars' => [
'vars' => array(
'.tar.gz' => null,
'.dmg' => null,
'-x86_64 (JIT).msi' => null,
'-x86 (no JIT).msi' => null
]
]
];
)
)
);

$give_latest = array_key_exists('latest', $_GET) ? $_GET['latest'] : null;
$asset = array_key_exists('asset', $_GET) ? (
Expand Down

0 comments on commit 4b7416f

Please sign in to comment.