Commit 107491c8 authored by Leigh Stoller's avatar Leigh Stoller

Add web/banner sitevar for extra special message to placed at top of

home page and My Emulab page.
parent ce044778
......@@ -12,6 +12,7 @@
INSERT INTO sitevariables VALUES ('general/testvar',NULL,'43','A test variable');
INSERT INTO sitevariables VALUES ('web/nologins',NULL,'0','Non-zero value indicates that no user may log into the Web Interface; non-admin users are auto logged out.');
INSERT INTO sitevariables VALUES ('web/message',NULL,'','Message to place in large lettering under the login message on the Web Interface.');
INSERT INTO sitevariables VALUES ('web/banner',NULL,'','Message to place in large lettering at top of home page (typically a special message)');
INSERT INTO sitevariables VALUES ('idle/threshold',NULL,'4','Number of hours of inactivity for a node/expt to be considered idle.');
INSERT INTO sitevariables VALUES ('idle/mailinterval',NULL,'4','Number of hours since sending a swap request before sending another one. (Timing of first one is determined by idle/threshold.)');
INSERT INTO sitevariables VALUES ('idle/cc_grp_ldrs',NULL,'3','Start CC\'ing group and project leaders on idle messages on the Nth message.');
......
......@@ -70,12 +70,15 @@ if (mysql_num_rows($query_result) != 1) {
$idle_expts = $row[0];
}
# Modify and uncomment this if there's some especially important news.
#
# echo "<center><font color=Red size=+1>\n";
# echo "Please see this important <a href=news.php3>news item</a> about
# <a href=news.php3#47>the current state</a> of Emulab.\n";
# echo "</font></center><br>\n";
#
# 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";
}
?>
......
......@@ -53,12 +53,15 @@ if (!$isadmin &&
}
}
# Modify and uncomment this if there's some especially important news.
#
# echo "<center><font color=Red size=+1>\n";
# echo "Please see this important <a href=news.php3>news item</a> about
# <a href=news.php3#47>the current state</a> of Emulab.\n";
# echo "</font></center><br>\n";
#
# 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";
}
#
# Tell the user how many PCs he is using.
......
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