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

#
# Only known and logged in users can look at experiments.
#
13 14 15
$this_user = CheckLoginOrDie();
$uid       = $this_user->uid();
$isadmin   = ISADMIN();
16 17 18

#
# Verify page arguments.
19 20 21 22 23 24
#
$reqargs = RequiredPageArguments("template", PAGEARG_TEMPLATE);
$optargs = OptionalPageArguments("expand",   PAGEARG_INTEGER);

if (!isset($expand)) {
    $expand = 0;
25
}
26 27 28 29 30 31 32

#
# Standard Testbed Header after argument checking.
#
PAGEHEADER("Experiment Template History");

#
33
# Check permission.
34
#
35
if (! $template->AccessCheck($this_user, $TB_EXPT_READINFO)) {
36 37 38 39
    USERERROR("You do not have permission to view experiment template ".
	      "$guid/$version!", 1);
}

40
echo $template->PageHeader();
41
echo "<br><br>\n";
42
$template->ShowHistory($expand);
43 44 45 46 47 48

#
# Standard Testbed Footer
# 
PAGEFOOTER();
?>