管理员如果超过24小时进入 ecshop 管理中心会自动执行版本检查,但有时网路品质不良,连线速度异常时,容易拖慢网页速度,因此,去掉版本检查有其必要性。 删除后请自己随时关注版本升级以及漏洞,建议一定要更改默认的后台目录!
经好模板搜寻结果共找到四处:
1、admin\index.php 约519行
$api_comment = $t->request(‘http://api.ecshop.com/checkver.php’, $apiget);
改为
// $api_comment = $t->request('http://api.ecshop.com/checkver.php', $apiget);
2、admin\shop_config.php 约231行
将
$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>’;
加上注解
/*$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>’;*/
3、admin\templates\index.htm 约26行
<frame src="http://api.ecshop.com/record.php?mod=login&url={$shop_url}" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no">
加上注解
<!– <frame src="http://api.ecshop.com/record.php?mod=login&url={$shop_url}" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no"> –>
4、admin\templates\menu.htm 约143行
<script language="JavaScript" src="http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}"></script>
加上注解
<!– <script language="JavaScript" src="http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}"></script> –>
完成! (责任编辑:好模板) |