XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
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
12
use
Xoops\Core\Request
;
13
27
include
__DIR__ .
DIRECTORY_SEPARATOR
.
'mainfile.php'
;
28
29
$xoops
=
Xoops::getInstance
();
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
}
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
$xoops
$xoops
Definition:
search.php:29
DIRECTORY_SEPARATOR
defined('DS') or define('DS' DIRECTORY_SEPARATOR
Definition:
common.php:41
Request
include
$uri
$uri
Definition:
search.php:30
usr64
htdocs
search.php
Generated on Fri May 22 2015 03:07:04 for XOOPS by
1.8.9.1