bui.php3 2.47 KB
Newer Older
1
<?php
Leigh Stoller's avatar
Leigh Stoller committed
2 3
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
Leigh Stoller's avatar
Leigh Stoller committed
5 6
# All rights reserved.
#
7 8
chdir("..");
require("defs.php3");
9
chdir("buildui");
10 11 12 13

#
# Only known and logged in users can do this.
#
14 15 16
$this_user = CheckLoginOrDie();
$uid       = $this_user->uid();
$isadmin   = ISADMIN();
17

18 19 20 21 22
#
# Verify page arguments.
#
$optargs = OptionalPageArguments("action", PAGEARG_STRING,
				 "experiment", PAGEARG_EXPERIMENT);
23

Chad Barb's avatar
Chad Barb committed
24
if (isset($action) && $action == "modify") {
25 26 27 28 29
    if (!isset($experiment)) {
	USERERROR("Must provide experiment to modify!", 1);
    }
    $pid = $experiment->pid();
    $eid = $experiment->eid();
Chad Barb's avatar
Chad Barb committed
30 31 32
    echo "<h3>Modifying $pid/$eid:</h3>";
}

33 34 35 36 37
#
# Standard Testbed Header
#
PAGEHEADER("NetBuild");

38
?>
39

40
<applet code="Netbuild.class" width=800 height=600 MAYSCRIPT>
Chad Barb's avatar
Chad Barb committed
41
  <param name='exporturl'
42
         value="<?php echo $TBBASE?>/buildui/nssave.php3">
Chad Barb's avatar
Chad Barb committed
43 44 45 46 47 48 49 50 51
  <param name='importurl'
         value="<?php echo $TBBASE?>/shownsfile.php3">
  <param name='modifyurl'
         value="<?php echo $TBBASE?>/modifyexp.php3">
  <param name='uid'
	 value="<?php echo $uid?>">
  <param name='auth'
	 value="<?php echo $HTTP_COOKIE_VARS[$TBAUTHCOOKIE]?>">
  <param name='expcreateurl'
52
         value="<?php echo $TBBASE?>/beginexp_html.php3">
Chad Barb's avatar
Chad Barb committed
53 54 55 56 57 58 59
<?php
    if (isset($action) && $action == "modify") {
	echo "<param name='action' value='modify'>";
	echo "<param name='pid' value='$pid'>";
	echo "<param name='eid' value='$eid'>";
    }
?>
60
<pre>
Chad Barb's avatar
Chad Barb committed
61
NetBuild requires Java.
62

Chad Barb's avatar
Chad Barb committed
63 64 65 66
If you want to use NetBuild,
you should either enable Java in your browser 
or use the latest version of a Java-compliant browser 
(such as Mozilla, Netscape or Internet Explorer.)
67

Chad Barb's avatar
Chad Barb committed
68 69
Once you've gotten your Java on, 
please come back and enjoy NetBuild.
70 71 72 73 74 75
We'll still be here waiting for you.	

   - Testbed Ops
</pre>
</applet>

Chad Barb's avatar
Chad Barb committed
76
<hr>
77
<h2>Basic usage:</h2>
Chad Barb's avatar
Chad Barb committed
78
<ul>
79
<li>
Chad Barb's avatar
Chad Barb committed
80
  Drag Nodes and LANs from the <i>Palette</i> on the left into the <i>Workarea</i> in the middle.
81 82
</li>
<li>
Chad Barb's avatar
Chad Barb committed
83
  To link a Node to a Node (or to a LAN,) select the node (by clicking it,) then hold "ctrl" and click on the node (or LAN) you wish to link it to.
84 85
</li>
<li>
Chad Barb's avatar
Chad Barb committed
86
  Clicking the "create experiment" button will send you to the Emulab "create experiment" web page, automatically generating and sending an NS file for your designed topology along. From that page, you may create the experiment and/or view the generated NS file.
87
</li>
Chad Barb's avatar
Chad Barb committed
88
</ul>
Chad Barb's avatar
Chad Barb committed
89
<p>
90
<a href="<? echo $WIKIDOCURL ?>/netbuilddoc">Netbuild Full Reference</a>
Chad Barb's avatar
Chad Barb committed
91
</p>
92 93 94 95 96 97 98

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