showexp.php3 15.4 KB
Newer Older
Leigh B. Stoller's avatar
Leigh B. Stoller committed
1
<?php
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2 3
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
5 6
# All rights reserved.
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
7
include("defs.php3");
8 9 10
require("Sajax.php");
sajax_init();
sajax_export("GetExpState");
Leigh B. Stoller's avatar
Leigh B. Stoller committed
11

12
#
13
# Only known and logged in users can look at experiments.
14
#
15
$uid = GETLOGIN();
16
LOGGEDINORDIE($uid);
Leigh B. Stoller's avatar
Leigh B. Stoller committed
17
$isadmin = ISADMIN($uid);
18
$tag = "Experiment";
Leigh B. Stoller's avatar
Leigh B. Stoller committed
19 20 21
if (!isset($show)) {
    $show = "details";
}
Leigh B. Stoller's avatar
Leigh B. Stoller committed
22 23

#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
24
# Verify page arguments.
25
# 
Leigh B. Stoller's avatar
Leigh B. Stoller committed
26 27 28
if (!isset($pid) ||
    strcmp($pid, "") == 0) {
    USERERROR("You must provide a Project ID.", 1);
29 30
}

Leigh B. Stoller's avatar
Leigh B. Stoller committed
31 32 33 34
if (!isset($eid) ||
    strcmp($eid, "") == 0) {
    USERERROR("You must provide an Experiment ID.", 1);
}
35 36 37 38 39 40
if (!isset($sortby)) {
    if ($pid == $TBOPSPID)
	$sortby = "rsrvtime-down";
    else
	$sortby = "";
}
Leigh B. Stoller's avatar
Leigh B. Stoller committed
41 42
$exp_eid = $eid;
$exp_pid = $pid;
43

Leigh B. Stoller's avatar
Leigh B. Stoller committed
44
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
45
# Check to make sure this is a valid PID/EID tuple.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
46
#
47
if (! TBValidExperiment($exp_pid, $exp_eid)) {
48 49
  USERERROR("The experiment $exp_eid is not a valid experiment ".
            "in project $exp_pid.", 1);
Leigh B. Stoller's avatar
Leigh B. Stoller committed
50 51
}

52
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
53
# Verify Permission.
54
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
55 56
if (! TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_READINFO)) {
    USERERROR("You do not have permission to view experiment $exp_eid!", 1);
Leigh B. Stoller's avatar
Leigh B. Stoller committed
57 58
}

59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
#
# For the Sajax Interface
#
function GetExpState($a, $b)
{
    global $pid, $eid;
    
    $expstate = TBExptState($pid, $eid);

    return $expstate;
}
#
# See if this request is to the above function. Does not return
# if it is. Otherwise return and continue on.
#
sajax_handle_client_request();

# Faster to do this after the sajax stuff
include("showstuff.php3");
78
include_once("template_defs.php");
79

Leigh B. Stoller's avatar
Leigh B. Stoller committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
#
# Dump the visualization into its own iframe.
#
function ShowVis($pid, $eid, $zoom = 1.25, $detail = 1) {
    global $bodyclosestring;

    echo "<script type='text/javascript' src='js/wz_dragdrop.js'></script>";

    echo "<center>";
    echo "<div id=fee style='display: block; overflow: hidden; ".
	    "position: relative; z-index:1010; height: 380px; ".
	    "width: 650px; border: 2px solid black;'>\n";
    echo "<div id=myvisdiv style='position:relative;'>\n";

    echo "<img id=myvisimg border=0 ";
    echo "      onLoad=\"setTimeout('dd.recalc()', 1000);\" ";
    echo "      src='top2image.php3?pid=$pid&eid=$eid".
	"&zoom=$zoom&detail=$detail'>\n";
    echo "</div>\n";
    echo "</div>\n";
 
    #
    # This has to happen ...
    #
    $bodyclosestring =
	    "<script type='text/javascript'>
               SET_DHTML(\"myvisdiv\");
             </script>\n";
}

110 111 112 113
#
# Need some DB info.
#
$query_result =
114
    DBQueryFatal("select e.idx,e.state,e.batchmode,e.linktest_pid,".
115 116
		 "       e.paniced,e.panic_date,s.rsrcidx,r.wirelesslans, ".
		 "       e.lockdown ".
117 118
		 "  from experiments as e ".
		 "left join experiment_stats as s on s.exptidx=e.idx ".
119
		 "left join experiment_resources as r on s.rsrcidx=r.idx ".
120
		 "where e.eid='$eid' and e.pid='$pid'");
121 122 123 124 125
$row        = mysql_fetch_array($query_result);
$expindex   = $row["idx"];
$expstate   = $row["state"];
$rsrcidx    = $row["rsrcidx"];
$isbatch    = $row["batchmode"];
126
$wireless   = $row["wirelesslans"];
127
$linktest_running = $row["linktest_pid"];
Leigh B. Stoller's avatar
Leigh B. Stoller committed
128 129
$paniced    = $row["paniced"];
$panic_date = $row["panic_date"];
130
$lockdown   = $row["lockdown"];
131

132
# Template Instance Experiments get special treatment in this page.
133 134 135 136 137 138 139 140 141
$instance = NULL;
if ($EXPOSETEMPLATES) {
     $instance = TemplateInstance::LookupByExptidx($expindex);

     if (! is_null($instance)) {
	 $tag = "Template Instance";
	 $guid = $instance->guid();
	 $vers = $instance->vers();
     }
142 143 144 145 146 147 148
}

#
# Standard Testbed Header.
#
PAGEHEADER("$tag ($pid/$eid)");

149 150 151 152 153 154 155
echo "<script type='text/javascript' language='javascript' src='showexp.js'>";
echo "</script>\n";
echo "<script type='text/javascript' language='javascript'>\n";
sajax_show_javascript();
echo "StartStateChangeWatch('$pid', '$eid', '$expstate');\n";
echo "</script>\n";

156 157 158 159
#
# Get a list of node types and classes in this experiment
#
$query_result =
160 161 162 163 164 165 166
    DBQueryFatal("select distinct v.type,t1.class,v.fixed,".
		 "   t2.type as ftype,t2.class as fclass from virt_nodes as v ".
		 "left join node_types as t1 on v.type=t1.type ".
		 "left join nodes as n on v.fixed is not null and ".
		 "     v.fixed=n.node_id ".
		 "left join node_types as t2 on t2.type=n.type ".
		 "where v.eid='$eid' and v.pid='$pid'");
167
while ($row = mysql_fetch_array($query_result)) {
168 169 170 171 172 173 174 175
    if (isset($row['ftype'])) {
	$classes[$row['fclass']] = 1;
	$types[$row['ftype']] = 1;
    }
    else {
	$classes[$row['class']] = 1;
	$types[$row['type']] = 1;
    }
176 177
}

178
echo "<font size=+2>$tag <b>".
179
     "<a href='showproject.php3?pid=$pid'>$pid</a>/".
180
     "<a href='showexp.php3?pid=$pid&eid=$eid'>$eid</a></b></font>\n";
181
echo "<br /><br />\n";
182
SUBPAGESTART();
183

184
SUBMENUSTART("$tag Options");
185

186
if ($expstate) {
187
    if (TBExptLogFile($exp_pid, $exp_eid)) {
188
	WRITESUBMENUBUTTON("View Activity Logfile",
189
			   "showlogfile.php3?pid=$exp_pid&eid=$exp_eid");
190
    }
191

192
    if ($state == $TB_EXPTSTATE_ACTIVE) {
Leigh B. Stoller's avatar
Leigh B. Stoller committed
193
	WRITESUBMENUBUTTON("Details and Mapping",
194 195 196
			   "shownsfile.php3?pid=$exp_pid&eid=$exp_eid");
    }
    else {
Leigh B. Stoller's avatar
Leigh B. Stoller committed
197
	WRITESUBMENUBUTTON("Experiment Details",
198 199
			   "shownsfile.php3?pid=$exp_pid&eid=$exp_eid");
    }
200 201
    WRITESUBMENUDIVIDER();

202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
    if (!$lockdown) {
        # Swap option.
	if ($isbatch) {
	    if ($expstate == $TB_EXPTSTATE_SWAPPED) {
		WRITESUBMENUBUTTON("Queue Batch Experiment",
			 "swapexp.php3?inout=in&pid=$exp_pid&eid=$exp_eid");
	    }
	    elseif ($expstate == $TB_EXPTSTATE_ACTIVE ||
		    $expstate == $TB_EXPTSTATE_ACTIVATING) {
		WRITESUBMENUBUTTON("Stop Batch Experiment",
			 "swapexp.php3?inout=out&pid=$exp_pid&eid=$exp_eid");
	    }
	    elseif ($expstate == $TB_EXPTSTATE_QUEUED) {
		WRITESUBMENUBUTTON("Dequeue Batch Experiment",
			 "swapexp.php3?inout=pause&pid=$exp_pid&eid=$exp_eid");
	    }
218
	}
219 220 221 222 223 224 225
	else {
	    if ($expstate == $TB_EXPTSTATE_SWAPPED) {
		WRITESUBMENUBUTTON("Swap Experiment In",
			 "swapexp.php3?inout=in&pid=$exp_pid&eid=$exp_eid");
	    }
	    elseif ($expstate == $TB_EXPTSTATE_ACTIVE ||
		    ($expstate == $TB_EXPTSTATE_PANICED && $isadmin)) {
226
		WRITESUBMENUBUTTON(($instance ?
227 228
				    "Terminate Instance" :
				    "Swap Experiment Out"),
229 230 231 232 233 234 235
			 "swapexp.php3?inout=out&pid=$exp_pid&eid=$exp_eid");
	    }
	    elseif ($expstate == $TB_EXPTSTATE_ACTIVATING) {
		WRITESUBMENUBUTTON("Cancel Experiment Swapin",
				   "swapexp.php3?inout=out".
				   "&pid=$exp_pid&eid=$exp_eid");
	    }
236
	}
237
    
238
	if (!$instance && $expstate != $TB_EXPTSTATE_PANICED) {
239 240
	    WRITESUBMENUBUTTON("Terminate Experiment",
			       "endexp.php3?pid=$exp_pid&eid=$exp_eid");
241 242
	}

243
        # Batch experiments can be modifed only when paused.
244
	if (!$instance && ($expstate == $TB_EXPTSTATE_SWAPPED ||
245
	    (!$isbatch && $expstate == $TB_EXPTSTATE_ACTIVE))) {
246 247 248
	    WRITESUBMENUBUTTON("Modify Experiment",
			       "modifyexp.php3?pid=$exp_pid&eid=$exp_eid");
	}
249
    }
250

251
    if ($instance && $expstate == $TB_EXPTSTATE_ACTIVE) {
252
	WRITESUBMENUBUTTON("Start New Experiment Run",
253
			   "template_exprun.php?action=start&guid=$guid".
254
			   "&version=$vers&eid=$exp_eid");
255
    }
256
    
257
    if ($expstate == $TB_EXPTSTATE_ACTIVE) {
258
	WRITESUBMENUBUTTON("Modify Traffic Shaping",
259
			   "delaycontrol.php3?pid=$exp_pid&eid=$exp_eid");
260
    }
261 262
}

263
WRITESUBMENUBUTTON("Modify Metadata",
264
		   "editexp.php3?pid=$exp_pid&eid=$exp_eid");
265

266 267
WRITESUBMENUDIVIDER();

268
if ($expstate == $TB_EXPTSTATE_ACTIVE) {
269 270 271 272 273 274
    WRITESUBMENUBUTTON("Link Tracing/Monitoring",
		       "linkmon_list.php3?pid=$exp_pid&eid=$exp_eid");
    
    #
    # Admin and project/experiment leaders get this option.
    #
275 276 277 278
    if (TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_UPDATE)) {
	WRITESUBMENUBUTTON("Update All Nodes",
			   "updateaccounts.php3?pid=$exp_pid&eid=$exp_eid");
    }
279

280 281 282 283 284
    # Reboot option
    if (TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_MODIFY)) {
	WRITESUBMENUBUTTON("Reboot All Nodes",
			   "boot.php3?pid=$exp_pid&eid=$exp_eid");
    }
285
}
286

287
if (($expstate == $TB_EXPTSTATE_ACTIVE ||
288 289
     $expstate == $TB_EXPTSTATE_ACTIVATING ||
     $expstate == $TB_EXPTSTATE_MODIFY_RESWAP) &&
290 291 292 293 294 295
    (STUDLY() || $EXPOSELINKTEST)) {
    WRITESUBMENUBUTTON(($linktest_running ?
			"Stop LinkTest" : "Run LinkTest"), 
		       "linktest.php3?pid=$exp_pid&eid=$exp_eid".
		       ($linktest_running ? "&kill=1" : ""));
}
Timothy Stack's avatar
Timothy Stack committed
296

297
if ($expstate == $TB_EXPTSTATE_ACTIVE) {
298
    if (STUDLY() && $classes['pcvm']) {
299
	WRITESUBMENUBUTTON("Record Feedback Data",
300 301
			   "feedback.php3?pid=$exp_pid&".
			   "eid=$exp_eid&mode=record");
302 303
    }
}
304 305 306

if (($expstate == $TB_EXPTSTATE_ACTIVE ||
     $expstate == $TB_EXPTSTATE_SWAPPED) &&
307
    STUDLY()) {
308 309
    WRITESUBMENUBUTTON("Clear Feedback Data",
		       "feedback.php3?pid=$exp_pid&eid=$exp_eid&mode=clear");
310 311 312 313
    if ($classes['pcvm']) {
	    WRITESUBMENUBUTTON("Remap Virtual Nodes",
			       "remapexp.php3?pid=$exp_pid&eid=$exp_eid");
    }
314
}
315
    
316 317 318
# Wireless maps if experiment includes wireless lans.
if ($wireless) {
    WRITESUBMENUBUTTON("Wireless Node Map",
319 320 321
		       "floormap.php3".
		       ($expstate == $TB_EXPTSTATE_ACTIVE ?
			"?pid=$exp_pid&eid=$exp_eid" : ""));
322 323
}

324 325
WRITESUBMENUDIVIDER();

326 327 328 329
# History
WRITESUBMENUBUTTON("Show History",
		   "showstats.php3?showby=expt&which=$expindex");

330
if (!$instance && STUDLY()) {
331 332 333 334
    WRITESUBMENUBUTTON("Duplicate Experiment",
		       "beginexp_html.php3?copyid=${exp_pid},${exp_eid}");
}

335 336
if ($EXPOSEARCHIVE) {
    WRITESUBMENUBUTTON("Experiment File Archive",
337
		       "archive_view.php3?exptidx=$expindex");
338 339
}

340
if ($types['garcia'] || $types['static-mica2'] || $types['robot']) {
341 342
    SUBMENUSECTION("Robot/Mote Options");
    WRITESUBMENUBUTTON("Robot/Mote Map",
Timothy Stack's avatar
Timothy Stack committed
343 344 345
		       "robotmap.php3".
		       ($expstate == $TB_EXPTSTATE_ACTIVE ?
			"?pid=$exp_pid&eid=$exp_eid" : ""));
346 347 348 349 350 351 352 353 354 355
    if ($expstate == $TB_EXPTSTATE_SWAPPED) {
	if ($types['static-mica2']) {
	    WRITESUBMENUBUTTON("Selector Applet",
			       "robotrack/selector.php3?".
			       "pid=$exp_pid&eid=$exp_eid");
	}
    }
    elseif ($expstate == $TB_EXPTSTATE_ACTIVE ||
	    $expstate == $TB_EXPTSTATE_ACTIVATING) {
	WRITESUBMENUBUTTON("Tracker Applet",
356 357
			   "robotrack/robotrack.php3?".
			   "pid=$exp_pid&eid=$exp_eid");
358
    }
Timothy Stack's avatar
Timothy Stack committed
359 360
}

361 362
# Blinky lights - but only if they have nodes of the correct type in their
# experiment
363
if ($classes['mote'] && $expstate == $TB_EXPTSTATE_ACTIVE) {
364
    WRITESUBMENUBUTTON("Show Blinky Lights",
365
		   "moteleds.php3?pid=$exp_pid&eid=$exp_eid","moteleds");
366 367
}

Leigh B. Stoller's avatar
Leigh B. Stoller committed
368
if ($isadmin) {
369
    if ($expstate == $TB_EXPTSTATE_ACTIVE) {
370
	SUBMENUSECTION("Beta-Test Options");
371
	WRITESUBMENUBUTTON("Restart Experiment",
372 373
			   "swapexp.php3?inout=restart&pid=$exp_pid".
			   "&eid=$exp_eid");
374 375
	WRITESUBMENUBUTTON("Replay Events",
			   "replayexp.php3?&pid=$exp_pid&eid=$exp_eid");
376

377 378
	SUBMENUSECTION("Admin Options");
	
379 380 381 382
	WRITESUBMENUBUTTON("Send an Idle Info Request",
			   "request_idleinfo.php3?".
			   "&pid=$exp_pid&eid=$exp_eid");
	
383 384 385 386 387 388 389
	WRITESUBMENUBUTTON("Send a Swap Request",
			   "request_swapexp.php3?".
			   "&pid=$exp_pid&eid=$exp_eid");
	
	WRITESUBMENUBUTTON("Force Swap Out (Idle-Swap)",
			   "swapexp.php3?inout=out&force=1".
			   "&pid=$exp_pid&eid=$exp_eid");
Chad Barb's avatar
Chad Barb committed
390
	
391 392 393 394
	SUBMENUSECTIONEND();
    }
}
    
395 396
SUBMENUEND_2A();

397 398
echo "<br>
      <a href='shownsfile.php3?pid=$exp_pid&eid=$exp_eid'>
399
         <img border=1 alt='experiment vis'
Leigh B. Stoller's avatar
Leigh B. Stoller committed
400
              src='showthumb.php3?idx=$rsrcidx'></a>";
401 402

SUBMENUEND_2B();
403

Leigh B. Stoller's avatar
Leigh B. Stoller committed
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
#
# The center area is a form that can show NS file, Details, or Vis.
# IE complicates this, although in retrospect, I could have used plain
# input buttons instead of the fancy rendering kind of buttons, which do not
# work as expected (violates the html spec) in IE. 
#
echo "<script type='text/javascript' language='javascript'>
        function Show(which) {
            document.form1['show'].value = which;
            document.form1.submit();
            return false;
        }
        function Zoom(howmuch) {
            document.form1['zoom'].value = howmuch;
            document.form1.submit();
            return false;
        }
      </script>\n";

echo "<center>\n";
echo "<form action='showexp.php3?pid=$pid&eid=$eid' name=form1 method=post>\n";
echo "<input type=hidden name=show   value=$show>\n";
echo "<input type=hidden name=zoom   value='none'>\n";

428 429 430
echo "<button name=showdetails type=button value=settings
        onclick=\"Show('details');\"
        style='float:center; width:11%;'>Settings</button>\n";
Leigh B. Stoller's avatar
Leigh B. Stoller committed
431 432
echo "<button name=showvis type=button value=vis onclick=\"Show('vis');\"
        style='float:center; width:15%;'>Visualization</button>\n";
433 434
echo "<button name=showns type=button value=ns onclick=\"Show('ns');\"
        style='float:center; width:11%;'>NS File</button>\n";
Leigh B. Stoller's avatar
Leigh B. Stoller committed
435 436 437
echo "<br>\n";

if ($show == "details") {
438 439
    SHOWEXP($exp_pid, $exp_eid);
}
Leigh B. Stoller's avatar
Leigh B. Stoller committed
440
elseif ($show == "ns") {
441
    echo "<center>";
Leigh B. Stoller's avatar
Leigh B. Stoller committed
442
    echo "<iframe width=650 height=380 scrolling=auto
443 444 445 446
                  src='spitnsdata.php3?pid=$exp_pid&eid=$exp_eid'
                  border=2></iframe>\n";
    echo "</center>";
}
Leigh B. Stoller's avatar
Leigh B. Stoller committed
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
elseif ($show == "vis") {
    $newzoom   = 1.15;
    $newdetail = 1;
    
    # Default is whatever we have; to avoid regen of the image.
    $query_result =
	DBQueryFatal("select zoom,detail from vis_graphs ".
		     "where pid='$pid' and eid='$eid'");

    if (mysql_num_rows($query_result)) {
	$row       = mysql_fetch_array($query_result);
	$newzoom   = $row['zoom'];
    }
    
    if (isset($zoom) && $zoom != "none")
	$newzoom = $zoom;

    # Sanity check but lets not worry about throwing an error.
    if (!TBvalid_float($newzoom))
	$newzoom = 1.25;
    if (!TBvalid_integer($newdetail))
	$newdetail = 1;
    
    ShowVis($pid, $eid, $newzoom, $newdetail);

    $zoomout = sprintf("%.2f", $newzoom / 1.25);
    $zoomin  = sprintf("%.2f", $newzoom * 1.25);

    echo "<button name=viszoomout type=button value=$zoomout";
    echo " onclick=\"Zoom('$zoomout');\">Zoom Out</button>\n";
    echo "<button name=viszoomin type=button value=$zoomin";
    echo " onclick=\"Zoom('$zoomin');\">Zoom In</button>\n";
}
echo "</form>\n";
echo "</center>\n";
482

Leigh B. Stoller's avatar
Leigh B. Stoller committed
483 484 485 486 487 488
if (TBExptFirewall($exp_pid, $exp_eid) &&
    ($expstate == $TB_EXPTSTATE_ACTIVE ||
     $expstate == $TB_EXPTSTATE_PANICED ||
     $expstate == $TB_EXPTSTATE_ACTIVATING ||
     $expstate == $TB_EXPTSTATE_SWAPPING)) {
    echo "<center>\n";
489 490 491
    if ($paniced == 2) {
	#
	# Paniced due to failed swapout.
492
	# Only be semi-obnoxious (no blinking) since it was not their fault.
493 494 495 496 497 498 499 500 501 502 503 504
	#
	echo "<br><font size=+1 color=red>".
	     "Your experiment was cut off due to a failed swapout on $panic_date!".
	     "<br>".
	     "You will need to contact testbed operations to make further ".
  	     "changes (swap, terminate) to your experiment.</font>";
    }
    elseif ($paniced) {
	#
	# Paniced due to panic button.
  	# Full-on obnoxious is called for here!
	#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
	echo "<br><font size=+1 color=red><blink>".
	     "Your experiment was cut off via the Panic Button on $panic_date!".
	     "<br>".
	     "You will need to contact testbed operations to make further ".
  	     "changes (swap, terminate) to your experiment.</blink></font>";
    }
    else {
	echo "<br><a href='panicbutton.php3?pid=$exp_pid&eid=$exp_eid'>
                 <img border=1 alt='panic button' src='panicbutton.gif'></a>";
	echo "<br><font color=red size=+2>".
	     " Press the Panic Button to contain your experiment".
	     "</font>\n";
    }
    echo "</center>\n";
}
520
SUBPAGEEND();
521

522
if ($instance &&
523 524 525
    ($expstate == $TB_EXPTSTATE_ACTIVE ||
     $expstate == $TB_EXPTSTATE_PANICED ||
     $expstate == $TB_EXPTSTATE_ACTIVATING)) {
526
    $instance->ShowBindings();
527 528
}

529 530 531
#
# Dump the node information.
#
Mike Hibler's avatar
Mike Hibler committed
532
SHOWNODES($exp_pid, $exp_eid, $sortby, $showclass);
533

Leigh B. Stoller's avatar
Leigh B. Stoller committed
534
if ($isadmin) {
535 536 537 538 539 540 541
    echo "<center>
          <h3>Experiment Stats</h3>
         </center>\n";

    SHOWEXPTSTATS($exp_pid, $exp_eid);
}

542 543 544 545
#
# Standard Testbed Footer
# 
PAGEFOOTER();
546
?>