aboutsummaryrefslogtreecommitdiffstats
path: root/ur/downloads/get/definitions.php
blob: 28f2fa653f4b6a340a72fa3151607e24571a5ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>';
}