~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to html/user/app_versions.php

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
// This file is part of BOINC.
 
3
// http://boinc.berkeley.edu
 
4
// Copyright (C) 2010 University of California
 
5
//
 
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.
 
10
//
 
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.
 
15
//
 
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/>.
 
18
 
 
19
// output XML summary of app versions
 
20
 
 
21
require_once("../inc/boinc_db.inc");
 
22
require_once("../inc/xml.inc");
 
23
 
 
24
BoincDb::get(true);
 
25
xml_header();
 
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);
 
31
    echo "
 
32
    <app_version>
 
33
        <id>$av->id</id>
 
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>
 
44
    </app_version>
 
45
";
 
46
}
 
47
echo "</app_versions>\n";
 
48
?>