Set content type if spider is there
authorRoland Häder <roland@mxchange.org>
Wed, 25 Nov 2009 18:24:09 +0000 (18:24 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 25 Nov 2009 18:24:09 +0000 (18:24 +0000)
admin.php
agb.php
confirm.php
ref.php
sponsor_confirm.php
sponsor_ref.php

index 38ce36ecf4fc566c32b834c5623f3f0bbb91c9d6..b2c5768b7e085066cf6c8974c2e8e08d3a83470e 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1;
 // Load the required file(s)
 require('inc/config-global.php');
 
 // 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!
 // 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 7e55bc74152e4d5dfc74dd089d18280775ed3dd1..102f160db8d4b6230496714bf17fc3e80dc5c140 100644 (file)
--- a/agb.php
+++ b/agb.php
@@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1;
 // Load the required file(s)
 require('inc/config-global.php');
 
 // 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&amp;what=agb');
 
 // Simply redirect... :-)
 redirectToUrl('modules.php?module=index&amp;what=agb');
 
index 0ef080984b1fcc6dc16a3390f1599a2ab4e04624..4f30d2f2ebe1877c27ec78f0f2a2729c8272450c 100644 (file)
@@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1;
 // Load the required file(s)
 require('inc/config-global.php');
 
 // 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';
 
 // No hash provided by default
 $URL = 'modules.php?module=index';
 
diff --git a/ref.php b/ref.php
index a36ed185285f60f946f4f02970db5fc8f0dd6f33..0ee71430c87d7f125de81ccfb82e88168c6bc38f 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -46,6 +46,9 @@ $GLOBALS['output_mode'] = -1;
 // Load the required file(s)
 require('inc/config-global.php');
 
 // 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';
 
 // No refid by default
 $URL = 'index.php';
 
index ebef80cc065a498a946137c02871af0dfddf90c8..0c6fde960fa219867e9cd0ef976cbaaf9f1efd85 100644 (file)
@@ -47,6 +47,9 @@ $GLOBALS['output_mode'] = -2;
 // Load the required file(s)
 require('inc/config-global.php');
 
 // 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';
 
 // No hash provided by default
 $URL = 'modules.php?module=index';
 
index 2b6cad86e136238951a23b04bb1cceca0601c41b..b82c17679a943c8a3e7e2b8d392c6360c3d59906 100644 (file)
@@ -47,6 +47,9 @@ $GLOBALS['output_mode'] = -2;
 // Load the required file(s)
 require('inc/config-global.php');
 
 // 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&amp;what=sponsor_reg&amp;refid=';
 
 // Base URL for redirection
 $URL = 'modules.php?module=index&amp;what=sponsor_reg&amp;refid=';