久艹网,亚洲一日韩欧美中文字幕2019,国产欧美日韩精品专区黑人,一区二区三区久久99

中山php|最優(yōu)網(wǎng)絡(luò)中山做網(wǎng)站 中山php建站

最優(yōu)良人

2012/03/14 at 11:05

ecshop前后臺去掉版權(quán)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底部隨機出現(xiàn)版權(quán)信息去除方法
第一步:刪除該函數(shù)即可,該函數(shù)位置:js/common.js
第244行函數(shù)如下:
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)
{
}
}

這是隨機在底部產(chǎn)生版權(quán)的函數(shù),刪掉就可以了!!
直接把這個函數(shù)去掉,底部的Powered by ECShop 就沒了
第二步,打開themes/default/library/ 這里default為你當前的主題,找到page_footer.lbi,里面內(nèi)容全部刪掉,添加上你想添加的代碼。支持html代碼的。完畢。

第三步,如果你只想簡單的改下就弄第一步就行,然后去\languages\zh_cn 找common.php找到ecshop.com改成你網(wǎng)址,E CSho p對應(yīng)改成你的網(wǎng)站名稱就行,最后去themes\default\images里把logo1.gif改成你想要的圖片,也就是左下角的那張.

 

 

修改ecshop后臺的版權(quán)信息
在languages/zh_cn/admin/common.php文件修改
admin/templates/index.htm

Line 4

*/
<title>{$lang.cp_home}</title>

將下部版權(quán)修改為自己的
/*

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}修改為:網(wǎng)站版本

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}修改:為文件校驗是針對 原始網(wǎng)站文件 為基礎(chǔ)進行核對,點擊下面按鈕開始進行校驗。
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 后臺管理左側(cè)菜單添加新欄目
先說幾個相關(guān)文件admin 文件下admin/includes/inc_menu.php

languages\zh_cn\admin\common.php

admin/includes/common.php

接下來說添加的方法,首先

先在languages\zh_cn\admin\common.php添加欄目的名字,關(guān)于這個是添加后臺在頁面顯示所需的文字的文件

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

然后在admin/includes/common.php文件中添加一級欄目的數(shù)字名字就數(shù)組

再在admin/includes/inc_menu.php 文件中添加對應(yīng)的二級欄目的數(shù)組鏈接

鏈接為一級的數(shù)組元素,不明白的話,最好先看看這兩個文件

然后說怎樣實現(xiàn)在分配權(quán)限里面管理它,

打開admin/includes/inc_priv.php文件

新建欄目權(quán)限數(shù)組 數(shù)組元素和admin/includes/inc_menu.php頁面的數(shù)組相同,對應(yīng)的值自定義

并比自定義的該值添加的表ecs_admin_action表中

首先在表中新建你的一級欄目parent_id 為0 action_code 為數(shù)組元素的名字

然后添加二級欄目的 信息 parent_id為你的一級菜單的action_id

action_code 為打開admin/includes/inc_priv.php文件中 自定義的值

好了,就樣你就添加的一個后臺管理欄目,并可在新建管理后進行權(quán)限管理

標簽:
-