index.php3 3.82 KB
Newer Older
1 2
<?php
#
3
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 
# {{{EMULAB-LICENSE
# 
# This file is part of the Emulab network testbed software.
# 
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# 
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
# License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
# 
# }}}
Leigh Stoller's avatar
Leigh Stoller committed
23
#
24 25
require("defs.php3");

26 27
$optargs = OptionalPageArguments("stayhome", PAGEARG_BOOLEAN);

28 29 30
#
# The point of this is to redirect logged in users to their My Emulab
# page. 
31
#
32 33
if (($this_user = CheckLogin($check_status))) {
    $check_status = $check_status & CHECKLOGIN_STATUSMASK;
34 35 36 37
    if ($check_status == CHECKLOGIN_MAYBEVALID) {
	# Maybe the reason was because they where not using HTTPS ...
	RedirectHTTPS();
    }
38
    
39 40
    if (($firstinitstate = TBGetFirstInitState())) {
	unset($stayhome);
41
    }
42 43 44 45 46 47 48 49
    if (!isset($stayhome)) {
	if ($check_status == CHECKLOGIN_LOGGEDIN) {
	    if ($firstinitstate == "createproject") {
	        # Zap to NewProject Page,
 	        header("Location: $TBBASE/newproject.php3");
	    }
	    else {
		# Zap to My Emulab page.
50 51
		header("Location: $TBBASE/".
		       CreateURL("showuser", $this_user));
52 53 54
	    }
	    return;
	}
55 56 57 58
    }
    # Fall through; display the page.
}

59
#
60
# Standard Testbed Header
61
#
62
PAGEHEADER("Emulab - Network Emulation Testbed Home",NULL,$RSS_HEADER_NEWS);
63

64 65 66 67 68 69 70 71 72
#
# Special banner message.
#
$message = TBGetSiteVar("web/banner");
if ($message != "") {
    echo "<center><font color=Red size=+1>\n";
    echo "$message\n";
    echo "</font></center><br>\n";
}
73

74 75 76 77 78 79 80
if ($TBMAINSITE) {
    echo "<span class='picture'>
            <center><font size=-1>In Memoriam</font></center><a href=jay.php>
            <img width=80 height=85 src=jay.jpg></a><br clear=left>
            <center><font size=-1>Jay Lepreau<br>03/52--09/08
            </font></center></span><br>\n";
}
81

82
?>
83 84 85
<p>
    <em>Emulab</em> is a network testbed, giving researchers a wide range of
        environments in which to develop, debug, and evaluate their systems.
86 87
    The name Emulab refers both to a <strong>facility</strong> and to a
    <strong>software system</strong>.
88 89 90 91 92 93
    The <a href="http://www.emulab.net">primary Emulab installation</a> is run
        by the
        <a href="http://www.flux.utah.edu">Flux Group</a>, part of the
        <a href="http://www.cs.utah.edu">School of Computing</a> at the
        <a href="http://www.utah.edu">University of Utah</a>.
    There are also installations of the Emulab software at more than
94
        <a href="http://users.emulab.net/trac/emulab/wiki/OtherEmulabs">two
95 96
        dozen sites</a> around the world, ranging from testbeds with a handful
        of nodes up to testbeds with hundreds of nodes.
97
    Emulab is <a href="http://www.emulab.net/expubs.php">widely used</a>
98 99
        by computer science researchers in the fields of networking and
        distributed systems.
100
    It is also designed to support <a href="http://users.emulab.net/trac/emulab/wiki/Education">education</a>, and has been used to <a href="http://users.emulab.net/trac/emulab/wiki/Classes">teach
101 102 103
        classes</a> in those fields.
</p>

104 105 106 107 108
<?php
#
# Allow for a site specific front page 
#
$sitefile = "index-" . strtolower($THISHOMEBASE) . ".html";
109

110 111 112 113 114 115 116
if (!file_exists($sitefile)) {
    if ($TBMAINSITE)
	$sitefile = "index-mainsite.html";
    else
	$sitefile = "index-nonmain.html";
}
readfile("$sitefile");
117

118
#
119
# Standard Testbed Footer
120
# 
121
PAGEFOOTER();
122
?>