- 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’);
- }
- 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’);
zhanceo
诚乃立身之本、信为道德之基
常见问题
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
相关文章
猜你喜欢
- ecshop教程:安装遇到安装数据失败的解决方法 2021-09-07
- ecshop教程:显示某商品销售累计效果的实现代码 2021-09-07
- ecshop后台上传商品图片提示图片格式不正确的解决方法 2021-09-07
- 关于ECSHOP模板架设的服务器php版本过高报错的解决方法集合 2021-09-07
- ecshop退出登录会清空购物车的bug优化最佳解决方法 2021-09-07
- 强化ECSHOP搜索功能 -随机关键词+拼音搜索+分词搜索 2021-09-07
- ecshop二次开发网页模板之常用函数汇总 2021-09-07
- ecshop教程:编辑器kindeditor图片上传添加水印功能 2021-09-07
- ecshop教程:解决会员找回密码无法使用的BUG 2021-09-07
- ecshop网站模板在线QQ客服代码详细分析 2021-09-07