ecshop去版权
1、去掉Powered by ECShop
9、如果要关闭警告和各种错误,可以删除admin/templates/start.htm
下面这几行:
<ul id="lilist" style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
</ul>
如果要关闭更新提示,可以更改admin/index.php下面这几行
elseif ($_REQUEST['act'] == 'main_api')
{
//加上下面这一行
}
因为start.htm下面
有一个ajax函数,它会获取main_api这个动作的内容。如果要删除这个js函数当然更新的信息就不显示了,但是,个人认为最好不要。
Ajax.call('index.php?is_ajax=1&act=main_api','', start_api, 'GET', 'TEXT','FLASE');
ecshop后台要验证有没有新的版本和调用官方的API,如果不想要的话,可以去掉,去掉的方法如下,去掉ecshop后台验证,删除下面的文件的代码:
admin\shop_config.php
$spt = ‘<script type=”text/javascript” src=”http://api.ecshop.com/record.php?’;
$spt .= “url=” .urlencode($ecs->url());
$spt .= “&shop_name=” .urlencode($_CFG['shop_name']);
$spt .= “&shop_title=”.urlencode($_CFG['shop_title']);
$spt .= “&shop_desc=” .urlencode($_CFG['shop_desc']);
$spt .= “&shop_keywords=” .urlencode($_CFG['shop_keywords']);
$spt .= “&country=”.urlencode($shop_country).”&province=”.urlencode($shop_province).”&city=”.urlencode($shop_city);
$spt .= “&address=” .urlencode($_CFG['shop_address']);
$spt .= “&qq=$_CFG[qq]&ww=$_CFG[ww]&ym=$_CFG[ym]&msn=$_CFG[msn]“;
$spt .= “&email=$_CFG[service_email]&phone=$_CFG[service_phone]&icp=”.urlencode($_CFG['icp_number']);
$spt .= “&version=”.VERSION.”&language=$_CFG[lang]&php_ver=” .PHP_VERSION. “&mysql_ver=” .$db->version();
$spt .= “&charset=”.EC_CHARSET;
$spt .= ‘”></script>’;
admin\templates\index.htm
</script>
<script type=”text/javascript” src=”http://api.ecshop.com/record.php?mod=login&url={$shop_url}”></script>
admin\templates\menu.htm
<script language=”JavaScript” src=”http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}”></script>
\admin\templates\start.htm
<ul style=”padding:0; margin: 0; list-style-type:none; color: #CC0000;”>
{if $need_check_version}
<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>
{/if}
{foreach from=$warning_arr item=warning}
<li style=”border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;” >{$warning}</li>
{/foreach}
</ul>
<ul style=”padding:0; margin: 0; list-style-type:none; color: #CC0000;”>
<script type=”text/javascript” src=”http://bbs.ecshop.com/notice.php?v=1&n=8&f=ul”></script>
</ul>
<< 上一篇
下一篇 >>