All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

statechange.php 869 Bytes
Newer Older
1 2 3
<?php
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
5 6 7 8 9 10 11
# All rights reserved.
#
include("defs.php3");

$currentusage  = 0;

#
12
# Only known and logged in users.
13
#
14 15 16
$this_user = CheckLoginOrDie();
$uid       = $this_user->uid();
$isadmin   = ISADMIN();
17 18 19 20 21

PAGEBEGINNING("Experiment State Change", 0, 1);

#
# Verify page arguments.
22 23 24
#
$reqargs = RequiredPageArguments("experiment", PAGEARG_EXPERIMENT,
				 "state",      PAGEARG_STRING);
25

26 27 28
# Need these below.
$pid = $experiment->pid();
$eid = $experiment->eid();
29 30 31 32 33 34 35 36 37 38 39

echo "<div class=contentbody id=statechange>\n";
echo "<br><br><font size=+1>
          Emulab experiment $pid/$eid is now $state.</font><br>\n";
echo "<br><br>\n";
echo "<center><button name=close type=button onClick='window.close();'>";
echo "Close Window</button></center>\n";
echo "</div>\n";
echo "</body></html>";

?>