[geeklog-cvs] geeklog: Allow comment indexing but disallow indexing the "post ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Feb 22 08:03:24 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/1d2197278654
changeset: 6795:1d2197278654
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 22 12:21:35 2009 +0100
description:
Allow comment indexing but disallow indexing the "post a comment" form
diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
public_html/comment.php | 6 ++++--
public_html/robots.txt | 1 -
diffs (32 lines):
diff -r 9649bc9f60b6 -r 1d2197278654 public_html/comment.php
--- a/public_html/comment.php Sun Feb 22 09:34:19 2009 +0100
+++ b/public_html/comment.php Sun Feb 22 12:21:35 2009 +0100
@@ -2,7 +2,7 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | comment.php |
// | |
@@ -347,7 +347,9 @@
$title = str_replace ( '<', '<', $title );
$title = str_replace ( '>', '>', $title );
}
- $display .= COM_siteHeader('menu', $LANG03[1])
+ $noindex = '<meta name="robots" content="noindex"' . XHTML . '>'
+ . LB;
+ $display .= COM_siteHeader('menu', $LANG03[1], $noindex)
. CMT_commentForm ($title, '', $sid,
COM_applyFilter ($_REQUEST['pid'], true), $type, $mode,
$postmode)
diff -r 9649bc9f60b6 -r 1d2197278654 public_html/robots.txt
--- a/public_html/robots.txt Sun Feb 22 09:34:19 2009 +0100
+++ b/public_html/robots.txt Sun Feb 22 12:21:35 2009 +0100
@@ -1,5 +1,4 @@
User-agent: *
-Disallow: /comment.php
Disallow: /docs
Disallow: /pingback.php
Disallow: /submit.php
More information about the geeklog-cvs
mailing list