1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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)
This commit is contained in:
Gabor Hojtsy
2003-08-24 12:13:41 +00:00
parent 455ecb74e3
commit 1f1bb00255
3 changed files with 15 additions and 4 deletions

16
mod.php
View File

@@ -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 <<<ERROR
<h1>Email confirmation failed</h1>
<p class="formerror">
This server is not capable of handling email confirmations.
</p>
ERROR;
site_footer();
exit;
}
// These sites are handled by automoderation
$sites = array("php.net", "lists.php.net");

View File

@@ -3,4 +3,5 @@ Disallow: /backend/
Disallow: /stats/
Disallow: /source.php
Disallow: /search.php
Disallow: /mod.php
Disallow: /manual/add-note.php

View File

@@ -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 = " <input type=\"hidden\" name=\"lang\" value=\"{$EXPL_LANG}\" />\n";
} else {