Commit 14d06c56 authored by Leigh Stoller's avatar Leigh Stoller

Cleanup as the result of new backend rmuser script.

parent 22da44de
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -91,23 +91,31 @@ if (!$confirmed) {
#
TBGroupUnixInfo($pid, $pid, $unix_gid, $unix_name);
echo "<br>
Group '$gid' in project '$pid' is being removed!<br><br>
This will take a minute or two. <b>Please</b> do not click the Stop
button during this time. If you do not receive notification within
a reasonable amount of time, please contact $TBMAILADDR.<br>\n";
flush();
#
# Run the script. They will remove the group directory and the unix group.
# Run the script. They will remove the group directory and the unix group,
# and the DB state.
#
SUEXEC($uid, $unix_gid, "webrmgroup $pid $gid", 1);
#
# Now safe to delete all members of the group, then delete the group.
# Warm fuzzies.
#
DBQueryFatal("delete from group_membership where pid='$pid' and gid='$gid'");
DBQueryFatal("delete from groups where pid='$pid' and gid='$gid'");
echo "<br>
<b>Done!</b>
<br>\n";
#
# Warm fuzzies.
#
echo "<center><h2>
Group $gid in Project $pid has been removed with prejudice!
</h2></center>\n";
# Back to ...
#
echo "<br>
<A href='showproject.php3?pid=$pid'>Back to Project page</a>\n";
#
# Standard Testbed Footer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment