Commit e73a834a authored by Kevin Atkinson's avatar Kevin Atkinson

More "PAGEHEADER called before ..." fixes.

parent 5ceddc05
......@@ -13,8 +13,6 @@ $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);
}
......@@ -27,6 +25,8 @@ $optargs = OptionalPageArguments("submit", PAGEARG_STRING,
"message", PAGEARG_ANYTHING);
$pid = $project->pid();
PAGEHEADER("Resend Project Approval Message");
#
# Form to allow text input.
#
......
......@@ -13,8 +13,6 @@ $this_user = CheckLoginOrDie();
$uid = $this_user->uid();
$isadmin = ISADMIN();
PAGEHEADER("Resend Verification Key");
if (!$isadmin) {
USERERROR("You do not have permission to view this page!", 1);
}
......@@ -34,6 +32,8 @@ if (!$key || !strcmp($key, "")) {
USERERROR("$target_uid does not have a valid verification key!", 1);
}
PAGEHEADER("Resend Verification Key");
# Send the email.
TBMAIL("$usr_name '$target_uid' <$usr_email>",
"Your New User Key",
......
......@@ -16,11 +16,6 @@ $isadmin = ISADMIN();
# This will not return if its a sajax request.
include("showlogfile_sup.php3");
#
# Standard Testbed Header
#
PAGEHEADER("Experiment Activity Log");
$reqargs = RequiredPageArguments("experiment", PAGEARG_EXPERIMENT);
# Need these below.
......@@ -40,6 +35,11 @@ if (! $logfile) {
USERERROR("Experiment $pid/$eid is no longer in transition!", 1);
}
#
# Standard Testbed Header
#
PAGEHEADER("Experiment Activity Log");
echo $experiment->PageHeader();
echo "<br /><br />\n";
......
......@@ -16,11 +16,6 @@ $uid = $this_user->uid();
$uid_idx = $this_user->uid_idx();
$isadmin = ISADMIN();
#
# Standard Testbed Header
#
PAGEHEADER("Submit Publication");
#
# Verify feature is enabled
#
......@@ -34,6 +29,11 @@ $optargs = OptionalPageArguments("submit", PAGEARG_STRING,
"idx", PAGEARG_INTEGER,
"formfields", PAGEARG_ARRAY);
#
# Standard Testbed Header
#
PAGEHEADER("Submit Publication");
$also_required = array();
$also_required['article'] = array('conf', 'month');
......
......@@ -17,11 +17,6 @@ $isadmin = ISADMIN();
# This will not return if its a sajax request.
include("showlogfile_sup.php3");
#
# Standard Testbed Header
#
PAGEHEADER("Modify Experiment Template");
#
# Verify page arguments
#
......@@ -40,6 +35,11 @@ if (! $template->AccessCheck($this_user, $TB_EXPT_MODIFY)) {
"$guid/$vers!", 1);
}
#
# Standard Testbed Header
#
PAGEHEADER("Modify Experiment Template");
#
# Spit the form out using the array of data.
#
......
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