Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
f06f8750
Commit
f06f8750
authored
18 years ago
by
Leigh B. Stoller
Browse files
Options
Downloads
Patches
Plain Diff
Add a Resend Project Approval link on the showproject page, since this
is needed more then once a year.
parent
1aa47c68
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
www/resendapproval.php
+71
-0
71 additions, 0 deletions
www/resendapproval.php
www/showproject.php3
+2
-0
2 additions, 0 deletions
www/showproject.php3
with
73 additions
and
0 deletions
www/resendapproval.php
0 → 100644
+
71
−
0
View file @
f06f8750
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003, 2005, 2006 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
#
# 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"
,
"
\n
"
.
"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
"
.
"
\n
"
.
" ${TBBASE}/joinproject.php3?target_pid=
$pid
\n
"
.
"
\n
"
.
"Thanks,
\n
"
.
"Testbed Operations
\n
"
,
"From:
$TBMAIL_APPROVAL
\n
"
.
"Bcc:
$TBMAIL_APPROVAL
\n
"
.
"Errors-To:
$TBMAIL_WWW
"
);
echo
"<center>
<h2>Done!</h2>
</center><br>
\n
"
;
sleep
(
1
);
PAGEREPLACE
(
CreateURL
(
"showproject"
,
$target_project
));
#
# Standard Testbed Footer
#
PAGEFOOTER
();
?>
This diff is collapsed.
Click to expand it.
www/showproject.php3
+
2
−
0
View file @
f06f8750
...
...
@@ -69,6 +69,8 @@ if ($isadmin) {
WRITESUBMENUDIVIDER
();
WRITESUBMENUBUTTON
(
"Delete this project"
,
"deleteproject.php3?pid=
$pid
"
);
WRITESUBMENUBUTTON
(
"Resend Approval Message"
,
"resendapproval.php?pid=
$pid
"
);
}
SUBMENUEND
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment