From 1e7b286faaf29ae55b60a0bd28b8f5ce74ab6654 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 9 Jan 2007 01:30:02 +0000 Subject: feature 606: search engine spider restrictions (meta robots) git-svn-id: http://piwigo.org/svn/trunk@1703 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'picture.php') 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'; -- cgit v1.2.3