aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-09 01:30:02 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-09 01:30:02 +0000
commit1e7b286faaf29ae55b60a0bd28b8f5ce74ab6654 (patch)
tree596056b7e67c61841a6acd1faa1beff65b6bf64f /picture.php
parentf68903ec234fe7d76cddbbaa99fb0096d329582c (diff)
feature 606: search engine spider restrictions (meta robots)
git-svn-id: http://piwigo.org/svn/trunk@1703 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/picture.php b/picture.php
index 220490238..d08a2779d 100644
--- a/picture.php
+++ b/picture.php
@@ -2,10 +2,10 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
-// | file : $RCSfile$
+// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
@@ -427,6 +427,7 @@ if ( isset( $_GET['slideshow'] ) and isset($page['next_item']) )
array('slideshow'=>$refresh)
);
$redirect_msg = nl2br(l10n('redirect_msg'));
+ $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
}
$title_nb = ($page['current_rank'] + 1).'/'.$page['cat_nb_images'];
@@ -447,6 +448,10 @@ if ($metadata_showable)
{
$url_metadata = add_url_params( $url_metadata, array('metadata'=>null) );
}
+ else
+ {
+ $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
+ }
}
$page['body_id'] = 'thePicturePage';