Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c282279c
Commit
c282279c
authored
Aug 07, 2003
by
Leigh B. Stoller
Browse files
Remove this file; does not appear to be used.
parent
20dd2416
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/vistopology.php3
deleted
100644 → 0
View file @
20dd2416
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
#
include
(
"defs.php3"
);
#
# Standard Testbed Header
#
PAGEHEADER
(
"Graphic Visualization of Topology"
);
#
# Only known and logged in users can end experiments.
#
$uid
=
GETLOGIN
();
LOGGEDINORDIE
(
$uid
);
#
# Verify page arguments.
#
if
(
!
isset
(
$pid
)
||
strcmp
(
$pid
,
""
)
==
0
)
{
USERERROR
(
"You must provide a Project ID."
,
1
);
}
if
(
!
isset
(
$eid
)
||
strcmp
(
$eid
,
""
)
==
0
)
{
USERERROR
(
"You must provide an Experiment ID."
,
1
);
}
$exp_eid
=
$eid
;
$exp_pid
=
$pid
;
#
# Check to make sure this is a valid PID/EID tuple.
#
if
(
!
TBValidExperiment
(
$exp_pid
,
$exp_eid
))
{
USERERROR
(
"The experiment
$exp_eid
is not a valid experiment "
.
"in project
$exp_pid
."
,
1
);
}
#
# Verify Permission.
#
if
(
!
TBExptAccessCheck
(
$uid
,
$exp_pid
,
$exp_eid
,
$TB_EXPT_READINFO
))
{
USERERROR
(
"You do not have permission to view experiment
$exp_eid
!"
,
1
);
}
#
# Spit out an image that refers to a php script. That script will run and
# send back the GIF image contents.
#
echo
"<br>
<center>
<img src='top2image.php3?pid=
$exp_pid
&eid=
$exp_eid
' align=center>
</center>
\n
"
;
#
# Dump the NS file so that the user can cross reference the visualization
# against the NS file that created it.
#
$query_result
=
DBQueryFatal
(
"SELECT nsfile from nsfiles where pid='
$pid
' and eid='
$eid
'"
);
if
(
mysql_num_rows
(
$query_result
))
{
$row
=
mysql_fetch_array
(
$query_result
);
$nsfile
=
$row
[
nsfile
];
echo
"<br><br>
\n
"
;
echo
"<XMP>
$nsfile
</XMP>
\n
"
;
flush
();
}
#
# Standard Testbed Footer
#
PAGEFOOTER
();
?>
Write
Preview
Supports
Markdown
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