32,7 → 32,7 |
|
<?php |
// build form with list of CPUs + preselect the current CPU (if any) |
$cpus = array('586', '486', '186', '8086'); |
$cpus = array('586', '486', '386', '286', '186', '8086'); |
foreach ($cpus as $cpu) { |
$sel = ''; |
if (array_search($cpu, $hw) !== false) $sel = ' selected'; |
55,8 → 55,8 |
|
<select name="hwvid"> |
<?php |
// build form with list of CPUs + preselect the current CPU (if any) |
$vids = array('SVGA', 'VGA', 'MCGA', 'EGA', 'CGA', 'MDA', 'HGC'); |
// build form with list of graphic cards + preselect the current card (if any) |
$vids = array('SVGA', 'VGA', 'MCGA', 'EGA', 'CGA', 'MDA'); |
foreach ($vids as $v) { |
$sel = ''; |
if (array_search(strtolower($v), $hw) !== false) $sel = ' selected'; |
141,13 → 141,9 |
if ($h == 'cga') { |
$hw[] = 'mda'; |
} |
if ($h == 'hgc') { |
$hw[] = 'mda'; |
} |
|
} |
|
|
$db = json_decode(file_get_contents('../packages/_index.json'), true); |
|
echo "<table style=\"width: 100%;\">\n"; |
163,14 → 159,16 |
$pref = array_shift($meta['versions']); // get first version (that's the preferred one) |
if (empty($pref)) continue; // no more versions |
$hwhint = ''; |
if (!empty($pref['hwreq']) && (!empty($hw))) { |
if (!empty($pref['hwreq'])) { |
$hwhint = ' title="' . htmlspecialchars(strtoupper($pref['hwreq'])) . '"'; |
|
/* if hw filter present, make sure it fullfills package's requirements */ |
if (!empty($hw)) { |
foreach (explode(' ', $pref['hwreq']) as $req) { |
if (array_search($req, $hw, true) === false) goto check_next_ver; |
} |
|
$hwhint = ' title="' . htmlspecialchars(strtoupper($pref['hwreq'])) . '"'; |
} |
} |
$ver = $pref['ver']; |
$bsum = $pref['bsum']; |
|