From 7a5f309cff22bf4d25b76c58cf44ac339c441975 Mon Sep 17 00:00:00 2001 From: Pim Snel Date: Wed, 11 Aug 2004 21:59:17 +0000 Subject: [PATCH] if application is public wiki don't let search engine robots run away --- phpgwapi/templates/idots/head.inc.php | 33 +++++++++++++++------------ phpgwapi/templates/idots/head.tpl | 2 +- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/phpgwapi/templates/idots/head.inc.php b/phpgwapi/templates/idots/head.inc.php index 7b6c53706c..0f78f790e5 100644 --- a/phpgwapi/templates/idots/head.inc.php +++ b/phpgwapi/templates/idots/head.inc.php @@ -77,21 +77,26 @@ $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 =''; + $var = Array( - 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', - 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', - 'pngfix' => $pngfix, - 'slider_effects'=> $slider_effects, - 'simple_show_hide'=> $simple_show_hide, - 'lang_code'=> $lang_code, - 'charset' => $GLOBALS['phpgw']->translation->charset(), - 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], - 'website_title' => strip_tags($GLOBALS['phpgw_info']['server']['site_title']. ($app ? " [$app]" : '')), - 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), - 'theme_css' => $theme_css, - 'css' => $GLOBALS['phpgw']->common->get_css(), - 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), - ); + 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', + 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', + 'pngfix' => $pngfix, + 'slider_effects' => $slider_effects, + 'simple_show_hide' => $simple_show_hide, + 'lang_code' => $lang_code, + 'charset' => $GLOBALS['phpgw']->translation->charset(), + 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], + 'website_title' => strip_tags($GLOBALS['phpgw_info']['server']['site_title']. ($app ? " [$app]" : '')), + 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), + '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'); unset($tpl); diff --git a/phpgwapi/templates/idots/head.tpl b/phpgwapi/templates/idots/head.tpl index f7763e2cf1..e8fd76bac1 100644 --- a/phpgwapi/templates/idots/head.tpl +++ b/phpgwapi/templates/idots/head.tpl @@ -10,7 +10,7 @@ - + {meta_robots}