Commit f06f8750 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add a Resend Project Approval link on the showproject page, since this

is needed more then once a year.
parent 1aa47c68
# Copyright (c) 2000-2003, 2005, 2006 University of Utah and the Flux Group.
# All rights reserved.
# Only known and logged in users can do this.
$this_user = CheckLoginOrDie();
$uid = $this_user->uid();
$isadmin = ISADMIN();
PAGEHEADER("Resend Project Approval Message");
if (!$isadmin) {
USERERROR("You do not have permission to access this page!", 1);
# Verify form arguments.
if (!isset($pid) ||
strcmp($pid, "") == 0) {
USERERROR("You must provide a Project ID.", 1);
# Confirm target is a real project,
if (! ($target_project = Project::Lookup($pid))) {
USERERROR("The project $pid is not a valid project", 1);
if (! ($leader = $target_project->GetLeader())) {
TBERROR("Error getting leader for $pid", 1);
$headuid = $leader->uid();
$headuid_email = $leader->email();
$headname = $leader->name();
TBMAIL("$headname '$headuid' <$headuid_email>",
"Project '$pid' Approval",
"This message is to notify you that your project '$pid'\n".
"has been approved. We recommend that you save this link so that\n".
"you can send it to people you wish to have join your project.\n".
"Otherwise, tell them to go to ${TBBASE} and join it.\n".
" ${TBBASE}/joinproject.php3?target_pid=$pid\n".
"Testbed Operations\n",
"Errors-To: $TBMAIL_WWW");
echo "<center>
PAGEREPLACE(CreateURL("showproject", $target_project));
# Standard Testbed Footer
......@@ -69,6 +69,8 @@ if ($isadmin) {
WRITESUBMENUBUTTON("Delete this project",
WRITESUBMENUBUTTON("Resend Approval Message",
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