From ddef120dd7e676964a52a1babb84e9b2187a918c Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Sun, 8 Mar 2009 17:29:05 +0000 Subject: [PATCH] Restore the old ROBOTS meta tag git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2430 8f5c7a92-453e-0410-a47f-ad33c8a6b003 --- archives/html/msgtop.php | 11 +++++++++++ archives/templates/html/msgheader.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) 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 @@ - + {title} -- 2.39.5