ecshop273除版权外后台必删除代码经验
2016-09-07 22:02 来源:www.chinab4c.com 作者:ecshop专家
chinab4c很多客户看到了我们以前分享的文章,都能去掉前台版权,但是后台版权删除,特别是那些乱跳的提示找不到教程。这次总结下经验,在ecshop最新273版上告诉大家方法: 1. 去除ecshop官方安装记录,具体代码何用途,你懂的!接到ecshop官方要你买授权的电话了吗? 找到admin/index.php 大概489-539行,删除之!
elseif ($_REQUEST['act'] == 'main_api')
{
require_once(ROOT_PATH . '/includes/lib_base.php');
$data = read_static_cache('api_str');
if($data === false || API_TIME < date('Y-m-d H:i:s',time()-43200))
{
include_once(ROOT_PATH . 'includes/cls_transport.php');
$ecs_version = VERSION;
$ecs_lang = $_CFG['lang'];
$ecs_release = RELEASE;
$php_ver = PHP_VERSION;
$mysql_ver = $db->version();
$order['stats'] = $db->getRow('SELECT COUNT(*) AS oCount, IFNULL(SUM(order_amount), 0) AS oAmount' .
' FROM ' .$ecs->table('order_info'));
$ocount = $order['stats']['oCount'];
$oamount = $order['stats']['oAmount'];
$goods['total'] = $db->GetOne('SELECT COUNT(*) FROM ' .$ecs->table('goods').
' WHERE is_delete = 0 AND is_alone_sale = 1 AND is_real = 1');
$gcount = $goods['total'];
$ecs_charset = strtoupper(EC_CHARSET);
$ecs_user = $db->getOne('SELECT COUNT(*) FROM ' . $ecs->table('users'));
$ecs_template = $db->getOne('SELECT value FROM ' . $ecs->table('shop_config') . ' WHERE code = \\'template\\'');
$style = $db->getOne('SELECT value FROM ' . $ecs->table('shop_config') . ' WHERE code = \\'stylename\\'');
if($style == '')
{
$style = '0';
}
$ecs_style = $style;
$shop_url = urlencode($ecs->url());
$patch_file = file_get_contents(ROOT_PATH.ADMIN_PATH."/patch_num");
$apiget = "ver= $ecs_version &lang= $ecs_lang &release= $ecs_release &php_ver= $php_ver &mysql_ver= $mysql_ver &ocount= $ocount &oamount= $oamount &gcount= $gcount &charset= $ecs_charset &usecount= $ecs_user &template= $ecs_template &style= $ecs_style &url= $shop_url &patch= $patch_file ";
$t = new transport;
$api_comment = $t->request('http://api.ecshop.com/checkver.php', $apiget);
$api_str = $api_comment["body"];
echo $api_str;
$f=ROOT_PATH . 'data/config.php';
file_put_contents($f,str_replace("'API_TIME', '".API_TIME."'","'API_TIME', '".date('Y-m-d H:i:s',time())."'",file_get_contents($f)));
write_static_cache('api_str', $api_str);
}
else
{
echo $data;
}
}
(责任编辑:chinab4c)2. 去除ecshop后台升级提示: 找到admin/templates/start.htm 234行 Ajax.call('index.php?is_ajax=1&act=main_api','', start_api, 'GET', 'TEXT','FLASE'); 删除或者前面加双斜杠 3. 去除ecshop后台云菜单 143行admin/templates/menu.htm <script language="JavaScript" src="http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}"></script> 该行代码删除 经过以上三个删除,就安全无忧,没有这些不实际的功能了。 |
最近更新
常用插件
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...
- ecshop二次开发商品购买增
图片1香...
- ecshop最小购买数量控制插
ecshop最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
ecshop热门问答
ecshop热门资料
ecshop实现
ecshop用户名省略中间
ecshop销售排行榜
ecshop移位
ecshopeachnet
ecshop推荐设置
ecshopPRIVILEGE
ecshop帅气
ecshop网民
ecshoplogo右侧
ecshopext
ecshop答案
ecshop收藏夹
ecshop链接问题
ecshopJamy
ecshopmanual
ecshop尊敬
ecshop手工录入
ecshop文章分页
ecshop皇明
ecshopShanghai
ecshop图片
ecshop女士内衣
ecshop央行
ecshopcertains
ecshop评论原理
ecshop添加导航
ecshop700
ecshop度数
ecshop怎么操作