God is not home today

首頁 | 網路廣播電台 | 網誌聯播 | 商品推薦

Ecshop v2.7.x 後台版本檢查功能移除

適用 Ecshop 2.7.x
打開admin目錄下把index.php的裡面如下代碼註解掉:
找到

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());
$apiget = "ver= $ecs_version 〈= $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 ";
$t = new transport;
  $api_comment = $t->request(『http://api.ecshop.com/checkver.php', $apiget);
  $api_str = $api_comment["body"];
  echo $api_str;

然後註解掉

admin\templates\index.htm 找到

<frame src="http://api.ecshop.com/record.php?mod=login&url={$shop_url}" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no">

註解掉

admin\templates\menu.htm 找到

<script language="JavaScript" src="http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}"></script>

註解掉

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>’;

註解掉

Tags: , , , , , , , ,

發佈日期: 2012年03月26日 星期一 | 文章分類:ECSHOP | 訂閱這篇文章:RSS 2.0
Both comments and pings are currently closed.

Comments are closed.