~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to html/inc/xml.inc

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
 
3
 
require_once("../inc/db.inc");
 
3
require_once("../inc/boinc_db.inc");
4
4
require_once("../inc/util.inc");
5
5
 
6
6
function db_init_xml() {
7
7
    if (web_stopped()) {
8
8
        return -183;
9
9
    }
10
 
    $retval = db_init_aux();
11
 
    if ($retval) return -138;
 
10
    $db = BoincDb::get();
 
11
    if (!$db) return -138;
12
12
    return 0;
13
13
}
14
14
 
82
82
    <has_profile>$user->has_profile</has_profile>
83
83
";
84
84
    if ($show_hosts) {
85
 
        $result = mysql_query("select * from host where userid=$user->id");
 
85
        $hosts = BoincHost::enum("userid=$user->id");
86
86
        echo "   <venue>$user->venue</venue>\n";
87
 
        while ($host = mysql_fetch_object($result)) {
 
87
        foreach ($hosts as $host) {
88
88
            show_host_xml($host);
89
89
        }
90
90
    }
97
97
    echo "<user>
98
98
    <id>$user->id</id>
99
99
";
100
 
    if ($show_email) {
 
100
    if ($show_email && $user->send_email) {
101
101
        echo "<email_addr>$user->email_addr</email_addr>
102
102
";
103
103
    }