Ai
5 Star 9 Fork 0

Gitee 极速下载/xoops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/XOOPS/XoopsCore
克隆/下载
search.php 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Richard Griffith 提交于 2016-03-25 11:28 +08:00 . Standardize Request and FilterInput calls
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
use Xmf\Request;
/**
* XOOPS global search
*
* @copyright XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package core
* @since 2.6.0
* @author Kazumi Ono (AKA onokazu)
* @author Taiwen Jiang <phppp@users.sourceforge.net>
* @version $Id$
* @todo Modularize; Both search algorithms and interface will be redesigned
*/
include __DIR__ . '/mainfile.php';
$xoops = Xoops::getInstance();
$uri = '';
if ($xoops->isActiveModule('search')) {
foreach (Request::get() as $k => $v) {
$uri .= urlencode($k) . '=' . urlencode($v) . '&';
}
$xoops->redirect("modules/search/index.php?{$uri}", 0);
} else {
$xoops->redirect("index.php", 10, 'Oops, Please install search module!!!!');
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mirrors/xoops.git
git@gitee.com:mirrors/xoops.git
mirrors
xoops
xoops
master

搜索帮助