From 1f1bb00255ee2c62c64bf13a16a38ee6a7eac3ca Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sun, 24 Aug 2003 12:13:41 +0000 Subject: [PATCH] Add some sensible information on non-php.net pages when mod.php is visited. Also disallow the indexing of mod.php and remove duplicate exclusion of search.php (it is already included in robots.txt) --- mod.php | 16 +++++++++++++--- robots.txt | 1 + search.php | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/mod.php b/mod.php index af0d93f83..79afef31c 100644 --- a/mod.php +++ b/mod.php @@ -10,11 +10,21 @@ $_SERVER['BASE_PAGE'] = 'mod.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -// Only run on www.php.net -if ($MYSITE != "http://www.php.net/") { exit; } - site_header("Email confirmation"); +// Only run on www.php.net +if ($MYSITE != "http://www.php.net/") { + echo <<Email confirmation failed + +

+ This server is not capable of handling email confirmations. +

+ERROR; + site_footer(); + exit; +} + // These sites are handled by automoderation $sites = array("php.net", "lists.php.net"); diff --git a/robots.txt b/robots.txt index 18d182c53..dc94128b1 100644 --- a/robots.txt +++ b/robots.txt @@ -3,4 +3,5 @@ Disallow: /backend/ Disallow: /stats/ Disallow: /source.php Disallow: /search.php +Disallow: /mod.php Disallow: /manual/add-note.php diff --git a/search.php b/search.php index 6cf786ac6..637fa2327 100644 --- a/search.php +++ b/search.php @@ -87,7 +87,7 @@ if (!empty($_FORM['pattern'])) { else { // Print out common header - site_header("Search", array("noindex")); + site_header("Search"); if (isset($EXPL_LANG)) { $lang_input = " \n"; } else {