Subversion Repositories SvarDOS

Rev

Rev 1701 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1701 Rev 1803
Line 19... Line 19...
19
  $hw = array();
19
  $hw = array();
20
  if (!empty($_GET['hwcpu'])) $hw[] = strtolower($_GET['hwcpu']);
20
  if (!empty($_GET['hwcpu'])) $hw[] = strtolower($_GET['hwcpu']);
21
  if (!empty($_GET['hwvid'])) $hw[] = strtolower($_GET['hwvid']);
21
  if (!empty($_GET['hwvid'])) $hw[] = strtolower($_GET['hwvid']);
22
  if ((!empty($_GET['fpu'])) && ($_GET['fpu'] == 'yes')) $hw[] = 'fpu';
22
  if ((!empty($_GET['fpu'])) && ($_GET['fpu'] == 'yes')) $hw[] = 'fpu';
23
 
23
 
-
 
24
  // view mode (0=simple 1=full)
-
 
25
  $view = 0;
-
 
26
  if (!empty($_GET['view'])) $view = intval($_GET['view']);
24
?>
27
?>
25
 
28
 
26
<form action="?" method="get">
29
<form action="?" method="get">
27
<br>
30
<br>
28
<p>Filters:<br>
31
<p>Filters:<br>
Line 154... Line 157...
154
 
157
 
155
foreach ($db as $pkg => $meta) {
158
foreach ($db as $pkg => $meta) {
156
 
159
 
157
  if ((!empty($catfilter)) && (array_search($catfilter, $meta['cats']) === false)) continue;
160
  if ((!empty($catfilter)) && (array_search($catfilter, $meta['cats']) === false)) continue;
158
 
161
 
159
  $desc = $meta['desc'];
162
  $desc = htmlspecialchars($meta['desc']);
160
  check_next_ver:
163
  check_next_ver:
161
  $pref = array_shift($meta['versions']); // get first version (that's the preferred one)
164
  $pref = array_shift($meta['versions']); // get first version (that's the preferred one)
162
  if (empty($pref)) continue; // no more versions
165
  if (empty($pref)) continue; // no more versions
163
  $hwhint = '';
166
  $hwhint = '';
164
  if (!empty($pref['hwreq'])) {
167
  if (!empty($pref['hwreq'])) {
Line 172... Line 175...
172
    }
175
    }
173
  }
176
  }
174
  $ver = $pref['ver'];
177
  $ver = $pref['ver'];
175
  $bsum = $pref['bsum'];
178
  $bsum = $pref['bsum'];
176
 
179
 
-
 
180
  if ($view === 0) {
177
  echo "<tr><td><a{$hwhint} href=\"repo/?a=pull&amp;p={$pkg}\">{$pkg}</a></td><td>{$ver}</td><td>{$desc}</td></tr>\n";
181
    echo "<tr><td><a{$hwhint} href=\"repo/?a=pull&amp;p={$pkg}\">{$pkg}</a></td><td>{$ver}</td><td>{$desc}</td></tr>\n";
-
 
182
  } else {
-
 
183
    $link = '';
-
 
184
    if (!empty($meta['url'])) $link = '<span class="extrainfo"><br><a href="' . htmlspecialchars($meta['url']) . '">' . htmlspecialchars($meta['url']) . '</a></span>';
-
 
185
    echo "<tr><td><a{$hwhint} href=\"repo/?a=pull&amp;p={$pkg}\">{$pkg}</a><span class=\"extrainfo\"><br>";
-
 
186
    echo htmlspecialchars(implode(', ', $meta['cats']));
-
 
187
    echo "</span></td><td>{$ver}</td><td>{$desc}{$link}</td></tr>\n";
-
 
188
  }
178
}
189
}
179
echo "</table>\n";
190
echo "</table>\n";
180
 
191
 
181
$errs = trim(file_get_contents('../packages/_buildidx.log'));
192
$errs = trim(file_get_contents('../packages/_buildidx.log'));
182
if (!empty($errs)) echo '<p style="color: #f00; font-weigth: bold;">Note to SvarDOS packagers: inconsistencies have been detected in the repository, please <a href="?p=repo&amp;showlogs=1#logs">review them</a>.</p>';
193
if (!empty($errs)) echo '<p style="color: #f00; font-weigth: bold;">Note to SvarDOS packagers: inconsistencies have been detected in the repository, please <a href="?p=repo&amp;showlogs=1#logs">review them</a>.</p>';