aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/page_header.php b/include/page_header.php
index 2fa509e86..ff9064978 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -56,6 +56,13 @@ if ( !empty($header_notes) )
$template->assign('header_notes',$header_notes);
}
+// No referencing is required
+if ( !$conf['meta_ref'] )
+{
+ $page['meta_robots']['noindex'] = 1;
+ $page['meta_robots']['nofollow'] = 1;
+}
+
if ( !empty($page['meta_robots']) )
{
$template->append('head_elements',
@@ -64,6 +71,10 @@ if ( !empty($page['meta_robots']) )
.'">'
);
}
+if ( !isset($page['meta_robots']['noindex']) )
+{
+ $template->assign('meta_ref',1);
+}
// refresh
if ( isset( $refresh ) and intval($refresh) >= 0