portal_mainsite.php 6.26 KB
Newer Older
1 2
<?php
#
3
# Copyright (c) 2006-2018 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 42
    $ISAPT        = 1;
    $TBAUTHDOMAIN = ".aptlab.net";
    $COOKDIEDOMAIN= ".aptlab.net";
    $APTHOST      = "www.aptlab.net";
    $WWWHOST      = "www.aptlab.net";
    $APTBASE      = "https://www.aptlab.net";
    $APTMAIL      = "APT Operations <portal-ops@aptlab.net>";
43
    $SUPPORT      = "portal-ops@aptlab.net";
44 45 46 47
    $APTTITLE     = "APT";
    $FAVICON      = "aptlab.ico";
    $APTLOGO      = "aptlogo.png";
    $APTSTYLE     = "apt.css";
48 49 50 51 52 53 54 55
    $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];
    }
56
    $PORTAL_MANUAL         = "http://docs.aptlab.net";
57
    $PORTAL_WIKI           = null;
58 59
    $PORTAL_HELPFORUM      = "apt-users";
    $PORTAL_PASSWORD_HELP  = "Aptlab.net or Emulab.net Username";
60
    $PORTAL_NSFNUMBER      = "1338155";
61 62 63 64
    $DEFAULT_AGGREGATE     = "Utah APT";
    $DEFAULT_AGGREGATE_URN = "urn:publicid:IDN+apt.emulab.net+authority+cm";
    $PORTAL_GENESIS        = "aptlab";
    $PORTAL_NAME           = "APT";
65 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";
    $APTMAIL      = "CloudLab Operations <portal-ops@cloudlab.us>";
74
    $SUPPORT      = "portal-ops@cloudlab.us";
75 76 77 78
    $APTTITLE     = "CloudLab";
    $FAVICON      = "cloudlab.ico";
    $APTLOGO      = "cloudlogo.png";
    $APTSTYLE     = "cloudlab.css";
79
    $ISEMULAB     = 0;
80 81 82 83 84 85 86 87 88 89
    $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";
90
    $PORTAL_WIKI         = null;
91 92
    $PORTAL_HELPFORUM    = "cloudlab-users";
    $PORTAL_PASSWORD_HELP= "CloudLab.us or Emulab.net Username";
93
    $PORTAL_NSFNUMBER    = "1419199";
94 95 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";
    $APTBASE      = "https://www.phantomnet.org";
    $APTMAIL      = "PhantomNet Operations <portal-ops@phantomnet.org>";
106
    $SUPPORT      = "portal-ops@phantomnet.org";
107 108 109 110
    $APTTITLE     = "PhantomNet";
    $FAVICON      = "phantomnet.ico";
    $APTLOGO      = "phantomlogo.png";
    $APTSTYLE     = "phantomnet.css";
111
    $ISEMULAB     = 0;
112 113 114 115 116 117 118 119 120
    $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];
    }
121
    $PORTAL_MANUAL         = "http://docs.phantomnet.org";
122
    $PORTAL_WIKI           = "https://wiki.phantomnet.org/wiki/phantomnet";
123
    $PORTAL_HELPFORUM      = "phantomnet-users";
Leigh B Stoller's avatar
Leigh B Stoller committed
124
    $PORTAL_PASSWORD_HELP  = "PhantomNet.org or Emulab.net Username";
125
    $PORTAL_NSFNUMBER      = "1305384";
126
    $DEFAULT_AGGREGATE     = "Emulab";
Leigh B Stoller's avatar
Leigh B Stoller committed
127
    $DEFAULT_AGGREGATE_URN = "urn:publicid:IDN+emulab.net+authority+cm";
128 129 130
    $PORTAL_GENESIS        = "phantomnet";
    $PORTAL_NAME           = "PhantomNet";
}
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
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";
    $APTMAIL      = "Powder Wireless Operations <powder-ops@powderwireless.net>";
    $SUPPORT      = "powder-ops@powderwireless.net";
    $APTTITLE     = "Powder";
    $FAVICON      = "powder.ico";
    $APTLOGO      = "powderlogo.png";
    $APTSTYLE     = "powder.css";
    $ISEMULAB     = 0;
    $ISPOWDER     = 1;
146
    $GOOGLEUA     = 'UA-42844769-7';
147 148 149 150 151 152 153 154
    $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";
155
    $PORTAL_WIKI           = null;
156 157
    $PORTAL_HELPFORUM      = "powder-users";
    $PORTAL_PASSWORD_HELP  = "powderwireless.net or emulab.net Username";
158
    $PORTAL_NSFNUMBER      = false;
159 160 161 162 163
    $DEFAULT_AGGREGATE     = "Emulab";
    $DEFAULT_AGGREGATE_URN = "urn:publicid:IDN+emulab.net+authority+cm";
    $PORTAL_GENESIS        = "powder";
    $PORTAL_NAME           = "Powder";
}
164
?>