如果云提醒未激活连接不成功无法登陆后台

2016-07-07 15:13 来源:www.chinab4c.com 作者:ecshop专家

如果云提醒未激活连接不成功无法登陆后台,如何去除后台这个玩意。请大伙指点

回答:
终于找到去掉方法

1:
  1. 打开

  2. admin/index.php 删除如下



  3. if($data === false || API_TIME < date('Y-m-d H:i:s',time()-43200))
  4. {
  5. include_once(ROOT_PATH . 'includes/cls_transport.php');
  6. $ecs_version = VERSION;
  7. $ecs_lang = $_CFG['lang'];
  8. $ecs_release = RELEASE;
  9. $php_ver = PHP_VERSION;
  10. $mysql_ver = $db->version();
  11. $order['stats'] = $db->getRow('SELECT COUNT(*) AS oCount, IFNULL(SUM(order_amount), 0) AS oAmount' .
  12. ' FROM ' .$ecs->table('order_info'));
  13. $ocount = $order['stats']['oCount'];
  14. $oamount = $order['stats']['oAmount'];
  15. $goods['total'] = $db->GetOne('SELECT COUNT(*) FROM ' .$ecs->table('goods').
  16. ' WHERE is_delete = 0 AND is_alone_sale = 1 AND is_real = 1');
  17. $gcount = $goods['total'];
  18. $ecs_charset = strtoupper(EC_CHARSET);
  19. $ecs_user = $db->getOne('SELECT COUNT(*) FROM ' . $ecs->table('users'));
  20. $ecs_template = $db->getOne('SELECT value FROM ' . $ecs->table('shop_config') . ' WHERE code = \'template\'');
  21. $style = $db->getOne('SELECT value FROM ' . $ecs->table('shop_config') . ' WHERE code = \'stylename\'');
  22. if($style == '')
  23. {
  24. $style = '0';
  25. }
  26. $ecs_style = $style;
  27. $shop_url = urlencode($ecs->url());

  28. $patch_file = file_get_contents(ROOT_PATH.ADMIN_PATH."/patch_num");

  29. $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 ";

  30. $t = new transport;
  31. $api_comment = $t->request('http://api.ecshop.com/checkver.php', $apiget);
  32. $api_str = $api_comment["body"];
  33. echo $api_str;

  34. $f=ROOT_PATH . 'data/config.php';
  35. file_put_contents($f,str_replace("'API_TIME', '".API_TIME."'","'API_TIME', '".date('Y-m-d H:i:s',time())."'",file_get_contents($f)));

  36. write_static_cache('api_str', $api_str);
  37. }
  38. else
  39. {
  40. echo $data;
  41. }
复制代码



2.
  1. 打开ecshop2.7.3

  2. 找到admin/cloud.php 文件。

  3. 搜索 cloud.ecshop.com

  4. 大概60行 ,140行,228行

  5. 分别在行前加“//”注释掉,或者整行删除,这样后台云中心菜单自动隐藏掉了。

  6. 还有个办法是在后台模板里修改,menu.htm,start.htm 搜索cloud.php?is_ajax=1 把整段JS 删除
复制代码



在也不会出现登陆弹出,一直登陆不了的情况

学习了,好啊