• <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
  • <th id="l3qpx"><progress id="l3qpx"></progress></th>
      <th id="l3qpx"></th>
      <dd id="l3qpx"><font id="l3qpx"></font></dd>
      <th id="l3qpx"></th>
      0712-2888027 189-8648-0214
      微信公眾號

      孝感風(fēng)信網(wǎng)絡(luò)科技有限公司微信公眾號

      當(dāng)前位置:主頁 > 技術(shù)支持 > ECShop > ecshop刪除手機網(wǎng)頁WAP版的方法

      ecshop刪除手機網(wǎng)頁WAP版的方法

      時間:2015-11-09來源:風(fēng)信官網(wǎng) 點擊: 898次

      刪除自帶的WAP版。用手機打開ECSHOP,就會跳轉(zhuǎn)到mobile文件夾,如果打開wap功能,就能看到wap版得網(wǎng)站,且有BUG,難看。

      但目前智能手機、PAD、IPhone、Android可以跟電腦一樣瀏覽和購物。實在不行,就下載個uc瀏覽器。所以這個wap功能實在無用武之地,可以徹底刪除,且提高安全性。

      一、刪除/wap和/mobile目錄和目錄下的所有文件

      二、/index.php中刪除

      $ua = strtolower($_SERVER['HTTP_USER_AGENT']);

      $uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";

      if(($ua == '' || preg_match($uachar, $ua))&& !strpos(strtolower($_SERVER['REQUEST_URI']),'wap'))
      {
      $Loaction = 'mobile/';

      if (!empty($Loaction))
      {
      ecs_header("Location: $Loaction\n");

      exit;
      }

      }

      ecshop刪除手機網(wǎng)頁WAP版的方法

      三、刪除相關(guān)數(shù)據(jù)庫(在SQL執(zhí)行以下代碼)

      DELETE FROM ecs_shop_config WHERE ecs_shop_config.code in ( "wap", "wap_config","wap_logo");

      四、languages/zh_cn/admin/shop_config.php中刪除

      $_LANG['cfg_name']['wap']   = 'WAP設(shè)置';
      $_LANG['cfg_name']['wap_config']    = '是否使用WAP功能';
      $_LANG['cfg_range']['wap_config'][0] = '關(guān)閉';
      $_LANG['cfg_range']['wap_config'][1] = '開啟';
      $_LANG['cfg_name']['wap_logo']      = 'WAP LOGO上傳';
      $_LANG['cfg_desc']['wap_logo']      = '為了更好地兼容各種手機類型,LOGO 最好為png圖片';

      ecshop刪除手機網(wǎng)頁WAP版的方法

      做完這四步,顯示PC頁就木有問題了。

      熱門關(guān)鍵詞: ecshop 刪除手機網(wǎng)頁 WAP版
      欄目列表
      推薦內(nèi)容
      熱點內(nèi)容
      展開
      欧美一区二区三区免费A级视频,亚洲精品中文字幕综合,动漫精品中文字幕无码第一页,1024亚洲国产综合 亚太影院 柯西贝尔-游戏赚网
    1. <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
    2. <th id="l3qpx"><progress id="l3qpx"></progress></th>
        <th id="l3qpx"></th>
        <dd id="l3qpx"><font id="l3qpx"></font></dd>
        <th id="l3qpx"></th>