aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config_default.inc.php3
-rw-r--r--include/page_header.php11
2 files changed, 14 insertions, 0 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index cacade935..3f6407cc2 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -154,6 +154,9 @@ $conf['tn_height'] = 128;
// bottom of each page ?
$conf['show_version'] = true;
+// meta_ref to reference multiple sets of incorporated pages or elements
+// Set it false to avoid referencing in google, and other search engines.
+$conf['meta_ref'] = true;
// links : list of external links to add in the menu. An example is the best
// than a long explanation :
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