|
| $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) |
|