index.php3 3.14 KB
Newer Older
1 2
<?php
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
3
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
5 6
# All rights reserved.
#
7 8
require("defs.php3");

9 10
$optargs = OptionalPageArguments("stayhome", PAGEARG_BOOLEAN);

11 12 13
#
# The point of this is to redirect logged in users to their My Emulab
# page. 
14
#
15 16
if (($this_user = CheckLogin($check_status))) {
    $check_status = $check_status & CHECKLOGIN_STATUSMASK;
17 18 19 20
    if ($check_status == CHECKLOGIN_MAYBEVALID) {
	# Maybe the reason was because they where not using HTTPS ...
	RedirectHTTPS();
    }
21
    
22 23
    if (($firstinitstate = TBGetFirstInitState())) {
	unset($stayhome);
24
    }
25 26 27 28 29 30 31 32
    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.
33 34
		header("Location: $TBBASE/".
		       CreateURL("showuser", $this_user));
35 36 37
	    }
	    return;
	}
38 39 40 41
    }
    # Fall through; display the page.
}

42
#
43
# Standard Testbed Header
44
#
45
PAGEHEADER("Emulab - Network Emulation Testbed Home",NULL,$RSS_HEADER_NEWS);
46

47 48 49 50 51 52 53 54 55
#
# 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";
}
56

57 58 59 60 61 62 63
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";
}
64

65
?>
66 67 68
<p>
    <em>Emulab</em> is a network testbed, giving researchers a wide range of
        environments in which to develop, debug, and evaluate their systems.
69 70
    The name Emulab refers both to a <strong>facility</strong> and to a
    <strong>software system</strong>.
71 72 73 74 75 76
    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
77
        <a href="http://users.emulab.net/trac/emulab/wiki/OtherEmulabs">two
78 79
        dozen sites</a> around the world, ranging from testbeds with a handful
        of nodes up to testbeds with hundreds of nodes.
80
    Emulab is <a href="http://www.emulab.net/expubs.php">widely used</a>
81 82
        by computer science researchers in the fields of networking and
        distributed systems.
83
    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
84 85 86
        classes</a> in those fields.
</p>

87 88 89 90 91
<?php
#
# Allow for a site specific front page 
#
$sitefile = "index-" . strtolower($THISHOMEBASE) . ".html";
92

93 94 95 96 97 98 99
if (!file_exists($sitefile)) {
    if ($TBMAINSITE)
	$sitefile = "index-mainsite.html";
    else
	$sitefile = "index-nonmain.html";
}
readfile("$sitefile");
100

101
#
102
# Standard Testbed Footer
103
# 
104
PAGEFOOTER();
105
?>