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

« back to all changes in this revision

Viewing changes to html/drupal/hosts_user

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
 
 
3
$original_cwd = getcwd();
 
4
chdir('includes/boinc');
 
5
require_once('host.inc');
 
6
 
 
7
function display_hosts($userid) {
 
8
    $user = BoincUser::lookup_id($userid);
 
9
    if (!$user) {
 
10
        echo "<h3>No such user</h3>\n";
 
11
        return;
 
12
    }
 
13
    show_user_hosts($userid, true, true, "total_credit", false);
 
14
}
 
15
 
 
16
$userid = arg(2);
 
17
if (!$userid) $userid = 1;
 
18
$userid = 1;
 
19
 
 
20
display_host($userid);
 
21
 
 
22
chdir($original_cwd);
 
23
?>