summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2009-03-08 17:29:05 +0000
committerAlvaro Herrera2009-03-08 17:29:05 +0000
commitddef120dd7e676964a52a1babb84e9b2187a918c (patch)
tree041e6e079416def46be47a33f71ff15364613d67
parent0de9a509f8d2d0d242b9890977e632d78449a680 (diff)
Restore the old ROBOTS meta tag
git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2430 8f5c7a92-453e-0410-a47f-ad33c8a6b003
-rw-r--r--archives/html/msgtop.php11
-rw-r--r--archives/templates/html/msgheader.html2
2 files changed, 12 insertions, 1 deletions
diff --git a/archives/html/msgtop.php b/archives/html/msgtop.php
index 8fb4cec0..43e47c34 100644
--- a/archives/html/msgtop.php
+++ b/archives/html/msgtop.php
@@ -8,8 +8,19 @@ $tmpldir = $_SERVER['DOCUMENT_ROOT'] . "/../templates";
$tpl =& new HTML_Template_Sigma($tmpldir."/html");
+$message_page = false;
+if (strstr($_SERVER['PHP_SELF'], "message-id") ||
+ strstr($_SERVER['PHP_SELF'], "/msg"))
+ $message_page = true;
+
$tpl->loadTemplateFile('msgheader.html');
$tpl->setVariable('title', $title);
+if ($message_page)
+ $robots = "nofollow, index, archive";
+else
+ $robots = "follow, noindex, noarchive";
+$tpl->setVariable('robots', $robots);
+
if (!isset($base))
{
$tpl->hideBlock('baseblock');
diff --git a/archives/templates/html/msgheader.html b/archives/templates/html/msgheader.html
index 65e08670..692a0e13 100644
--- a/archives/templates/html/msgheader.html
+++ b/archives/templates/html/msgheader.html
@@ -12,6 +12,6 @@
<meta name="rating" content="General" />
<meta name="distribution" content="Global" />
<meta name="revisit-after" content="7 days" />
- <meta name="robots" content="follow, noindex, noarchive" />
+ <meta name="robots" content="{robots}" />
<title>{title}</title>