提示:個(gè)人建議還是在適當(dāng)?shù)牡胤奖A鬌EDECMS的版權(quán)信息,以支持dedecms管理系統(tǒng)更好的發(fā)展!
修改:include/common.func.php
第178-255行
覆蓋以下代碼:
-
function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)
-
{
-
if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';
-
$htmlhead = "<html>\r\n<head>\r\n<title>織夢(mèng)CMS 友情提示</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n";
-
$htmlhead .= "
-
<base target='_self'/>\r\n
-
<style>
-
html,body,h2,p,p,img{margin:0;padding:0;list-style:none;border:none;font-size:12px;}
-
a:link,a:visited,a:active{text-decoration:none;font-family:Tahoma,Geneva,sans-serif;}a:hover{text-decoration:underline;}
-
body{text-align:center;font-family:Tahoma,Geneva,sans-serif;background:#000000;background:#000000\9;padding-bottom:25px;_background:url(about:black) no-repeat fixed;}
-
html{_background:url(about:black) no-repeat fixed;}
-
.ts_p{width:500px;overflow:hidden;margin:0 auto;margin-top:150px;border:1px solid #E9E9E9;border-radius:3px;}
-
.ts_p h2{text-align:left;color:#666;border-bottom:1px dotted #ccc;padding-bottom:10px;font-size:12px;}
-
.ts_p p{line-height:70px;background:url({$GLOBALS['cfg_plus_dir']}/img/ts_bg.png) no-repeat 0 center;margin:10px auto;font-size:14px;text-align:left;text-indent:70px;}
-
.ts_border{border:7px solid #efefef;}
-
.ts_b2{background:#fff;border:1px solid #E9E9E9;padding:10px 20px 10px 20px;}
-
.ts_tz{margin:10px auto;text-align:right;width:500px;color:#666;}
-
.ts_tz a{color:#f30;}
-
</style>
-
</head>\r\n<body style=\"background:#f7f7f7;\">".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."\r\n<center>\r\n<script>\r\n";
-
$htmlfoot = "</script>\r\n</center>\r\n</body>\r\n</html>\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 = "<script>alert(\"".str_replace("\"","“",$msg)."\");</script>";
-
}
-
else
-
{
-
//當(dāng)網(wǎng)址為:close::objname 時(shí), 關(guān)閉父框架的id=objname元素
-
if(preg_match('/close::/',$gourl))
-
{
-
$tgobj = trim(preg_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(\"<p class='ts_p'>";
-
$rmsg .= "<p class='ts_border'><p class='ts_b2'>'<h2>織夢(mèng)CMS提示</h2>\");\r\n";
-
$rmsg .= "document.write(\"<p>\");\r\n";
-
$rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n";
-
$rmsg .= "document.write(\"</p></p></p></p>\");\r\n";
-
$rmsg .= "document.write(\"";
-
-
if($onlymsg==0)
-
{
-
if( $gourl != 'javascript:;' && $gourl != '')
-
{
-
$rmsg .= "<p class='ts_tz'>如果瀏覽器沒有自動(dòng)跳轉(zhuǎn),請(qǐng)<a href='{$gourl}'>點(diǎn)擊這里</a></p>";
-
$rmsg .= "\");\r\n";
-
$rmsg .= "setTimeout('JumpUrl()',$litime);";
-
}
-
else
-
{
-
$rmsg .= "<br/></p>\");\r\n";
-
}
-
}
-
else
-
{
-
$rmsg .= "<br/><br/></p>\");\r\n";
-
}
-
$msg = $htmlhead.$rmsg.$htmlfoot;
-
}
-
echo $msg;
-
}
然后下載附件中的圖片。
懶人覆蓋方法,下載common.func.rar附件。解壓后直接覆蓋到include文件夾
common.func.rar
|