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:
16
mod.php
16
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 <<<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");
|
||||
|
||||
|
||||
@@ -3,4 +3,5 @@ Disallow: /backend/
|
||||
Disallow: /stats/
|
||||
Disallow: /source.php
|
||||
Disallow: /search.php
|
||||
Disallow: /mod.php
|
||||
Disallow: /manual/add-note.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 = " <input type=\"hidden\" name=\"lang\" value=\"{$EXPL_LANG}\" />\n";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user