打开 includecommon.func.php 找到
function ShowMsg(
{
中间代码省略…
}
整体都改为
查看源码打印代码帮助
function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)
{
if(empty($GLOBALS[‘cfg_plus_dir‘])) $GLOBALS[‘cfg_plus_dir'] = ‘..';
$htmlhead = “rn
$htmlhead .= “
$litime = ($limittime==0 ? 1000 : $limittime);
$func = ”;
if($gourl=='-1′)
{
if($limittime==0) $litime = 5000;
$gourl = “javascript:history.go(-1);”;
}
if($gourl==” || $onlymsg==1)
{
$msg = “”;
}
else
{
//当网址为:close::objname 时, 关闭父框架的id=objname元素
if(preg_match(‘/close::/',$gourl))
{
$tgobj = trim(preg_replace(‘/close::/', ”, $gourl));
$gourl = ‘javascript:;';
$func .= “window.parent.document.getElementById(‘{$tgobj}').style.display='none';rn”;
}
$func .= ” var pgo=0;
function JumpUrl(){
if(pgo==0){ location='$gourl'; pgo=1; }
}rn”;
$rmsg = $func;
$rmsg .= “document.write(“”);rn;”;
$rmsg .= “document.write(“
”;
$rmsg .= “”);rn”;
$rmsg .= “document.write(“
$rmsg .= “setTimeout(‘JumpUrl()',$litime);”;
}
else
{
$rmsg .= “
”);rn”;$rmsg .= “
提示信息
$rmsg .= “document.write(“
”);rn”;
$rmsg .= “document.write(“”.str_replace(“””,”””,$msg).””);rn”;
$rmsg .= “document.write(“”;
if($onlymsg==0)
{
if( $gourl != ‘javascript:;' && $gourl != ”)
{
$rmsg .= “点击跳转”;
$rmsg .= “
”);rn”;$rmsg .= “document.write(“”.str_replace(“””,”””,$msg).””);rn”;
$rmsg .= “document.write(“”;
if($onlymsg==0)
{
if( $gourl != ‘javascript:;' && $gourl != ”)
{
$rmsg .= “点击跳转”;
$rmsg .= “
$rmsg .= “setTimeout(‘JumpUrl()',$litime);”;
}
else
{
$rmsg .= “
}
}
else
{
$rmsg .= “