真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

ECSHOP&nbsp如何修改后臺(tái)地址-創(chuàng)新互聯(lián)

小編給大家分享一下ECSHOP 如何修改后臺(tái)地址,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

創(chuàng)新互聯(lián)建站堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站建設(shè)、成都網(wǎng)站制作、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時(shí)代的定興網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!

任何開(kāi)源程序都存在系統(tǒng)漏洞和不安全的特點(diǎn),因?yàn)槭褂玫挠脩粼絹?lái)越多,加上源碼開(kāi)放等,更容易被發(fā)現(xiàn)漏洞,所有修改后臺(tái)管理目錄,就顯得更有必要了。廢話少說(shuō),下面就說(shuō)一下如何修改ECSHOP的后臺(tái)目錄。ECSHOP 如何修改后臺(tái)地址

1.修改data/config.php $admin_dir = "admin";

修改成$admin_dir = "新目錄名";

2.修改admin/index.php //貨號(hào)

require_once(ROOT_PATH . 'admin/includes/lib_goods.php'); 修改成

require_once(ROOT_PATH . $admin_dir.'/includes/lib_goods.php');

3.修改admin/database.php

require_once(ROOT_PATH . 'admin/includes/cls_sql_dump.php'); 修改成

require_once(ROOT_PATH . $admin_dir.'/includes/cls_sql_dump.php');

4.修改admin/get_password.php

$reset_email = $ecs->url() . 'admin/get_password.php?act=reset_pwd&uid='.$admin_id.'&code='.$code; 修改成

$reset_email = $ecs->url() . $admin_dir.'/get_password.php?act=reset_pwd&uid='.$admin_id.'&code='.$code;

5.修改admin/goods.php

require_once(ROOT_PATH . '/admin/includes/lib_goods.php'); 修改成

require_once(ROOT_PATH . $admin_dir.'/includes/lib_goods.php');

6.修改admin/check_file_priv.php

$dir[] = 'admin'; 修改成

$dir[] = $admin_dir;

7.修改admin/includes/init.php

if (file_exists(ROOT_PATH . 'data/config.php')) {

include(ROOT_PATH . 'data/config.php');

閱讀會(huì)員限時(shí)特惠 7大會(huì)員特權(quán)立即嘗鮮

} else {

include(ROOT_PATH . 'includes/config.php');

}

修改成下面代碼,并將代碼移至“”注釋之前。

if (file_exists('../data/config.php')) {

include('../data/config.php'); } else {

include('../includes/config.php'); }

define('ROOT_PATH', str_replace('admin/includes/init.php', '', str_replace('\\', '/', __FILE__))); 修改成

define('ROOT_PATH', str_replace($admin_dir.'/includes/init.php', '', str_replace('\\', '/', __FILE__)));


require(ROOT_PATH . 'admin/includes/lib_main.php'); 修改成

require(ROOT_PATH . $admin_dir.'/includes/lib_main.php');


require(ROOT_PATH . 'admin/includes/cls_exchange.php'); 修改成

require(ROOT_PATH . $admin_dir.'/includes/cls_exchange.php');


$smarty->template_dir = ROOT_PATH . 'admin/templates'; 修改成

$smarty->template_dir = ROOT_PATH . $admin_dir.'/templates';


$admin_path = preg_replace('/:\d+/', '', $ecs->url()) . 'admin'; 修改成

$admin_path = preg_replace('/:\d+/', '', $ecs->url()) . $admin_dir;

8.修改include/lib_main.php

include_once(ROOT_PATH . 'admin/includes/lib_template.php'); 修改成

global $admin_dir;

include_once(ROOT_PATH . $admin_dir.'/includes/lib_template.php');

9.修改include/cls_ecshop.php

$curr = strpos(PHP_SELF, 'admin/') !== false ?

preg_replace('/(.*)(admin)(\/?)(.)*/i', '\1', dirname(PHP_SELF)) : dirname(PHP_SELF); 修改成

global $admin_dir;

$curr = strpos(PHP_SELF, $admin_dir.'/') !== false ? preg_replace('/(.*)('.$admin_dir.')(\/?)(.)*/i', '\1', dirname(PHP_SELF)) : dirname(PHP_SELF);

10.修改/admin/picture_batch.php 將

include_once(ROOT_PATH . '/admin/includes/lib_goods.php'); 修改成

include_once(ROOT_PATH .$admin_dir.'/includes/lib_goods.php');

11.修改quotation.php

include_once(ROOT_PATH . 'admin/includes/lib_main.php'); 修改成

global $admin_dir;

include_once(ROOT_PATH . $admin_dir.'/includes/lib_main.php');

以上是“ECSHOP 如何修改后臺(tái)地址”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!


名稱欄目:ECSHOP&nbsp如何修改后臺(tái)地址-創(chuàng)新互聯(lián)
URL鏈接:http://weahome.cn/article/cshscg.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部