summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-21 16:24:06 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-21 16:24:06 +0000
commitc0b0b30104b2f5a366f1cafe04d788402c3f1064 (patch)
tree9e788a901afca42e725782df63cf10834e1c3ffa /includes/functions/functions_print.php
parent13a2842df5ba9950ef5e04065116ccca9ddbef89 (diff)
downloadwebtrees-c0b0b30104b2f5a366f1cafe04d788402c3f1064.tar.gz
webtrees-c0b0b30104b2f5a366f1cafe04d788402c3f1064.tar.bz2
webtrees-c0b0b30104b2f5a366f1cafe04d788402c3f1064.zip
Move session logic to session.php
Diffstat (limited to 'includes/functions/functions_print.php')
-rw-r--r--includes/functions/functions_print.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index 6f4758fe72..df46a120fe 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -417,26 +417,6 @@ function print_header($title, $head="", $use_alternate_styles=true) {
global $FAVICON, $stylesheet, $print_stylesheet, $rtl_stylesheet, $headerfile, $toplinks, $THEME_DIR, $print_headerfile;
global $WT_IMAGES, $TEXT_DIRECTION, $ONLOADFUNCTION, $REQUIRE_AUTHENTICATION;
- // TODO: Shouldn't this be in session.php?
- // If not on allowed list, dump the spider onto the redirect page.
- // This kills recognized spiders in their tracks.
- // To stop unrecognized spiders, see META_ROBOTS below.
- if ($SEARCH_SPIDER) {
- if (
- !(WT_SCRIPT_NAME=='individual.php' ||
- WT_SCRIPT_NAME=='indilist.php' ||
- WT_SCRIPT_NAME=='login.php' ||
- WT_SCRIPT_NAME=='family.php' ||
- WT_SCRIPT_NAME=='famlist.php' ||
- WT_SCRIPT_NAME=='help_text.php' ||
- WT_SCRIPT_NAME=='source.php' ||
- WT_SCRIPT_NAME=='search_engine.php' ||
- WT_SCRIPT_NAME=='index.php')
- ) {
- header("Location: search_engine.php");
- exit;
- }
- }
header("Content-Type: text/html; charset=UTF-8");
$META_DESCRIPTION=get_gedcom_setting(WT_GED_ID, 'META_DESCRIPTION');