search
[ class tree: search ] [ index: search ] [ all elements ]

Source for file mod_package_search.php

Documentation is available at mod_package_search.php

  1. <?php
  2. /**
  3.  * $Header$
  4.  *
  5.  * Copyright (c) 2004 bitweaver.org
  6.  * Copyright (c) 2003 tikwiki.org
  7.  * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  8.  * All Rights Reserved. See below for details and a complete list of authors.
  9.  * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
  10.  *
  11.  * $Id$
  12.  * @author  Luis Argerich (lrargerich@yahoo.com)
  13.  * @package search
  14.  * @subpackage modules
  15.  */
  16.  
  17. /**
  18.  * Initialization
  19.  */
  20. require_once(SEARCH_PKG_PATH."search_lib.php");
  21.  
  22.     $tplName strtolowerACTIVE_PACKAGE ).'_mini_search.tpl';
  23.     $searchTemplatePath BIT_ROOT_URL.constantstrtoupperACTIVE_PACKAGE ).'_PKG_PATH' ).'templates/'.$tplName;
  24.     
  25.     global $gLibertySystem;
  26.  
  27.     iffile_exists$searchTemplatePath ) ) {
  28.         $searchTemplateRsrc 'bitpackage:'.strtolowerACTIVE_PACKAGE ).'/'.$tplName;
  29.         $searchTitle ucfirstACTIVE_PACKAGE );
  30.     else {
  31.         $searchTemplateRsrc 'bitpackage:search/global_mini_search.tpl';
  32.         $searchTitle '';
  33.     }
  34.  
  35.     ifempty$contentTypes ) ) {
  36.         $contentTypes array'' => tra'All Content' ) );
  37.         foreach$gLibertySystem->mContentTypes as $cType {
  38.             if (SearchLib::has_permission($cType["content_type_guid"])
  39.                 and $gBitSystem->getConfig('search_restrict_types'||
  40.                       $gBitSystem->getConfig('search_pkg_'.$cType["content_type_guid"]) ) ) {
  41.                 $contentTypes[$cType['content_type_guid']] $gLibertySystem->getContentTypeName$cType['content_type_guid');
  42.             }
  43.         }
  44.     }
  45.     $gBitSmarty->assign'contentTypes'$contentTypes );
  46.  
  47.     $gBitSmarty->assign'searchTitle'$searchTitle );
  48.     $gBitSmarty->assign'miniSearchRsrc'$searchTemplateRsrc );
  49. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:11 +0000 by phpDocumentor 1.5.0-lsces