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

PAGEHEADER("NetBuild");

#
# Only known and logged in users can do this.
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
$isadmin = ISADMIN($uid);

19
20
21
#if (!$isadmin) {
#    USERERROR("You do not have permission to use this interface!", 1);
#}
22
23
24

chdir("buildui");

Chad Barb's avatar
   
Chad Barb committed
25
26
27
28
if (isset($action) && $action == "modify") {
    echo "<h3>Modifying $pid/$eid:</h3>";
}

29
?>
30

Chad Barb's avatar
   
Chad Barb committed
31
<applet code="Netbuild.class" width=800 height=600 MAYSCRIPT>
Chad Barb's avatar
   
Chad Barb committed
32
  <param name='exporturl'
Chad Barb's avatar
   
Chad Barb committed
33
         value="<?php echo $TBBASE?>/buildui/nssave.php3">
Chad Barb's avatar
   
Chad Barb committed
34
35
36
37
38
39
40
41
42
  <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'
43
         value="<?php echo $TBBASE?>/beginexp_html.php3">
Chad Barb's avatar
   
Chad Barb committed
44
45
46
47
48
49
50
<?php
    if (isset($action) && $action == "modify") {
	echo "<param name='action' value='modify'>";
	echo "<param name='pid' value='$pid'>";
	echo "<param name='eid' value='$eid'>";
    }
?>
51
<pre>
Chad Barb's avatar
   
Chad Barb committed
52
NetBuild requires Java.
53

Chad Barb's avatar
   
Chad Barb committed
54
55
56
57
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.)
58

Chad Barb's avatar
   
Chad Barb committed
59
60
Once you've gotten your Java on, 
please come back and enjoy NetBuild.
61
62
63
64
65
66
We'll still be here waiting for you.	

   - Testbed Ops
</pre>
</applet>

Chad Barb's avatar
Chad Barb committed
67
<hr>
68
<h2>Basic usage:</h2>
Chad Barb's avatar
   
Chad Barb committed
69
<ul>
70
<li>
Chad Barb's avatar
   
Chad Barb committed
71
  Drag Nodes and LANs from the <i>Palette</i> on the left into the <i>Workarea</i> in the middle.
72
73
</li>
<li>
Chad Barb's avatar
   
Chad Barb committed
74
  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.
75
76
</li>
<li>
Chad Barb's avatar
   
Chad Barb committed
77
  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.
78
</li>
Chad Barb's avatar
   
Chad Barb committed
79
</ul>
Chad Barb's avatar
Chad Barb committed
80
<p>
81
<a href="../doc/docwrapper.php3?docname=netbuilddoc.html">Netbuild Full Reference</a>
Chad Barb's avatar
Chad Barb committed
82
</p>
83
84
85
86
87
88
89

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