Changeset 2137


Ignore:
Timestamp:
Oct 16, 2007, 3:45:26 AM (16 years ago)
Author:
rvelices
Message:
  • fix plugin menu link broken with xamp (realpath behaves differently) (merge from trunk to branch 1_7)
  • added some meta_robots (noindex and nofollow) on popuphelp, search_rules and search seaction (googlebot gets crazy)
Location:
branches/branch-1_7
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/admin/include/functions_plugins.inc.php

    r1900 r2137  
    44// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    55// +-----------------------------------------------------------------------+
    6 // | branch        : BSF (Best So Far)
    76// | file          : $Id$
    87// | last update   : $Date$
     
    9695  if (false!==$real_file)
    9796  {
    98     $real_plugin_path = realpath(PHPWG_PLUGINS_PATH);
     97    $real_plugin_path = rtrim(realpath(PHPWG_PLUGINS_PATH), '\\/');
    9998    $file = substr($real_file, strlen($real_plugin_path)+1);
    10099    $file = str_replace('\\', '/', $file);//Windows
  • branches/branch-1_7/include/section_init.inc.php

    r2118 r2137  
    521521// add meta robots noindex, nofollow to avoid unnecesary robot crawls
    522522$page['meta_robots']=array();
    523 if ( isset($page['chronology_field']) or isset($page['flat'])
     523if ( isset($page['chronology_field'])
     524      or ( isset($page['flat']) and isset($page['category']) )
    524525      or 'list'==$page['section'] or 'recent_pics'==$page['section'] )
    525526{
     
    535536elseif ('recent_cats'==$page['section'])
    536537{
     538  $page['meta_robots']['noindex']=1;
     539}
     540elseif ('search'==$page['section'])
     541{
    537542  $page['meta_robots']['nofollow']=1;
    538543}
     544
    539545if ( $filter['enabled'] )
    540546{
  • branches/branch-1_7/popuphelp.php

    r1900 r2137  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
     7// | file          : $Id$
    98// | last update   : $Date$
    109// | last modifier : $Author$
     
    4140$title = l10n('PhpWebGallery Help');
    4241$page['page_banner'] = '<h1>'.$title.'</h1>';
     42$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
    4343include(PHPWG_ROOT_PATH.'include/page_header.php');
    4444
    45 if 
     45if
    4646  (
    4747    isset($_GET['page'])
  • branches/branch-1_7/search_rules.php

    r1900 r2137  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     6// +-----------------------------------------------------------------------+
    87// | file          : $Id$
    98// | last update   : $Date$
     
    5049$title = l10n('PhpWebGallery Help');
    5150$page['page_banner'] = '<h1>'.$title.'</h1>';
     51$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
    5252include(PHPWG_ROOT_PATH.'include/page_header.php');
    5353
  • branches/branch-1_7/template/yoga/index.tpl

    r1900 r2137  
    2525
    2626      <!-- BEGIN search_rules -->
    27       <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}"><img src="{pwg_root}{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>
     27      <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>
    2828      <!-- END search_rules -->
    2929
Note: See TracChangeset for help on using the changeset viewer.