Commit 99c7b21b authored by Leigh B. Stoller's avatar Leigh B. Stoller

Wrap up netbuild in php for Chad.

parent e061250c
......@@ -46,6 +46,12 @@ TUTFILES += $(wildcard $(SRCDIR)/tutorial/*.php3)
TUTFILES += $(wildcard $(SRCDIR)/tutorial/*.ns)
TUTFILES += $(SRCDIR)/tutorial/tb_compat.tcl
BUIFILES = $(wildcard $(SRCDIR)/buildui/*.html)
BUIFILES += $(wildcard $(SRCDIR)/buildui/*.jpg)
BUIFILES += $(wildcard $(SRCDIR)/buildui/*.gif)
BUIFILES += $(wildcard $(SRCDIR)/buildui/*.php3)
BUIFILES += $(wildcard $(SRCDIR)/buildui/*.class)
WEBDBFILES = $(wildcard $(SRCDIR)/webdb/*.php3)
#
......@@ -57,12 +63,14 @@ ALLDOCS = $(notdir $(DOCFILES))
ALLTUTS = $(notdir $(TUTFILES))
ALLICONS = $(notdir $(AUTOICONS))
ALLWEBDB = $(notdir $(WEBDBFILES))
ALLBUI = $(notdir $(BUIFILES))
install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES)) \
$(addprefix $(INSTALL_WWWDIR)/pix/, $(ALLPIXES)) \
$(addprefix $(INSTALL_WWWDIR)/tutorial/, $(ALLTUTS)) \
$(addprefix $(INSTALL_WWWDIR)/doc/, $(ALLDOCS)) \
$(addprefix $(INSTALL_WWWDIR)/webdb/, $(ALLWEBDB)) \
$(addprefix $(INSTALL_WWWDIR)/buildui/, $(ALLBUI)) \
$(addprefix $(INSTALL_WWWDIR)/autostatus-icons/, $(ALLICONS))
cd $(INSTALL_WWWDIR) && \
if test -d ../webglimpse; \
......
<?php
chdir("..");
require("defs.php3");
PAGEHEADER("NetBuild");
#
# Only known and logged in users can do this.
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
$isadmin = ISADMIN($uid);
if (!$isadmin) {
USERERROR("You do not have permission to use this interface!", 1);
}
chdir("buildui");
?>
<applet code="Netbuild.class" width=640 height=480>
<param name="exporturl"
value="https://www.mini.emulab.net/beginexp_form.php3">
<pre>The applet should be right here. Must be an error or
something.</pre>
</applet>
<pre>
Helpful Hints:
To create nodes, drag them from the bar on the left into the work area
in the middle.
To link all currently selected node(s)/lan(s) to another node/lan, hold
ctrl and click on that node/lan.
To select multiple items, use a sweeping rectangle or hold shift (or
both.) Use this to change parameters for a large group of things at once.
</pre>
<?php
#
# Standard Testbed Footer
#
PAGEFOOTER();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment