2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function show_hosts($user) {
|
|
|
|
$result = mysql_query("select * from host where userid=$user->id");
|
|
|
|
while ($host = mysql_fetch_object($result)) {
|
2002-08-13 20:00:37 +00:00
|
|
|
echo "<p>\n";
|
2002-04-30 22:22:54 +00:00
|
|
|
show_host($host);
|
|
|
|
}
|
|
|
|
mysql_free_result($result);
|
|
|
|
}
|
|
|
|
|
2002-08-12 22:16:34 +00:00
|
|
|
function show_user_page($user, $project) {
|
|
|
|
echo "<h1>Welcome, $user->name!</h1>\n";
|
2002-08-05 23:20:57 +00:00
|
|
|
start_table();
|
2002-08-12 22:16:34 +00:00
|
|
|
show_user_profile($user);
|
|
|
|
echo "<p><p>\n";
|
|
|
|
show_user_stats($user, $project);
|
2002-08-05 23:20:57 +00:00
|
|
|
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>";
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
}
|
|
|
|
?>
|