A:替换后台两个文件去广告 

dede/templets路径下两个文件

1、index2.htm

<!--This is IE DTD patch , Don't delete this line.-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title><?php echo $cfg_webname; ?>-<?php echo $cfg_softname." ".$cfg_version; ?></title>
<link href="css/frame.css" rel="stylesheet" type="text/css" />
<script src="../include/js/jquery/jquery.js" language="javascript" type="text/javascript"></script>
<script src="js/frame.js" language="javascript" type="text/javascript"></script>
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#skinlist {
display: block;
height: 11px;
margin-top: 10px;
overflow: hidden;
width: 86px;
}
#skin div {
float: left;
}
#skin li {
cursor: pointer;
float: left;
height: 11px;
width: 14px;
}
#def div, #s1 div, #s2 div, #s3 div, #s4 div{
background-image: url("images/skinbutton.png");
background-repeat: no-repeat;
}
#s1 div {
background-position: 0 0px;
}
#s2 div {
background-position: 0 -11px;
}
#s3 div {
background-position: 0 -22px;
}
#s4 div {
background-position: 0 -33px;
}
#s1 div.sel {
background: url("images/skinbutton.png") no-repeat scroll -14px top transparent;
}
#s2 div.sel {
background: url("images/skinbutton.png") no-repeat scroll -14px -11px transparent;
}
#s3 div.sel {
background: url("images/skinbutton.png") no-repeat scroll -14px -22px transparent;
}
#s4 div.sel {
background: url("images/skinbutton.png") no-repeat scroll -14px -33px transparent;
}
</style>
</head>
<body class="showmenu">
<div class="pagemask"></div>
<iframe class="iframemask"></iframe>
<div class="allmenu">
<div class="allmenu-box">
<?php
echo $mapstring;
?>
<br style='clear:both' />
</div>
</div>
<div class="head">
<div class="top">
<div class="top_link">
<ul>
<li class="welcome">您好:<?php echo $cuserLogin->getUserName(); ?> ,欢迎使用!</li>
<li><a href="index_menu.php" target="menu">主菜单</a></li>
<li><a href="#" onclick="JumpFrame('catalog_menu.php','public_guide.php');">内容发布</a></li>
<li><a href="#" onclick="JumpFrame('index_menu.php','content_list.php');">内容维护</a></li>
<li><a href="#" onclick="JumpFrame('index_menu.php','index_body.php');">系统主页</a></li>
<li><a href="../index.php?upcache=1" target="_blank">网站主页</a></li>
<li><a href="../member" target="_blank">会员中心</a></li>
<li><a href="exit.php" target="_top">注销</a></li>
</ul>
<div class="quick"> <a href="#" class="ac_qucikmenu" id="ac_qucikmenu">快捷方式</a> <a href="#" class="ac_qucikadd" id="ac_qucikadd">
<!--ADD-->
</a> </div>
</div>
</div>
<div class="topnav">
<div class="menuact"> <a href="#" id="togglemenu">隐藏菜单</a>
<?php
if($cuserLogin->getUserType() >= 10) echo '<a href="#" id="allmenu">功能地图</a>';
?>
</div>
<div id="skin">
<div>
<ul id="skinlist">
<li id="s1">
<div<?php echo $cfg_admin_skin == 1? ' class="sel"' : '';?>><img alt="织梦绿" src="data:images/blank.gif"></div>
</li>
<li id="s2">
<div<?php echo $cfg_admin_skin == 2? ' class="sel"' : '';?>><img alt="淡蓝" src="data:images/blank.gif"></div>
</li>
<li id="s3">
<div<?php echo $cfg_admin_skin == 3? ' class="sel"' : '';?>><img alt="咖啡" src="data:images/blank.gif"></div>
</li>
<li id="s4">
<div<?php echo $cfg_admin_skin == 4? ' class="sel"' : '';?>><img alt="水墨" src="data:images/blank.gif"></div>
</li>
</ul>
</div> </div>
<div class="nav" id="nav"> </div>
<div class="sysmsg">
<h3>滚动消息:</h3>
<div class="scroll">
<form action="action_search.php" target="main" method="post">
<input name="keyword" type="text" value="功能搜索" onfocus="if(this.value=='功能搜索'){this.value='';}" onblur="if(this.value==''){this.value='功能搜索';}" class="allsearch" style="width:150px;"/>
<input name="" type="submit" value="搜索" class="np"/>
</form>
</div>
</div>
</div>
</div>
<div class="left">
<div class="menu" id="menu">
<iframe src="index_menu.php" id="menufra" name="menu" frameborder="0"></iframe>
</div>
</div>
<div class="right">
<div class="main">
<iframe id="main" name="main" frameborder="0" src="index_body.php"></iframe>
</div>
<!--<div id="help"><span id="content"><a href="#">栏目管理操作使用说明</a></span></div>-->
</div>
<div class="qucikmenu" id="qucikmenu">
<ul>
<?php
$dtp = new DedeTagparse();
$dtp->SetNameSpace('menu','<','>');
$dtp->LoadTemplet($myIcoFile);
if(is_array($dtp->CTags))
{
foreach($dtp->CTags as $ctag)
{
$title = $ctag->GetAtt('title');
$ico = $ctag->GetAtt('ico');
$link = $ctag->GetAtt('link');
echo "<li><a href='{$link}' target='main'>{$title}</a></li>\r\n";
}
}
?>
</ul>
</div>
<script language="javascript">
function JumpFrame(url1, url2){
jQuery('#menufra').get(0).src = url1;
jQuery('#main').get(0).src = url2;
}
(function($)
{
$("#skinlist>li").click(function()
{
var adminskin = $(this).index() + 1;
var csshref = "images/style"+adminskin+"/style.css";
$("#skinlist>li").each(function(){$(this).children('div').attr('class', '')});
$("#topdedelogo").attr('src', 'images/style'+adminskin+'/admin_top_logo.gif')
$('link').each(function()
{
if($(this).attr('href').match(/style.css$/))
{
$(this).attr('href',csshref);
}
});
$(this).children('div').attr('class', 'sel');
$(window.frames["menu"].document).find("link").each(function()
{
if($(this).attr('href').match(/style.css$/))
{
$(this).attr('href',csshref);
}
});
$(window.frames["main"].document).find("link").each(function()
{
if($(this).attr('href').match(/style.css$/))
{
$(this).attr('href',csshref);
}
});
$.get('index_body.php?dopost=setskin&cskin='+adminskin);
});
})(jQuery);
</script>
</body>
</html>

2、index_body.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>DedeCms Home</title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/indexbody.css" />
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script type="text/javascript" src="../include/js/jquery/jquery.js" ></script>
<script language="javascript" src="../include/js/jquery/ui.core.js"></script>
<script language="javascript" src="../include/js/jquery/ui.draggable.js"></script>
<script language="javascript" src="../include/js/jquery/ui.sortable.js"></script>
<script language="javascript" src="js/jquery.json-2.2.min.js"></script>
<script language="javascript" src="js/indexbody.js"></script>
<script language="javascript" src="js/drag.js"></script>
<script type="text/javascript">
function showMore()
{
$("#allInfo").toggle();
$("#allInfoTD").toggle();
} $(function()
{
$.get("index_testenv.php",function(data)
{
if(data !== '')
{
$("#__testEvn").html(data);
}
})
})
</script>
</head>
<body leftmargin="8" topmargin='8' bgcolor="#FFFFFF">
<div style="min-width:780px">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div id='' style='float:right;padding-right:8px;'>
<!-- //保留位置(顶右) -->
</div>
</td>
</tr>
<tr>
<td height="1" background="images/sp_bg.gif" style='padding:0px'></td>
</tr>
</table>
<div id="__testEvn"></div>
<div id='mainmsg'>
<div class="column" id="column1"><!--左侧开始-->
<!--更新消息结束-->
<!--更新消息结束-->
<dl class='dbox' id="item3">
<dt class='lside'>
<div class='l'>快捷操作</div>
<div class='r'><a href='#' onClick="AddNew()"><b>【新增】</b></a><a href='#' onClick="ListAll()"><b>【管理】</b></a></div>
</dt>
<dd>
<div id='quickmenu'>
<?php
$dtp = new DedeTagparse();
$dtp->SetNameSpace('menu','<','>');
$dtp->LoadTemplet($myIcoFile);
if(is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag){
$title = $ctag->GetAtt('title');
$ico = $ctag->GetAtt('ico');
$link = $ctag->GetAtt('link');
echo "<div class='icoitem' style='background:url($ico) 10px 3px no-repeat;'><a href='{$link}'>{$title}</a></div>\r\n";
}
}
?>
</div>
</dd> </dl><!--快捷操作结束-->
<dl class="dbox" id="item4">
<dt class='lside'><div class='l'>系统基本信息</div></dt>
<dd class='intable'>
<table width="98%" class="dboxtable">
<tr>
<td width="25%" class='nline' style="text-align:right">您的级别:</td>
<td class='nline'>
<?php
if($cuserLogin->getUserType()==10) {
echo "总管理员";
} else if($cuserLogin->getUserType()==5) {
echo "频道总编";
} else {
echo "信息采集员或其它管理员";
}
?>
[<a href="javascript:showMore()">查看更多</a>]</td>
</tr>
<tr>
<td colspan="2" class='nline' id="allInfoTD" style="display:none"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo" style="display:none">
<tr>
<td rowspan="5" class='nline' style="text-align:right">PHP环境摘要:</td>
<td class='nline' style="text-align:left"> PHP版本:<?php echo @phpversion(); ?>&nbsp;GD版本:<?php echo @gdversion(); ?></td>
</tr>
<tr>
<td class='nline' style="text-align:left">是否安全模式:<font color='red'><?php echo ($isSafeMode ? 'On' : 'Off')?></font>
<?php
if($isSafeMode) {
echo "<br>  <font color='blue'>由于您的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录,完成后:<a href='testenv.php' style='color:red'><u>点击此进行一次DedeCms目录权限检测&gt;&gt;</u></a></font>";
} else {
echo " <a href='testenv.php' style='color:blue'><u>DedeCMS目录权限检测&gt;&gt;</u></a></font>";
}
?>
</td>
</tr>
<tr>
<td class='nline' style="text-align:left">
Register_Globals:<font color='red'><?php echo ini_get("register_globals") ? 'On' : 'Off'?></font> &nbsp;
Magic_Quotes_Gpc:<font color='red'><?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></font>
</td>
</tr>
<tr>
<td class='nline' style="text-align:left">支持上传的最大文件:<?php echo ini_get("post_max_size")?></td>
</tr>
<tr>
<td class='nline' style="text-align:left">是否允许打开远程连接:<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td>
</tr>
<tr>
<td class='nline' style="text-align:right"> 其它必须函数检测:</td>
<td class='nline' style="text-align:left">
<?php
$needfunc = array('dir','phpinfo');
$n = 0;
foreach($needfunc as $k) {
if(!function_exists($k)) {
echo "<font color='red'>[{$k}×]</font> ";
$n++;
}
}
if($n==0) {
echo "符合要求";
} else {
echo "被禁用的函数可能导致部份功能无法使用!";
}
?>
</td>
</tr>
<tr>
<td class='nline' style="text-align:right"> 软件版本信息: </td>
<td class='nline' style="text-align:left"> 版本名称:<?php echo $cfg_soft_enname; ?>&nbsp;版本号:<?php echo $cfg_version; ?></td>
</tr>
</table></td>
</tr>
</table>
</dd>
</dl><!--系统基本信息结束-->
<!--开发团队结束-->
</div><!--左侧结束-->
<div class="column" id="column2" ><!-- //右边的快捷消息开始 -->
<!--赞助商链接结束-->
<dl class='dbox' id="item6">
<dt class='lside'><div class='l'>信息统计</div></dt>
<dd id='listCount'>
正在载入中...
</dd>
</dl><!--信息统计结束-->
<dl class='dbox' id="item7">
<dt class='lside'><div class='l'>最新文档</div></dt>
<dd id='listNews'>
<?php
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc
LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
$arcArr = array();
$dsql->Execute('m', $query);
while($row = $dsql->GetArray('m'))
{
$arcArr[] = $row;
}
?>
<table width="100%" class="dboxtable">
<?php
if(count($arcArr) > 1)
{
foreach($arcArr as $row)
{
if(trim($row['editcon'])=='') {
$row['editcon'] = 'archives_edit.php';
}
$linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
?>
<tr>
<td class='nline' style="text-align:left">
<?php echo $linkstr; ?>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td class='nline' style="text-align:left">
暂无新增内容
</td>
</tr>
<?php
}
?>
</table>
</dd>
</dl><!--最新文档结束-->
</div>
</div>
<br style='clear:both'/>
<!-- //底部 --> <!-- 下面是隐藏的项目 -->
<div id='loaddiv' style='display:none'>
<p align='center' style='padding-top:200px'><img src='images/loadinglit.gif' /> 请稍后,正在下载更新文件列表...</p>
</div>
<div id="editTab">
<span id='editTabBody'>请稍候,正在载入...</span>
</div>
<div id="addTab">
<form name='addform' action='index_body.php'>
<input type='hidden' name='dopost' value='addnew' />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height='28' colspan='3' background="images/tbg.gif">
<div style='float:left'><b>增加快捷操作项</b></div>
<div style='float:right;padding:3px 10px 0 0;'>
<a href="javascript:CloseTab('addTab')"><img src="data:images/close.gif" width="12" height="12" border="0" /></a>
</div>
</td>
</tr>
<tr><td style="height:6px;font-size:1px;border-top:1px solid #8DA659" colspan="2">&nbsp;</td></tr>
<tr>
<td width="20%" height="28" align="right">链接标题:</td>
<td width="70%">
<input name="title" type="text" id="title" class='pubinputs' style="width:255px;"/>
</td>
</tr>
<tr>
<td height="28" width="20%" align="right">ICO图片:</td>
<td width="70%">
<input name="ico" type="text" id="ico" class='pubinputs' style="width:255px;"/>
</td>
</tr>
<tr>
<td height="28" width="20%" align="right">链接网址:</td>
<td width="70%">
<input name="link" type="text" id="link" class='pubinputs' style="width:255px;"/>
</td>
</tr>
<tr>
<td height="45">&nbsp;</td>
<td>
<input type="submit" name="Submit" value="保存项目" class="np coolbg" style="width:80px;cursor:pointer" />
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>

dede 替换后台两个文件去广告的更多相关文章

  1. apk去广告工具(利用apktool去除apk文件里的广告)

    基本知识 apk安装包的文件结构 以知名桌面软件“LauncherPro”为例,apk安装包文件目录: 文件目录如下: - META-INF - res - anim - color - drawab ...

  2. [代码审计]phpshe开源商城后台两处任意文件删除至getshell

    0x00 背景 这套系统审了很久了,审计的版本是1.6,前台审不出个所以然来.前台的限制做的很死. 入库的数据都是经过mysql_real_escape_string,htmlspecialchars ...

  3. 2014年去哪儿网笔试题--有两个文件context.txt和words.conf,请尝试将他们合并成为一段文字,并打印出来。

    有两个文件context.txt和words.conf,请尝试将他们合并成为一段文字,并打印出来. 这两个文件内容如下: context.txt “并不是每个人都需要$(qunar)自己的粮食,$(f ...

  4. 冰点文库下载器 v3.2.12(0314) 去广告单文件

    冰点文库,免积分免登陆文档下载神器!付费文档免费下载工具.百度文库免费下载工具.        冰点文库下载器,免费下载文档工具,无需积分也无需登陆就能自由下载百度文库.豆丁网.丁香网.电器网.MBA ...

  5. 织梦CMS去广告方法 for DedeCMS V5.7

    DedeCms 5.7新版发布,下来上传至服务器安装完毕,点击进入后台登陆界面,怎么多了广告链,而且登陆界面也变了,以前可不带这样的啊.按步骤一步一步来去版权再去广告吧. 一,去处后台登陆页login ...

  6. openwrt下部署adbyby去广告大师 免luci 带自启动,自动开启透明代理

    最近朋友送了个360老路由器 C301,于是乎就掉进了智能路由器的坑, 玩智能路由器第一件事一定是去广告, 要么怎么对得起智能路由器- -! 路由器去广告当然首推广告屏蔽大师 www.adbyby.c ...

  7. 新浪微博2.5.1 for Android 去广告

    新浪微博更新到2.5.1版,就开始来广告了,伤不起啊... 亲,看到没,手机屏幕就那么一小块,还要往里面塞东西,另外是一个在后台运行的AdCenter服务. 所需要用到的工具有:apktool,JD- ...

  8. WinRAR 去广告的姿势

    一直在使用WinRAR解压文件,感觉非常的好用,可是现在WinRAR添加了广告,每次打开压缩包都会弹出广告,有时候甚至在解压的时候弹出来,而每次弹出广告都会卡顿一下,忍了很长时间今天实在是受够了,准备 ...

  9. 快看!❤️又一超实用浏览器插件!常用网站自动整合,JSON格式化,CSDN全站去广告!多种工具一键调用。开发者的福音!

    其实这个插件才出来的时候博主也下载了使用过,并没有什么亮点,那时候甚至觉得有点多余,因为CSDN全站去广告啥的,早就安装了油猴脚本,广告?不存在的嘿嘿.. 就在前几天看见CSDN的活动在推荐这款插件, ...

随机推荐

  1. C#保留小数位数

    1.System.Globalization.NumberFormatInfo provider = new System.Globalization.NumberFormatInfo(); prov ...

  2. 传说中的WCF(3):多个协定

    我们知道,WCF服务端是先定义服务协定,其实就是一个接口,然后通过实现接口来定义服务类.那么,有一个问题,如果一个服务类同时实现N个接口(也就是有N个协定)呢?结果会如何? 不必猜,我们还是通过实验来 ...

  3. 两台笔记本搭建openvswitch网络

    环境说明: 笔记本A.B均运行Ubuntu 14.04,两台笔记本通过无线网卡上网,用一根网线连接两台笔记本的有线网卡. 网络拓扑: 其中,vm1 vm2 S1位于笔记本A,vm3 vm4 S2位于笔 ...

  4. odata

    http://www.odata.org/ Open Data Protocol (开放数据协议,OData)是用来查询和更新数据的一种Web协议,其提供了把存在于应用程序中的数据暴露出来的方式.OD ...

  5. Android应用的核心基础

    Android4开发入门经典 之 第二部分:Android应用的核心基础 Android应用中的组件 Application Components Android应用中最主要的组件是: 1:Activ ...

  6. BeanUtils.copyProperties与PropertyUtils.copyProperties用法及区别

    一.简介: BeanUtils提供对Java反射和自省API的包装.其主要目的是利用反射机制对JavaBean的属性进行处理.我们知道,一个JavaBean 通常包含了大量的属性,很多情况下,对Jav ...

  7. IOS中延时执行的几种方式的比较

    本文列举了四种延时执行某函数的方法及其一些区别.假如延时1秒时间执行下面的方法. - (void)delayMethod { NSLog(@"execute"); } 1.perf ...

  8. MAC 如何设置文件夹权限为777

    1. cd 你的文件夹路径的上一级目录. 2. sudo chmod -R 777 你的文件夹名. 3. 输入密码. 4.成功

  9. (转载)怎么写tab?

    演示地址:http://www.adanghome.com/js_demo/3/ =========================================================== ...

  10. Largest Rectangle in Histogram-最大长方形

    题目描述: 给定n个非负整数height[n],分别代表直方图条的高,每个条的宽设为1,求直方图中面积最大的矩形的面积 题目来源: http://oj.leetcode.com/problems/la ...