function ShowMsg($msg,$gourl,$onlymsg=0,$limittime=0,$sname="『轻狂志』提示消息:")
{
if(empty($GLOBALS['cfg_phpurl'])) $GLOBALS['cfg_phpurl'] = '..';
$htmlhead = "\r\n
\r\n".$sname." \r\n\r\n";$htmlhead .= "\r\n\r\n
".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n$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(eregi('close::',$gourl))
{
$tgobj = trim(eregi_replace('close::', '', $gourl));
$gourl = 'javascript:;';
$func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n";
}
$func .= " var pgo=0;
function JumpUrl(){
if(pgo==0){ location='$gourl'; pgo=1; }
}\r\n";
$rmsg = $func;
$rmsg .= "document.write(\"
$rmsg .= "
\");\r\n";$rmsg .= "document.write(\"
$rmsg .= "document.write(\"
$rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n";
$rmsg .= "document.write(\"";
$rmsg .= "
if($onlymsg==0)
{
if( $gourl != 'javascript:;' && $gourl != '')
{
$rmsg .= "
";$rmsg .= "
$rmsg .= "setTimeout('JumpUrl()',$litime);";
}
else
{
$rmsg .= "