Commit 8bb974e1 authored by Kevin Atkinson's avatar Kevin Atkinson

Move PAGEHEADER in modifyexp and linktest, see last commit.

parent d2ce75ac
......@@ -202,14 +202,14 @@ if (isset($_REQUEST["start"]) && isset($_REQUEST["level"])) {
return;
}
# Must do this!
CHECKPAGEARGS();
#
# Okay, this is the initial page.
#
PAGEHEADER("Run Linktest");
# Must do this!
CHECKPAGEARGS();
echo "<script>\n";
sajax_show_javascript();
if ($linktest_pid) {
......
......@@ -46,9 +46,7 @@ if (isset($refer) &&
# the user may have visited the last page with http. If they did, send them
# back through https
$referrer = preg_replace("/^http:/i","https:",$referrer);
} else if (isset($referrer)) {
$refer = true;
} else {
} else if (! isset($referrer)) {
$referrer = null;
}
......
......@@ -18,11 +18,6 @@ $isadmin = ISADMIN();
# This will not return if its a sajax request.
include("showlogfile_sup.php3");
#
# Standard Testbed Header
#
PAGEHEADER("Modify Experiment");
$reqargs = RequiredPageArguments("experiment", PAGEARG_EXPERIMENT);
$optargs = OptionalPageArguments("go", PAGEARG_STRING,
"syntax", PAGEARG_STRING,
......@@ -32,6 +27,11 @@ $optargs = OptionalPageArguments("go", PAGEARG_STRING,
"exp_localnsfile", PAGEARG_STRING,
"formfields", PAGEARG_ARRAY);
#
# Standard Testbed Header
#
PAGEHEADER("Modify Experiment");
# Need these below.
$pid = $experiment->pid();
$eid = $experiment->eid();
......
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