if application is public wiki don't let search engine robots run away

This commit is contained in:
Pim Snel 2004-08-11 21:59:17 +00:00
parent dc410a8ee0
commit 7a5f309cff
2 changed files with 20 additions and 15 deletions

View File

@ -77,6 +77,10 @@
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
$app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app);
}
if($app!='wiki') $robots ='<meta name="robots" content="none" />';
$var = Array(
'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico',
'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico',
@ -91,6 +95,7 @@
'theme_css' => $theme_css,
'css' => $GLOBALS['phpgw']->common->get_css(),
'java_script' => $GLOBALS['phpgw']->common->get_java_script(),
'meta_robots' => $robots
);
$tpl->set_var($var);
$tpl->pfp('out','head');

View File

@ -10,7 +10,7 @@
<meta name="copyright" content="eGroupWare http://www.egroupware.org (c) 2003" />
<meta name="language" content="{lang_code}" />
<meta name="author" content="eGroupWare http://www.egroupware.org" />
<meta name="robots" content="none" />
{meta_robots}
<link rel="icon" href="{img_icon}" type="image/x-ico" />
<link rel="shortcut icon" href="{img_shortcut}" />
<link href="{theme_css}" type="text/css" rel="StyleSheet" />