汇编这个
function redirect_header($url, $time = 3, $message = '', $addredirect = true) { global $xoopsConfig, $xoopsRequestUri; if (!defined('XOOPS_CPFUNC_LOADED')) { header("Location: $url"); exit(); } else { $url = preg_replace("/&/i", '&', htmlspecialchars($url, ENT_QUOTES)); echo ' '</span><span style="color: #007700">.</span><span style="color: #0000BB">$xoopsConfig</span><span style="color: #007700">[</span><span style="color: #DD0000">'sitename'</span><span style="color: #007700">].</span><span style="color: #DD0000">' ._CHARSET." " =""> .$time.'; url='.$url.'" /> .$message.' '.sprintf(_IFNOTRELOAD, $url).'
'.sprintf(_IFNOTRELOAD, $url).'
'; } exit(); }
mauriciolima,谢谢你的提示。对于那些也在想这段代码从哪里来的人:/include/functions.php我个人对设置上述引号中的第一行变量"$time = 3" 感兴趣,将其设置为 "$time = 1"这节省了两个令人烦恼的等待时间...
修改
函数 redirect_header($url, $time = 3, $message = '', $addredirect = true)
函数 redirect_header($url, [color=ff0000]$time = 1[/color], $message = '', $addredirect = true)
函数 redirect_header($url, $time = 3, $message = '', $addredirect = true) { [color=ff0000]$time = 1;[/color] global $xoopsConfig, $xoopsRequestUri; if (!defined('XOOPS_CPFUNC_LOADED')) {
函数 redirect_header($url,$time = 3,$message = '',$addredirect = true){ [颜色=ff0000]error_log(date('[Y-m-d H:i:s] ') . $message. "n",3,XOOPS_ROOT_PATH. '/cache/34948430.log'全局$xoopsConfig,$xoopsRequestUri; if (!defined('XOOPS_CPFUNC_LOADED')){
我在admin/index.php中有一行代码:“redirect_header("index.php?op=members_type", 2, _MD_MEMBERS_TYPE_EDITED);”,日志信息仅在内容区域中显示,页面其他部分保持原样。如何修改它?
Advanced Search
272 user(s) are online (21 user(s) are browsing XOOPS FAQ)
Members: 0
Guests: 272
删除“如果页面没有自动重新加载,请点击此处”?
汇编这个
function redirect_header($url, $time = 3, $message = '', $addredirect = true)
'</span><span style="color: #007700">.</span><span style="color: #0000BB">$xoopsConfig</span><span style="color: #007700">[</span><span style="color: #DD0000">'sitename'</span><span style="color: #007700">].</span><span style="color: #DD0000">'
{
global $xoopsConfig, $xoopsRequestUri;
if (!defined('XOOPS_CPFUNC_LOADED')) {
header("Location: $url");
exit();
} else {
$url = preg_replace("/&/i", '&', htmlspecialchars($url, ENT_QUOTES));
echo '
._CHARSET." " ="">
.$time.'; url='.$url.'" />
.$message.'
'.sprintf(_IFNOTRELOAD, $url).'
';
}
exit();
}