API - XOOPS 2.5.11 Beta 2
By monxoops.fr
search.php File Reference

Namespaces

namespace  core
 

Variables

 $config_handler = xoops_getHandler('config')
 
 $xoopsConfigSearch = $config_handler->getConfigsByCat(XOOPS_CONF_SEARCH)
 
if($xoopsConfigSearch['enable_search'] !=1) $action = 'search'
 
if(!empty( $_GET[ 'action'])) elseif(!empty($_POST['action'])) $query = ''
 
if(!empty( $_GET[ 'query'])) elseif(!empty($_POST['query'])) $andor = 'AND'
 
if(!empty( $_GET[ 'andor'])) elseif(!empty($_POST['andor'])) $mid = $uid = $start = 0
 
if(!empty( $_GET[ 'mid'])) elseif(!empty($_POST['mid'])) if(!empty( $_GET[ 'uid'])) elseif(!empty($_POST['uid'])) if(!empty( $_GET[ 'start'])) elseif(!empty($_POST['start'])) $queries = array()
 
if($action==='results') elseif( $action==='showall') elseif($action==='showallbyuser') $GLOBALS ['xoopsOption']['template_main'] = 'system_search.tpl'
 
 $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS
 
 $gperm_handler = xoops_getHandler('groupperm')
 
 $available_modules = $gperm_handler->getItemIds('module_read', $groups)
 
if( $action==='search') if($andor !=='OR' && $andor !=='exact' && $andor !=='AND') $myts = MyTextSanitizer::getInstance()
 
if( $action !=='showallbyuser') switch ( $action)
 

Variable Documentation

◆ $action

if ( $xoopsConfigSearch[ 'enable_search'] !=1) $action = 'search'

◆ $andor

if(!empty($_GET['query'])) elseif (!empty( $_POST[ 'query'])) $andor = 'AND'

◆ $available_modules

$available_modules = $gperm_handler->getItemIds('module_read', $groups)

◆ $config_handler

$config_handler = xoops_getHandler('config')

◆ $GLOBALS

if( $action==='results') elseif($action==='showall') elseif ( $action==='showallbyuser') $GLOBALS[ 'xoopsOption'][ 'template_main'] = 'system_search.tpl'

◆ $gperm_handler

$gperm_handler = xoops_getHandler('groupperm')

◆ $groups

$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS

◆ $mid

if(!empty($_GET['andor'])) elseif (!empty( $_POST[ 'andor'])) $mid = $uid = $start = 0

◆ $myts

if($action==='search') if ( $andor !=='OR' &&$andor !=='exact' &&$andor !=='AND') $myts = MyTextSanitizer::getInstance()

◆ $queries

if(!empty($_GET['mid'])) elseif(!empty( $_POST[ 'mid'])) if(!empty($_GET['uid'])) elseif(!empty( $_POST[ 'uid'])) if(!empty($_GET['start'])) elseif (!empty( $_POST[ 'start'])) $queries = array()

◆ $query

if(!empty($_GET['action'])) elseif (!empty( $_POST[ 'action'])) $query = ''

◆ $xoopsConfigSearch

$xoopsConfigSearch = $config_handler->getConfigsByCat(XOOPS_CONF_SEARCH)

◆ switch

if($action !=='showallbyuser') switch($action) (   $action)