Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
47e55c74
Commit
47e55c74
authored
Jun 30, 2004
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the usual install goo for the hyperviewer directory, plus docwrapper
and php wrapper.
parent
def21689
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
0 deletions
+114
-0
www/GNUmakefile.in
www/GNUmakefile.in
+7
-0
www/hyperviewer/docwrapper.php3
www/hyperviewer/docwrapper.php3
+65
-0
www/hyperviewer/hyperviewer.php3
www/hyperviewer/hyperviewer.php3
+42
-0
No files found.
www/GNUmakefile.in
View file @
47e55c74
...
...
@@ -80,6 +80,11 @@ NLFILES += $(wildcard $(SRCDIR)/netlab/*.txt)
WEBDBFILES = $(wildcard $(SRCDIR)/webdb/*.php3)
WEBDBFILES += $(wildcard $(SRCDIR)/webdb/*.php)
HYFILES = $(wildcard $(SRCDIR)/hyperviewer/*.php3)
HYFILES += $(wildcard $(SRCDIR)/hyperviewer/*.html)
HYFILES += $(wildcard $(SRCDIR)/hyperviewer/*.jpg)
HYFILES += $(wildcard $(SRCDIR)/hyperviewer/*.gif)
# need to make it *.gz; with simply "*",
# we end up sucking over "CVS"
DOWNLOADFILES = $(wildcard $(SRCDIR)/downloads/*.gz)
...
...
@@ -112,6 +117,7 @@ ALLDOWNLOADS = $(notdir $(DOWNLOADFILES))
ALLCVSWEB = $(notdir $(CVSWEBFILES))
ALLBUI = $(notdir $(BUIFILES))
ALLNL = $(notdir $(NLFILES))
ALLHY = $(notdir $(HYFILES))
install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES)) \
$(addprefix $(INSTALL_WWWDIR)/pix/, $(ALLPIXES)) \
...
...
@@ -121,6 +127,7 @@ install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES)) \
$(addprefix $(INSTALL_WWWDIR)/downloads/, $(ALLDOWNLOADS)) \
$(addprefix $(INSTALL_WWWDIR)/buildui/, $(ALLBUI)) \
$(addprefix $(INSTALL_WWWDIR)/netlab/, $(ALLNL)) \
$(addprefix $(INSTALL_WWWDIR)/hyperviewer/, $(ALLHY)) \
$(addprefix $(INSTALL_WWWDIR)/autostatus-icons/, $(ALLICONS)) \
$(addprefix $(INSTALL_LIBEXECDIR)/, websearch) \
$(addprefix $(INSTALL_WWWDIR)/cvsweb/, $(ALLCVSWEB))
...
...
www/hyperviewer/docwrapper.php3
0 → 100644
View file @
47e55c74
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# All rights reserved.
#
chdir
(
".."
);
require
(
"defs.php3"
);
chdir
(
"hyperviewer"
);
# Page arguments.
$printable
=
$_GET
[
'printable'
];
$docname
=
$_GET
[
'docname'
];
# Pedantic page argument checking. Good practice!
if
(
!
isset
(
$docname
)
||
(
isset
(
$printable
)
&&
!
(
$printable
==
"1"
||
$printable
==
"0"
)))
{
PAGEARGERROR
();
}
if
(
!
isset
(
$printable
))
$printable
=
0
;
#
# Standard Testbed Header
#
if
(
!
$printable
)
{
PAGEHEADER
(
"Emulab Hyperviewer"
);
}
#
# Need to sanity check the path! Allow only [word].html files
#
if
(
!
preg_match
(
"/^[-\w]+\.(html|txt)$/"
,
$docname
))
{
USERERROR
(
"Illegal document name:
$docname
!"
,
1
);
}
if
(
$printable
)
{
#
# Need to spit out some header stuff.
#
echo
"<html>
<head>
<link rel='stylesheet' href='../tbstyle-plain.css' type='text/css'>
</head>
<body>
\n
"
;
}
else
{
echo
"<b><a href=
$REQUEST_URI
&printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
readfile
(
"
$docname
"
);
#
# Standard Testbed Footer
#
if
(
$printable
)
{
echo
"</body>
</html>
\n
"
;
}
else
{
PAGEFOOTER
();
}
?>
www/hyperviewer/hyperviewer.php3
0 → 100644
View file @
47e55c74
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# All rights reserved.
#
chdir
(
".."
);
require
(
"defs.php3"
);
chdir
(
"hyperviewer"
);
# Page arguments.
$printable
=
$_GET
[
'printable'
];
# Pedantic page argument checking. Good practice!
if
(
isset
(
$printable
)
&&
!
(
$printable
==
"1"
||
$printable
==
"0"
))
{
PAGEARGERROR
();
}
if
(
!
isset
(
$printable
))
$printable
=
0
;
#
# Standard Testbed Header
#
if
(
!
$printable
)
{
PAGEHEADER
(
"Emulab Hyperviewer"
);
}
if
(
!
$printable
)
{
echo
"<b><a href=
$REQUEST_URI
?printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
readfile
(
"index.html"
);
#
# Standard Testbed Footer
#
if
(
!
$printable
)
{
PAGEFOOTER
();
}
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment