Commit 7cc5c5e1 authored by Leigh Stoller's avatar Leigh Stoller

Minor changes to make it easier to put (portal dependent) support mail

links into templates.
parent e749d1c9
<?php
#
# Copyright (c) 2006-2018 University of Utah and the Flux Group.
# Copyright (c) 2006-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -28,8 +28,9 @@ $APTHOST = "$WWWHOST";
# causes confusion in geni-login.ajax.
$COOKDIEDOMAIN = "$WWWHOST";
$APTBASE = "$TBBASE/portal";
$APTMAIL = $TBMAIL_OPS;
$SUPPORT = $TBMAILADDR_OPS;
$APTMAIL = $TBMAIL_OPS;
$APTMAILTO = "<a href='mailto:$SUPPORT'>Testbed Operations</a>";
$APTTITLE = "Emulab";
$FAVICON = "../favicon.ico";
$APTLOGO = "emulab-logo.svg";
......
<?php
#
# Copyright (c) 2006-2018 University of Utah and the Flux Group.
# Copyright (c) 2006-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -39,8 +39,9 @@ if ($_SERVER["SERVER_NAME"] == "www.aptlab.net") {
$APTHOST = "www.aptlab.net";
$WWWHOST = "www.aptlab.net";
$APTBASE = "https://www.aptlab.net";
$APTMAIL = "APT Operations <portal-ops@aptlab.net>";
$SUPPORT = "portal-ops@aptlab.net";
$APTMAIL = "APT Operations <$SUPPORT>";
$APTMAILTO = "<a href='mailto:$SUPPORT'>APT Operations</a>";
$APTTITLE = "APT";
$FAVICON = "aptlab.ico";
$APTLOGO = "aptlogo.png";
......@@ -70,8 +71,9 @@ elseif ($_SERVER["SERVER_NAME"] == "www.cloudlab.us") {
$APTHOST = "www.cloudlab.us";
$WWWHOST = "www.cloudlab.us";
$APTBASE = "https://www.cloudlab.us";
$APTMAIL = "CloudLab Operations <portal-ops@cloudlab.us>";
$SUPPORT = "portal-ops@cloudlab.us";
$APTMAIL = "Cloudlab Operations <$SUPPORT>";
$APTMAILTO = "<a href='mailto:$SUPPORT'>Cloulab Operations</a>";
$APTTITLE = "CloudLab";
$FAVICON = "cloudlab.ico";
$APTLOGO = "cloudlogo.png";
......@@ -101,9 +103,10 @@ elseif ($ISALTDOMAIN && $_SERVER["SERVER_NAME"] == "www.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>";
$APTBASE = "https://www.phantomnet.org";
$SUPPORT = "portal-ops@phantomnet.org";
$APTMAIL = "PhantomNet Operations <$SUPPORT>";
$APTMAILTO = "<a href='mailto:$SUPPORT'>PhantomNet Operations</a>";
$APTTITLE = "PhantomNet";
$FAVICON = "phantomnet.ico";
$APTLOGO = "phantomlogo.png";
......@@ -135,8 +138,9 @@ elseif ($_SERVER["SERVER_NAME"] == "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";
$APTMAIL = "Powder Wireless Operations <$SUPPORT>";
$APTMAILTO = "<a href='mailto:$SUPPORT'>Powder Wireless Operations</a>";
$APTTITLE = "Powder";
$FAVICON = "powder.ico";
$APTLOGO = "powderlogo.png";
......
......@@ -52,6 +52,7 @@ if (isset($_SERVER['SERVER_NAME'])) {
$PAGEERROR_HANDLER = function($msg = null, $status_code = 0) {
global $drewheader, $ISCLOUD, $ISPNET, $ISEMULAB, $ISAPT, $ISPOWDER;
global $spatrequired, $TBMAINSITE, $PORTAL_HELPFORUM;
global $APTMAIL, $APTMAILTO;
if (! $drewheader) {
SPITHEADER();
......@@ -67,6 +68,8 @@ $PAGEERROR_HANDLER = function($msg = null, $status_code = 0) {
echo " window.ISPOWDER = " . ($ISPOWDER ? "1" : "0") . ";\n";
echo " window.ISAPT = " . ($ISAPT ? "1" : "0") . ";\n";
echo " window.MAINSITE = " . ($TBMAINSITE ? "1" : "0") . ";\n";
echo " window.APTMAIL = \"$APTMAIL\"\n";
echo " window.APTMAILTO = \"$APTMAILTO\"\n";
echo " window.HELPFORUM = " .
"'https://groups.google.com/d/forum/${PORTAL_HELPFORUM}';\n";
echo "</script>\n";
......@@ -81,7 +84,7 @@ $PAGEERROR_HANDLER = function($msg = null, $status_code = 0) {
$PAGEHEADER_FUNCTION = function($thinheader = 0, $nomenu = false,
$inline = false, $ignore3 = NULL)
{
global $PORTAL_MANUAL, $PORTAL_HELPFORUM;
global $PORTAL_MANUAL, $PORTAL_HELPFORUM, $APTMAIL, $APTMAILTO;
global $TBMAINSITE, $APTTITLE, $FAVICON, $APTLOGO, $APTSTYLE, $ISAPT;
global $GOOGLEUA, $ISCLOUD, $TBBASE;
global $ISPNET, $ISPOWDER, $ISEMULAB;
......@@ -170,6 +173,8 @@ $PAGEHEADER_FUNCTION = function($thinheader = 0, $nomenu = false,
echo " window.EMBEDDED = $embedded;\n";
echo " window.SUPPORT = '$SUPPORT';\n";
echo " window.APTTILE = '$APTTITLE';\n";
echo " window.APTMAIL = \"$APTMAIL\"\n";
echo " window.APTMAILTO = \"$APTMAILTO\"\n";
echo "</script>\n";
if ($TBMAINSITE && !$embedded && file_exists("../google-analytics.php")) {
......
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