diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-11 10:45:28 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-11 10:45:28 +0000 |
commit | 0f9bc8691933813896c397d7af2ed53b2e9e9b25 (patch) | |
tree | 6dd9741bfb82f8502636fb891cf2d9abc91c64b1 /en | |
parent | 36e5245f70f34610af3da3375462d3abb2f83c8a (diff) | |
download | www-0f9bc8691933813896c397d7af2ed53b2e9e9b25.tar www-0f9bc8691933813896c397d7af2ed53b2e9e9b25.tar.gz www-0f9bc8691933813896c397d7af2ed53b2e9e9b25.tar.bz2 www-0f9bc8691933813896c397d7af2ed53b2e9e9b25.tar.xz www-0f9bc8691933813896c397d7af2ed53b2e9e9b25.zip |
show downloads catalog contents
Diffstat (limited to 'en')
-rw-r--r-- | en/downloads/get/definitions.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/en/downloads/get/definitions.php b/en/downloads/get/definitions.php new file mode 100644 index 000000000..28f2fa653 --- /dev/null +++ b/en/downloads/get/definitions.php @@ -0,0 +1,18 @@ +<?php + +$ini = parse_ini_file('definitions.ini', true); + +foreach ($ini as $section => $values) { + + echo '<section><h2>', $section, '</h2>'; + echo sprintf('<section><h2>%s</h2><ul><li><code>%s</code></li><li>%s</li></section>', + $values['name'], + '$MIRROR/' . $values['path'] . $values['file'], + $values['size'] + ); + + echo '<ul>'; + foreach ($values as $k => $v) + echo '<li>', $k, ' = ', $v, '</li>'; + echo '</ul></section>'; +}
\ No newline at end of file |