ECSHOP&nbsp如何修改后台地址-创新互联
小编给大家分享一下ECSHOP 如何修改后台地址,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
创新互联建站坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站建设、成都网站制作、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的定兴网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!1.修改data/config.php $admin_dir = "admin";
修改成
$admin_dir = "新目录名";
2.修改admin/index.php //货号
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');
阅读会员限时特惠 7大会员特权立即尝鲜
} 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 如何修改后台地址”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
当前文章:ECSHOP&nbsp如何修改后台地址-创新互联
路径分享:http://hbruida.cn/article/cshscg.html