2
// This file is part of BOINC.
3
// http://boinc.berkeley.edu
4
// Copyright (C) 2010 University of California
6
// BOINC is free software; you can redistribute it and/or modify it
7
// under the terms of the GNU Lesser General Public License
8
// as published by the Free Software Foundation,
9
// either version 3 of the License, or (at your option) any later version.
11
// BOINC is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
// See the GNU Lesser General Public License for more details.
16
// You should have received a copy of the GNU Lesser General Public License
17
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
19
// output XML summary of app versions
21
require_once("../inc/boinc_db.inc");
22
require_once("../inc/xml.inc");
26
echo "<app_versions>\n";
27
$app_versions = BoincAppVersion::enum("deprecated=0 and pfc_n>0");
28
foreach ($app_versions as $av) {
29
$platform = BoincPlatform::lookup_id($av->platformid);
30
$app = BoincApp::lookup_id($av->appid);
34
<create_time>$av->create_time</create_time>
35
<platform>$platform->name</platform>
36
<app_name>$app->name</app_name>
37
<version_num>$av->version_num</version_num>
38
<plan_class>$av->plan_class</plan_class>
39
<pfc_n>$av->pfc_n</pfc_n>
40
<pfc_avg>$av->pfc_avg</pfc_avg>
41
<pfc_scale>$av->pfc_scale</pfc_scale>
42
<expavg_credit>$av->expavg_credit</expavg_credit>
43
<expavg_time>$av->expavg_time</expavg_time>
47
echo "</app_versions>\n";