\n"; ?>

Utah Network Testbed

"; $query_result = mysql_db_query($TBDBNAME, "SELECT status,admin FROM users WHERE uid='$uid'"); $row = mysql_fetch_row($query_result); $status = $row[0]; $admin = $row[1]; # # See if group_root in any projects, not just the last one in the DB! # $query_result = mysql_db_query($TBDBNAME, "SELECT trust FROM proj_memb WHERE uid='$uid' and trust='group_root'"); if (mysql_num_rows($query_result)) { $trusted = 1; } else { $trusted = 0; } if ($status == "active") { if ($admin) { echo " New Project Approval

\n"; echo " Node Control

\n"; } if ($trusted) { # Only group leaders can do these options echo " New User Approval\n"; } # Since a user can be a member of more than one project, # display this option, and let the form decide if the user is # allowed to do this. echo "

Begin an Experiment\n"; echo "

End an Experiment\n"; echo "

Experiment Information\n"; echo "

Update user information\n"; echo "

Node Reservation Status\n"; echo "

Node Up/Down Status\n"; echo "

\n"; } elseif ($status == "unapproved") { USERERROR("Your account has not been approved yet. ". "Please try back later", 1); } elseif (($status == "newuser") || ($status == "unverified")) { echo "New User Verification\n"; } elseif (($status == "frozen") || ($status == "other")) { USERERROR("Your account has been changed to status $status, and is ". "currently unusable. Please contact your project leader ". "to find out why.", 1); } } # # Standard options for anyone. # if (isset($uid)) { echo "

Start a Project\n"; echo "

Join a Project\n"; } else { echo "

Start a Project\n"; echo "

Join a Project\n"; } echo "


"; echo ""; echo ""; echo "$login_status"; # # Present either a login box, or a logout box # if (isset($uid)) { echo "\n"; } else { echo "\n"; } ?>
Username:
Password: