提示:个人建议还是在适当的地方保留DEDECMS的版权信息,以支持dedecms管理系统更好的发展! 修改: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>rn<head>rn<title>织梦CMS 友情提示</title>rn<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />rn";
- $htmlhead .= "
- <base target='_self'/>rn
- <style>
- html,body,h2,div,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:#0000009;padding-bottom:25px;_background:url(about:black) no-repeat fixed;}
- html{_background:url(about:black) no-repeat fixed;}
- .ts_div{width:500px;overflow:hidden;margin:0 auto;margin-top:150px;border:1px solid #E9E9E9;border-radius:3px;}
- .ts_div h2{text-align:left;color:#666;border-bottom:1px dotted #ccc;padding-bottom:10px;font-size:12px;}
- .ts_div 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>rn<body style="background:#f7f7f7;">".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."rn<center>rn<script>rn";
- $htmlfoot = "</script>rn</center>rn</body>rn</html>rn";
-
- $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
- {
- //当网址为: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("<div class='ts_div'>";
- $rmsg .= "<div class='ts_border'><div class='ts_b2'>'<h2>织梦CMS提示</h2>");rn";
- $rmsg .= "document.write("<p>");rn";
- $rmsg .= "document.write("".str_replace(""","“",$msg)."");rn";
- $rmsg .= "document.write("</p></div></div></div>");rn";
- $rmsg .= "document.write("";
-
- if($onlymsg==0)
- {
- if( $gourl != 'javascript:;' && $gourl != '')
- {
- $rmsg .= "<div class='ts_tz'>如果浏览器没有自动跳转,请<a href='{$gourl}'>点击这里</a></div>";
- $rmsg .= "");rn";
- $rmsg .= "setTimeout('JumpUrl()',$litime);";
- }
- else
- {
- $rmsg .= "<br/></div>");rn";
- }
- }
- else
- {
- $rmsg .= "<br/><br/></div>");rn";
- }
- $msg = $htmlhead.$rmsg.$htmlfoot;
- }
- echo $msg;
- }
然后下载附件中的图片。 懒人覆盖方法,下载common.func.rar附件。解压后直接覆盖到include文件夹 common.func.rar |
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!