Commit e79941dd authored by Leigh Stoller's avatar Leigh Stoller

Messing with frames. If you have your own defs.php3 file, make sure

you pick up the changes in format from the default-defs.php3.

Anyway, I wasted over an hour trying to figure out why I couldn't get the
documents in right hand frame to go through the non-secure server. Turns
out that http://www.emulab.net and https://www.emulab.net are techically
different servers, and browsers have a "security" feature to prevent
"hijacked frames" whatever the hell that is. If the link to be placed in
the target frame is on a different server, it will open a new window
instead. So, by starting a http://www.emulab.net/welcome.html in the right
side, and then trying to put https://www.emulab.net/newproject.php3 in it,
a new window pops up.

Sigh. So, until I figure out a suitable work around, the Welcome frame
documentation is all going through the secure server (slowly of course).
parent 6a4dd599
......@@ -2,8 +2,10 @@
#
# Default definitions. Selected via configure.
#
$TBWWW = "<https://www.emulab.net/>";
$TBBASE = "https://www.emulab.net/";
$WWW = "www.emulab.net";
$TBWWW = "<https://$WWW/>";
$TBBASE = "https://$WWW";
$TBDOCBASE = "http://$WWW";
$TBMAIL_CONTROL = "Testbed Ops <testbed-ops@flux.cs.utah.edu>";
$TBMAIL_WWW = "Testbed WWW <testbed-www@flux.cs.utah.edu>";
$TBMAIL_APPROVE = "Testbed Approval <testbed-approval@flux.cs.utah.edu>";
......
<html>
<head>
<title>Utah Network Testbed</title>
<title>Emulab.Net</title>
<META HTTP-EQUIV="Refresh" Content= "0; URL=start.php3">
</head>
<frameset cols="150,*">
<frame name="fixed" src="index.php3">
<frame name="dynamic" src="welcome.html">
</frameset>
</html>
......@@ -73,14 +73,14 @@ elseif ($uid = GETUID()) {
# So I can test on my home machine easily. This *is* required to make the
# the frames work correctly.
#
echo "<base href=\"$TBBASE\" target=\"dynamic\">\n";
?>
echo "<base href=\"$TBBASE/\" target=\"dynamic\">\n";
</head>
<body>
<basefont size=5>
<a href="welcome.html"><b>Emulab.Net Home</b></a>
<basefont size=4>
echo "</head>
<body>
<basefont size=5>
<a href=\"$TBBASE/welcome.html\"><b>Emulab.Net Home</b></a>
<basefont size=4>\n";
?>
<?php
if (isset($uid)) {
......
<?php
#
# Beware empty spaces (cookies)!
#
# The point of this file is so that when people go to www.emulab.net
# they will be redirected from http://www.emulab.net/index.html to
# https://www.emulab.net/start.php3, so that we can force certain traffic
# through the secure server instead of the plain server. $TBBASE sets the
# base pointer for the secure server. The problem though, is that we
# don't want the documentation to go through the secure server, so
# specify the nonsecure server for the welcome frame using $TBDOCBASE.
#
require("defs.php3");
echo "<html>
<head>
<title>Emulab.Net</title>
<base href=\"$TBBASE/\">
</head>
<frameset cols=\"135,*\">
<frame src=\"index.php3\" name=\"fixed\">
<frame src=\"welcome.html\" name=\"dynamic\">
</frameset>
</html>\n";
?>
......@@ -2,8 +2,10 @@
#
# Leigh's definitions. Selected via configure.
#
$TBWWW = "<https://www.emulab.net/~stoller/www/>";
$TBBASE = "https://www.emulab.net/~stoller/www/";
$WWW = "www.emulab.net/~stoller/www";
$TBWWW = "<https://$WWW>";
$TBBASE = "https://$WWW/";
$TBDOCBASE = "http://$WWW/";
$TBMAIL_CONTROL = "Testbed Ops <stoller@fast.cs.utah.edu>";
$TBMAIL_WWW = "Testbed WWW <stoller@fast.cs.utah.edu>";
$TBMAIL_APPROVE = "Testbed Approval <stoller@fast.cs.utah.edu>";
......
<?php
#
# Leigh's definitions. Selected via configure.
#
$TBWWW = "<http://golden-gw.ballmoss.com:8080/~stoller/testbed/>";
$TBBASE = "http://golden-gw.ballmoss.com:8080/~stoller/testbed/";
#
$WWW = "golden-gw.ballmoss.com:8080/~stoller/testbed";
$TBWWW = "<http://$WWW/>";
$TBBASE = "http://$WWW/";
$TBDOCBASE = "http://$WWW/";
$TBMAIL_CONTROL = "Testbed Ops <stoller@fast.cs.utah.edu>";
$TBMAIL_WWW = "Testbed WWW <stoller@fast.cs.utah.edu>";
$TBMAIL_APPROVE = "Testbed Approval <stoller@fast.cs.utah.edu>";
......
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