boinc/html/user/user.inc

29 lines
700 B
PHP
Raw Normal View History

<?php
function show_hosts($user) {
$i=0;
$result = mysql_query("select * from host where userid=$user->id");
while ($host = mysql_fetch_object($result)) {
echo "<br><br>Host $i:\n";
show_host($host);
$i++;
}
mysql_free_result($result);
}
function show_user_page($user, $project) {
echo "<h1>Welcome, $user->name!</h1>\n";
start_table();
show_user_profile($user);
echo "<p><p>\n";
show_user_stats($user, $project);
echo "<p>\n";
echo "<ul>";
echo "<li><a href=show_hosts.php>Host info</a></li>";
echo "<li><a href=prefs.php>Preferences</a></li>";
echo "<li><a href=team.php>Teams</a></li>";
echo "</ul>";
}
?>