Commit f014e8b0 authored by Leigh Stoller's avatar Leigh Stoller

Make the new version of beginexp_xml live now that its been through

the paper effort for everyone. I've redirected everything to
beginexp_html.php3 (the front end to the XML version), including the
plab and bui pages.

I've stuck a redirect in the old beginexp.php3, to make it easy to
bring back the old version in case something goes wrong. Just comment
out the lines at the top and reinstall, along with changing the other
links to it.
parent 5a917a7c
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
#
# Remove this if we need to bring this page back.
#
header("Location: beginexp_html.php3?" . $_SERVER['QUERY_STRING']);
exit(0);
include("defs.php3");
#
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -142,7 +142,7 @@ function SPITFORM($formfields, $errors)
global $TBDB_PIDLEN, $TBDB_GIDLEN, $TBDB_EIDLEN, $TBDOCBASE;
global $view, $view_style, $projlist;
PAGEHEADER("Begin a Testbed Experiment (XML Version)");
PAGEHEADER("Begin a Testbed Experiment");
echo "<script language=JavaScript>
<!--
......
......@@ -314,8 +314,9 @@ elseif ($nsfilelocale == "inline") {
# The NS file is encoded in the URL. Must create a temp file
# to hold it, and pass through to the backend.
#
# XXX Hard to believe, but there is no equiv of mkstemp in php3.
#
# Generate a hopefully unique filename that is hard to guess.
# See backend scripts.
#
list($usec, $sec) = explode(' ', microtime());
srand((float) $sec + ((float) $usec * 100000));
$foo = rand();
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2002, 2004 University of Utah and the Flux Group.
# All rights reserved.
#
chdir("..");
......@@ -40,7 +40,7 @@ if (isset($action) && $action == "modify") {
<param name='auth'
value="<?php echo $HTTP_COOKIE_VARS[$TBAUTHCOOKIE]?>">
<param name='expcreateurl'
value="<?php echo $TBBASE?>/beginexp.php3">
value="<?php echo $TBBASE?>/beginexp_html.php3">
<?php
if (isset($action) && $action == "modify") {
echo "<param name='action' value='modify'>";
......
......@@ -384,14 +384,8 @@ function WRITESIDEBAR() {
WRITESIDEBARDIVIDER();
if ($login_status & CHECKLOGIN_STUDLY) {
WRITESIDEBARBUTTON("Begin an Experiment",
$TBBASE, "beginexp_html.php3");
}
else {
WRITESIDEBARBUTTON("Begin an Experiment",
$TBBASE, "beginexp.php3");
}
WRITESIDEBARBUTTON("Begin an Experiment",
$TBBASE, "beginexp_html.php3");
# Put _NEW back when Plab is working again.
WRITESIDEBARBUTTON("Create a PlanetLab Slice",
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2003 University of Utah and the Flux Group.
# Copyright (c) 2003, 2004 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -459,7 +459,7 @@ function MAKENS($formfields) {
#
# Build up a URL to send the user to
#
$url = "beginexp.php3?view_style=plab&formfields[exp_id]=" .
$url = "beginexp_html.php3?view_style=plab&formfields[exp_id]=" .
urlencode($expname) . "&formfields[exp_description]=" .
urlencode($descr) . "&formfields[exp_idleswap]=0" .
"&formfields[exp_noidleswap_reason]=" .
......
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