From 02a212e4758d0ee6cd970c4ea9e51ca603bd3b52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 25 Nov 2009 18:24:09 +0000 Subject: [PATCH] Set content type if spider is there --- admin.php | 3 +++ agb.php | 3 +++ confirm.php | 3 +++ ref.php | 3 +++ sponsor_confirm.php | 3 +++ sponsor_ref.php | 3 +++ 6 files changed, 18 insertions(+) diff --git a/admin.php b/admin.php index 38ce36ecf4..b2c5768b7e 100644 --- a/admin.php +++ b/admin.php @@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1; // Load the required file(s) require('inc/config-global.php'); +// Set content type for e.g. search engines +if (isSpider()) setContentType('text/html'); + // Is the admin logged-in and no sql_patches installed? if ((isAdmin()) && (!isExtensionActive('sql_patches'))) { // Extension 'sql_patches' is missing! diff --git a/agb.php b/agb.php index 7e55bc7415..102f160db8 100644 --- a/agb.php +++ b/agb.php @@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1; // Load the required file(s) require('inc/config-global.php'); +// Set content type for e.g. search engines +if (isSpider()) setContentType('text/html'); + // Simply redirect... :-) redirectToUrl('modules.php?module=index&what=agb'); diff --git a/confirm.php b/confirm.php index 0ef080984b..4f30d2f2eb 100644 --- a/confirm.php +++ b/confirm.php @@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1; // Load the required file(s) require('inc/config-global.php'); +// Set content type for e.g. search engines +if (isSpider()) setContentType('text/html'); + // No hash provided by default $URL = 'modules.php?module=index'; diff --git a/ref.php b/ref.php index a36ed18528..0ee71430c8 100644 --- a/ref.php +++ b/ref.php @@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1; // Load the required file(s) require('inc/config-global.php'); +// Set content type for e.g. search engines +if (isSpider()) setContentType('text/html'); + // No refid by default $URL = 'index.php'; diff --git a/sponsor_confirm.php b/sponsor_confirm.php index ebef80cc06..0c6fde960f 100644 --- a/sponsor_confirm.php +++ b/sponsor_confirm.php @@ -47,6 +47,9 @@ $GLOBALS['output_mode'] = -2; // Load the required file(s) require('inc/config-global.php'); +// Set content type for e.g. search engines +if (isSpider()) setContentType('text/html'); + // No hash provided by default $URL = 'modules.php?module=index'; diff --git a/sponsor_ref.php b/sponsor_ref.php index 2b6cad86e1..b82c17679a 100644 --- a/sponsor_ref.php +++ b/sponsor_ref.php @@ -47,6 +47,9 @@ $GLOBALS['output_mode'] = -2; // Load the required file(s) require('inc/config-global.php'); +// Set content type for e.g. search engines +if (isSpider()) setContentType('text/html'); + // Base URL for redirection $URL = 'modules.php?module=index&what=sponsor_reg&refid='; -- 2.30.2