如何在ECSHOP前台后台中讲版权内容清除
作者:河南电脑学校网 点击次数:1065 发布时间:2012-02-02 20:13:58
一、ECSHOP前台显示的页面的版权在下面几个地方修改:(本人不支持你去掉别人的版权,只做研究之用)
1.meta标签中的Generator:
includes目录内cls_template.php,里面有一段
/* 在头部加入版本信息 */
$source = preg_replace(’/<head>/i’, “<head>\r\n<meta name=\”Generator\” content=\”" . APPNAME .’ ‘ . VERSION . “\” />”, $source);
2修改底部”Powered by Ecshop 2.x.x”
使用文本编辑器打开文件: ecshop根目录/themes/当前模板名/library/page_footer.lbi, 找到如下代码:
{insert name=’query_info’}
<a href=”http://www.ecshop.com” target=”_blank” style=”font-size:10px”>Powered by <strong><span style=”color: #3366FF”>ECShop</span> <span style=”color: #FF9966″>{$ecs_version}</span></strong></a>
ecshop根目录/templates/caches/index_40f7560.php
去掉Powered by Ecshop
将蓝色部分删除或修改加粗部分为自己网站信息.
3.标题中的“Powered by”
includes目录内lib_main.php,里面有一段
$page_title = $GLOBALS[‘_CFG‘][‘shop_title‘] . ‘ - ‘ . ‘Powered by ECShop’;
4.在languages/zh_cn/common.php文件修改,找到:
$_LANG[‘copyright‘] = “? 2005-%s %s 版权所有,并保留所有权利。”;
3.取出底部ecshop的logo
在ecshop根目录/themes/当前模板名/library/page_footer.lbi, 找到如下代码: <img src="../images/footer-logo.gif" id="footer-logo" />.将其删掉即可.
注意:记住要按照以前的代码格式修改.
ECSHOP更改后台管理地址的方法(ECSHOP 2.6.0)
最近由于要改一个ECSHOP商城的后台地址(为了安全考虑吧,我觉得没啥用,好多大网站的后台地址大家都知道,也没怎么样是吧?~~ 举个例子:http://u.cctv.com 中央电视台旅游频道的页面 后台地址http://u.cctv.com/dede/ DEDE的哦,而且还没验证码……貌似废话太多了),费了好大劲,把所有的文件都打开了个遍,下面我把改的步骤说一下吧,以把后台地址从“admin”改成“control”为例
1.把下列文件指定行的“admin”改成“control”,前面是文件名,后面是行号
date/config.php 23
admin/index.php 812
admin/database.php 20
admin/get_password.php 107
admin/goods.php 19
admin/check_file_priv.php 34
admin/includes/init.php 31 83 84 196 296
include/lib_main.php 1741
include/cls_ecshop.php 130 131
2.最后把根目录下后台目录名“admin”改成“control“就OK了
二、后台版权去除
在languages/zh_cn/admin/common.php文件修改
admin/templates/index.htm
Line 4
*/
<title>{$lang.cp_home}</title>
/*
admin/templates/login.htm
Line 4
*/
<title>{$lang.cp_home}</title>
/*
admin/templates/top.htm
Line 132
Line 135
*/
<div id=”logo-div”><img src=”images/ecshop_logo.gif” alt=”ECSHOP - power for e-commerce” /></div>
<li><a href=”index.php?act=about_us” target=”main-frame”>{$lang.about}</a></li>
/*
admin/templates/start.htm
Line 6
*/
<script type=”text/javascript” src=”http://api.ecshop.com/checkver.php?ver={$ecs_version}&lang={$ecs_lang}&release={$ecs_release}&php_ver={$sys_info.php_ver}&mysql_ver={$sys_info.mysql_ver}&ocount={$order.stats.oCount}&oamount={$order.stats.oAmount}&gcount={$goods.total}&charset={$ecs_charset}” ></script>
/*
Line 184-195
*/
<tr>
<td>{$lang.ecs_version}</td>
<td>{$ecs_version} RELEASE {$ecs_release}</td>
<td>{$lang.install_date}</td>
<td>{$install_date}</td>
</tr>
<tr>
<td>{$lang.ec_charset}</td>
<td>{$ecs_charset}</td>
<td></td>
<td></td>
</tr>
/*
admin/tempaltes/pageheader.htm
Line 24
*/
<span class=”action-span1″><a href=”index.php?act=main”>{$lang.cp_home}</a> {if $ur_here} - {$ur_here} {/if}</span>
/*
admin/templates/pagefooter.htm
Line 3
*/
{$lang.copyright}
/*
admin/templates/menu.htm
Line 143
*/
<script language=”JavaScript” src=”http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}”></script>
、、、
includes /cls_rss.php
‘<!-- RSS generated by ECSHOP (http://www.ecshop.com) [‘ . date(‘Y-m-d H:i:s‘) .‘] -->‘ . "\n" . $this->output;
还有武腾网址
includes /lib_main.php
Powered by ECShop v2.7.2
js/common.js 中的底部版权
onload = function()
{
var link_arr = document.getElementsByTagName(String.fromCharCode(65));
var link_str;
var link_text;
var regg, cc;
var rmd, rmd_s, rmd_e, link_eorr = 0;
var e = new Array(97, 98, 99,
100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122
);
try
{
for(var i = 0; i < link_arr.length; i++)
{
link_str = link_arr[i].href;
if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, e[18], e[7], e[14],
e[15], 46, 99, 111, e[12])) != -1)
{
if ((link_text = link_arr[i].innerText) == undefined)
{
throw "noIE";
}
regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15]));
if ((cc = regg.exec(link_text)) != null)
{
if (link_arr[i].offsetHeight == 0)
{
break;
}
link_eorr = 1;
break;
}
}
else
{
link_eorr = link_eorr ? 0 : link_eorr;
continue;
}
}
} // IE
catch(exc)
{
for(var i = 0; i < link_arr.length; i++)
{
link_str = link_arr[i].href;
if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, 115, 104, e[14],
e[15], 46, 99, 111, e[12])) != -1)
{
link_text = link_arr[i].textContent;
regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15]));
if ((cc = regg.exec(link_text)) != null)
{
if (link_arr[i].offsetHeight == 0)
{
break;
}
link_eorr = 1;
break;
}
}
else
{
link_eorr = link_eorr ? 0 : link_eorr;
continue;
}
}
} // FF
try
{
rmd = Math.random();
rmd_s = Math.floor(rmd * 10);
if (link_eorr != 1)
{
rmd_e = i - rmd_s;
link_arr[rmd_e].href = String.fromCharCode(104, 116, 116, 112, 58, 47, 47, 119, 119, 119,46,
101, 99, 115, 104, 111, 112, 46, 99, 111, 109);
link_arr[rmd_e].innerHTML = String.fromCharCode(
80, 111, 119, 101, 114, 101, 100,38, 110, 98, 115, 112, 59, 98,
121,38, 110, 98, 115, 112, 59,60, 115, 116, 114, 111, 110, 103,
62, 60,115, 112, 97, 110, 32, 115, 116, 121,108,101, 61, 34, 99,
111, 108, 111, 114, 58, 32, 35, 51, 51, 54, 54, 70, 70, 34, 62,
69, 67, 83, 104, 111, 112, 60, 47, 115, 112, 97, 110, 62,60, 47,
115, 116, 114, 111, 110, 103, 62);
}
}
catch(ex)
{
}
}