XOOPS  2.6.0
search.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
13 
27 include __DIR__ . DIRECTORY_SEPARATOR . 'mainfile.php';
28 
30 $uri = '';
31 if ($xoops->isActiveModule('search')) {
32  foreach (Request::get() as $k => $v) {
33  $uri .= urlencode($k) . '=' . urlencode($v) . '&';
34  }
35  $xoops->redirect("modules/search/index.php?{$uri}", 0);
36 } else {
37  $xoops->redirect("index.php", 10, 'Oops, Please install search module!!!!');
38 }
static getInstance()
Definition: Xoops.php:160
$xoops
Definition: search.php:29
defined('DS') or define('DS' DIRECTORY_SEPARATOR
Definition: common.php:41
$uri
Definition: search.php:30