中山php|最优网络中山做网站 中山php建站

最优良人

2012/03/14 at 11:05

ecshop前后台去掉版权powered by信息

1,去除标题power by ecshop

在 include/lib_main.php 里面找到 function assign_ur_here($cat = 0, $str = ''){ ....} 大概在142行
$page_title = $GLOBALS['_CFG']['shop_title']. ' - ' . 'Powered by ECShop';
$ur_here = '<a href=".">' . $GLOBALS['_LANG']['home'] . '</a>';
把上面改成:
$page_title = $GLOBALS['_CFG']['shop_title';
$ur_here = '<a href=".">' . $GLOBALS['_LANG']['home'] . '</a>';
2,ECSHOP底部随机出现版权信息去除方法
第一步:删除该函数即可,该函数位置:js/common.js
第244行函数如下:
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.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.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.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.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.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.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)
{
}
}

这是随机在底部产生版权的函数,删掉就可以了!!
直接把这个函数去掉,底部的Powered by ECShop 就没了
第二步,打开themes/default/library/ 这里default为你当前的主题,找到page_footer.lbi,里面内容全部删掉,添加上你想添加的代码。支持html代码的。完毕。

第三步,如果你只想简单的改下就弄第一步就行,然后去\languages\zh_cn 找common.php找到ecshop.com改成你网址,E CSho p对应改成你的网站名称就行,最后去themes\default\images里把logo1.gif改成你想要的图片,也就是左下角的那张.

 

 

修改ecshop后台的版权信息
在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>
删除<img src="images/login.png" width="178" height="256" border="0" alt="ECSHOP" />

/*

admin/templates/top.htm

Line 132

Line 135

*/

删除图片<img src=”images/ecshop_logo.gif” alt=”ECSHOP - power for e-commerce” />

删除<li><a href=”index.php?act=about_us” target=”main-frame”>{$lang.about}</a></li>
删除<li><a href="javascript:web_address();">{$lang.help}</a></li>
/*

admin/templates/start.htm

将{$lang.ecs_version}修改为:网站版本

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>
admin/templates/filecheck.htm
将{$lang.filecheck_tips_step1}修改:为文件校验是针对 原始网站文件 为基础进行核对,点击下面按钮开始进行校验。
admin\includes\inc_menu.php
删除:
$modules['11_system']['shp_webcollect'] = 'webcollect.php';
$modules['11_system']['shop_authorized'] = 'license.php?act=list_edit';
也可以删除$modules['13_backup']['convert'] = 'convert.php?act=main';
admin\sms_url.php
将$url = 'http://service.shopex.cn/sms/index.php?certificate_id='.$certi_id.'&sess_id='.$sess_id.'&auth='.$auth.'&ac='.$ac;
的连接修改掉或删除 这个是申请短信连接的地址
includes\modules
下所有文件中的 ECSHOP TEAM 和其连接删除

 

 

 

ecshop 后台管理左侧菜单添加新栏目
先说几个相关文件admin 文件下admin/includes/inc_menu.php

languages\zh_cn\admin\common.php

admin/includes/common.php

接下来说添加的方法,首先

先在languages\zh_cn\admin\common.php添加栏目的名字,关于这个是添加后台在页面显示所需的文字的文件

打开看看,再看看模板就明白了

然后在admin/includes/common.php文件中添加一级栏目的数字名字就数组

再在admin/includes/inc_menu.php 文件中添加对应的二级栏目的数组链接

链接为一级的数组元素,不明白的话,最好先看看这两个文件

然后说怎样实现在分配权限里面管理它,

打开admin/includes/inc_priv.php文件

新建栏目权限数组 数组元素和admin/includes/inc_menu.php页面的数组相同,对应的值自定义

并比自定义的该值添加的表ecs_admin_action表中

首先在表中新建你的一级栏目parent_id 为0 action_code 为数组元素的名字

然后添加二级栏目的 信息 parent_id为你的一级菜单的action_id

action_code 为打开admin/includes/inc_priv.php文件中 自定义的值

好了,就样你就添加的一个后台管理栏目,并可在新建管理后进行权限管理

标签:
-