portal_mainsite.php 6.48 KB
Newer Older
1 2
<?php
#
3
# Copyright (c) 2006-2019 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 23 24 25 26 27 28 29 30 31 32 33 34
# 
# {{{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/>.
# 
# }}}
#
#

#
# So, we could be coming in on the alternate APT address (virtual server)
# which causes cookie problems. I need to look into avoiding this problem
# but for now, just change the global value of the TBAUTHDOMAIN when we do.
# The downside is that users will have to log in twice if they switch back
# and forth.
#
if ($_SERVER["SERVER_NAME"] == "www.aptlab.net") {
    $ISVSERVER    = 1;
35
    $ISEMULAB     = 0;
36 37 38 39 40 41
    $ISAPT        = 1;
    $TBAUTHDOMAIN = ".aptlab.net";
    $COOKDIEDOMAIN= ".aptlab.net";
    $APTHOST      = "www.aptlab.net";
    $WWWHOST      = "www.aptlab.net";
    $APTBASE      = "https://www.aptlab.net";
42
    $SUPPORT      = "portal-ops@aptlab.net";
43 44
    $APTMAIL      = "APT Operations <$SUPPORT>";
    $APTMAILTO    = "<a href='mailto:$SUPPORT'>APT Operations</a>";
Leigh Stoller's avatar
Leigh Stoller committed
45 46 47 48
    $APTTITLE     = "APT";
    $FAVICON      = "aptlab.ico";
    $APTLOGO      = "aptlogo.png";
    $APTSTYLE     = "apt.css";
49 50 51 52 53 54 55 56
    $GOOGLEUA     = 'UA-42844769-3';
    $TBMAILTAG    = "aptlab.net";
    $EXTENSIONS   = "portal-extensions@aptlab.net";
    $TBAUTHTIMEOUT= (24 * 3600 * 7);
    # For devel trees
    if (preg_match("/\/([\w\/]+)$/", $WWW, $matches)) {
        $APTBASE .= "/" . $matches[1];
    }
57
    $PORTAL_MANUAL         = "http://docs.aptlab.net";
58
    $PORTAL_WIKI           = null;
59 60
    $PORTAL_HELPFORUM      = "apt-users";
    $PORTAL_PASSWORD_HELP  = "Aptlab.net or Emulab.net Username";
61
    $PORTAL_NSFNUMBER      = "1338155";
62 63 64 65
    $DEFAULT_AGGREGATE     = "Utah APT";
    $DEFAULT_AGGREGATE_URN = "urn:publicid:IDN+apt.emulab.net+authority+cm";
    $PORTAL_GENESIS        = "aptlab";
    $PORTAL_NAME           = "APT";
66 67 68 69 70 71 72 73
}
elseif ($_SERVER["SERVER_NAME"] == "www.cloudlab.us") {
    $ISVSERVER    = 1;
    $TBAUTHDOMAIN = ".cloudlab.us";
    $COOKDIEDOMAIN= "www.cloudlab.us";
    $APTHOST      = "www.cloudlab.us";
    $WWWHOST      = "www.cloudlab.us";
    $APTBASE      = "https://www.cloudlab.us";
74
    $SUPPORT      = "portal-ops@cloudlab.us";
75 76
    $APTMAIL      = "Cloudlab Operations <$SUPPORT>";
    $APTMAILTO    = "<a href='mailto:$SUPPORT'>Cloulab Operations</a>";
77 78 79 80
    $APTTITLE     = "CloudLab";
    $FAVICON      = "cloudlab.ico";
    $APTLOGO      = "cloudlogo.png";
    $APTSTYLE     = "cloudlab.css";
81
    $ISEMULAB     = 0;
82 83 84 85 86 87 88 89 90 91
    $ISCLOUD      = 1;
    $GOOGLEUA     = 'UA-42844769-2';
    $TBMAILTAG    = "cloudlab.us";
    $EXTENSIONS   = "portal-extensions@cloudlab.us";
    $TBAUTHTIMEOUT= (24 * 3600 * 14);
    # For devel trees
    if (preg_match("/\/([\w\/]+)$/", $WWW, $matches)) {
	$APTBASE .= "/" . $matches[1];
    }
    $PORTAL_MANUAL       = "http://docs.cloudlab.us";
92
    $PORTAL_WIKI         = null;
93 94
    $PORTAL_HELPFORUM    = "cloudlab-users";
    $PORTAL_PASSWORD_HELP= "CloudLab.us or Emulab.net Username";
95
    $PORTAL_NSFNUMBER    = "1419199";
96 97 98 99 100 101 102 103 104 105
    $DEFAULT_AGGREGATE   = "Utah Cloudlab";
    $PORTAL_GENESIS      = "cloudlab";
    $PORTAL_NAME         = "CloudLab";
}
elseif ($ISALTDOMAIN && $_SERVER["SERVER_NAME"] == "www.phantomnet.org") {
    $ISVSERVER    = 1;
    $TBAUTHDOMAIN = ".phantomnet.org";
    $COOKDIEDOMAIN= "www.phantomnet.org";
    $APTHOST      = "www.phantomnet.org";
    $WWWHOST      = "www.phantomnet.org";
106
    $APTBASE      = "https://www.phantomnet.org"; 
107
    $SUPPORT      = "portal-ops@phantomnet.org";
108 109
    $APTMAIL      = "PhantomNet Operations <$SUPPORT>";
    $APTMAILTO    = "<a href='mailto:$SUPPORT'>PhantomNet Operations</a>";
110 111 112 113
    $APTTITLE     = "PhantomNet";
    $FAVICON      = "phantomnet.ico";
    $APTLOGO      = "phantomlogo.png";
    $APTSTYLE     = "phantomnet.css";
114
    $ISEMULAB     = 0;
115 116 117 118 119 120 121 122 123
    $ISPNET       = 1;
    #$GOOGLEUA     = 'UA-42844769-2';
    $TBMAILTAG    = "phantomnet.org";
    $EXTENSIONS   = "portal-extensions@phantomnet.org";
    $TBAUTHTIMEOUT= (24 * 3600 * 14);
    # For devel trees
    if (preg_match("/\/([\w\/]+)$/", $WWW, $matches)) {
	$APTBASE .= "/" . $matches[1];
    }
124
    $PORTAL_MANUAL         = "http://docs.phantomnet.org";
125
    $PORTAL_WIKI           = "https://wiki.phantomnet.org/wiki/phantomnet";
126
    $PORTAL_HELPFORUM      = "phantomnet-users";
Leigh Stoller's avatar
Leigh Stoller committed
127
    $PORTAL_PASSWORD_HELP  = "PhantomNet.org or Emulab.net Username";
128
    $PORTAL_NSFNUMBER      = "1305384";
129
    $DEFAULT_AGGREGATE     = "Emulab";
Leigh Stoller's avatar
Leigh Stoller committed
130
    $DEFAULT_AGGREGATE_URN = "urn:publicid:IDN+emulab.net+authority+cm";
131 132 133
    $PORTAL_GENESIS        = "phantomnet";
    $PORTAL_NAME           = "PhantomNet";
}
134 135 136 137 138 139 140 141
elseif ($_SERVER["SERVER_NAME"] == "www.powderwireless.net") {
    $ISVSERVER    = 1;
    $TBAUTHDOMAIN = ".powderwireless.net";
    $COOKDIEDOMAIN= "www.powderwireless.net";
    $APTHOST      = "www.powderwireless.net";
    $WWWHOST      = "www.powderwireless.net";
    $APTBASE      = "https://www.powderwireless.net";
    $SUPPORT      = "powder-ops@powderwireless.net";
142 143
    $APTMAIL      = "Powder Wireless Operations <$SUPPORT>";
    $APTMAILTO    = "<a href='mailto:$SUPPORT'>Powder Wireless Operations</a>";
144 145 146 147 148 149
    $APTTITLE     = "Powder";
    $FAVICON      = "powder.ico";
    $APTLOGO      = "powderlogo.png";
    $APTSTYLE     = "powder.css";
    $ISEMULAB     = 0;
    $ISPOWDER     = 1;
150
    $GOOGLEUA     = 'UA-42844769-7';
151 152 153 154 155 156 157 158
    $TBMAILTAG    = "powderwireless.net";
    $EXTENSIONS   = "portal-extensions@powderwireless.net";
    $TBAUTHTIMEOUT= (24 * 3600 * 14);
    # For devel trees
    if (preg_match("/\/([\w\/]+)$/", $WWW, $matches)) {
	$APTBASE .= "/" . $matches[1];
    }
    $PORTAL_MANUAL         = "http://docs.powderwireless.net";
159
    $PORTAL_WIKI           = null;
160 161
    $PORTAL_HELPFORUM      = "powder-users";
    $PORTAL_PASSWORD_HELP  = "powderwireless.net or emulab.net Username";
162
    $PORTAL_NSFNUMBER      = false;
163 164 165 166 167
    $DEFAULT_AGGREGATE     = "Emulab";
    $DEFAULT_AGGREGATE_URN = "urn:publicid:IDN+emulab.net+authority+cm";
    $PORTAL_GENESIS        = "powder";
    $PORTAL_NAME           = "Powder";
}
168
?>