From: Geoffrey T. D. <da...@us...> - 2001-02-15 21:34:20
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv29121/lib Modified Files: stdlib.php Log Message: New template token ###ROBOTS_META### to (attempt to) keep robots from indexing pages other than the 'action=browse' page. Index: stdlib.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** stdlib.php 2001/02/15 19:32:55 1.32 --- stdlib.php 2001/02/15 21:35:03 1.33 *************** *** 564,567 **** --- 564,576 ---- else _dotoken('BASE_URL', SERVER_URL . SCRIPT_NAME, $page); + + if ($GLOBALS['action'] != 'browse') + _dotoken('ROBOTS_META', + Element('meta', array('name' => 'robots', + 'content' => 'noindex, nofollow')), + $page); + else + _dotoken('ROBOTS_META', '', $page); + // invalid for messages (search results, error messages) |