html/inc/util_ops.inc 1 location
|
@@ 220-227 (lines=8) @@
|
| 217 |
|
// return a list of the current, non-deprecated ones |
| 218 |
|
// |
| 219 |
|
function current_versions($avs) { |
| 220 |
|
foreach($avs as $av) { |
| 221 |
|
foreach ($avs as $av2) { |
| 222 |
|
if ($av->id == $av2->id) continue; |
| 223 |
|
if ($av->platformid == $av2->platformid && $av->plan_class == $av2->plan_class && $av->version_num > $av2->version_num) { |
| 224 |
|
$av2->deprecated = 1; |
| 225 |
|
} |
| 226 |
|
} |
| 227 |
|
} |
| 228 |
|
$x = array(); |
| 229 |
|
foreach($avs as $av) { |
| 230 |
|
if (!$av->deprecated) $x[] = $av; |
html/inc/boinc_db.inc 1 location
|
@@ 627-636 (lines=10) @@
|
| 624 |
|
$avs = BoincAppVersion::enum( |
| 625 |
|
"appid=$appid and platformid = $platformid and deprecated=0" |
| 626 |
|
); |
| 627 |
|
foreach ($avs as $av) { |
| 628 |
|
foreach ($avs as $av2) { |
| 629 |
|
if ($av->id == $av2->id) continue; |
| 630 |
|
if ($av->plan_class == $av2->plan_class && $av->version_num > $av2->version_num) { |
| 631 |
|
$av2->deprecated = 1; |
| 632 |
|
} else if ($av2->beta) { |
| 633 |
|
$av2->deprecated = 1; |
| 634 |
|
} |
| 635 |
|
} |
| 636 |
|
} |
| 637 |
|
$r = array(); |
| 638 |
|
foreach ($avs as $av) { |
| 639 |
|
if (!$av->deprecated) { |