将原来后台管理路径/admin ,修改为自定义的后台路径。
其中语言目录/languages/zh_cn/admin,编译目录/templates/complied/admin路径保持不变。
包括安装程序的后台跳转路径也将被修改。
1.修改admin目录为自定义的目录名;
2./admin/check_file_priv.php
行34
$dir[] = 'admin_newdir';
3./admin/database.php
行20
require_once(ROOT_PATH . 'admin_newdir/includes/cls_sql_dump.php');
4./admin/get_password.php
行107
$reset_email = $ecs->url() . 'admin_newdir/get_password.php?act=reset_pwd&uid='.$admin_id.'&code='.$code;
5./admin/index.php
行812
require_once(ROOT_PATH . 'admin_newdir/includes/lib_goods.php');
6./includes/init.php
行31
define('ROOT_PATH', str_replace('admin_newdir/includes/init.php', '', str_replace('\\', '/', __FILE__)));
行83,84
require(ROOT_PATH . 'admin_newdir/includes/lib_main.php');
require(ROOT_PATH . 'admin_newdir/includes/cls_exchange.php');
行196
$smarty->template_dir = ROOT_PATH . 'admin_newdir/templates';
行296
$admin_path = preg_replace('/:\d+/', '', $ecs->url()) . 'admin_newdir';
7./includes/cls_ecshop.php
行130,131
$curr = strpos(PHP_SELF, 'admin_newdir/') !== false ?
preg_replace('/(.*)(admin_newdir)(\/?)(.)*/i', '\1', dirname(PHP_SELF)) :
8./includes/lib_main.php
行1741
include_once(ROOT_PATH . 'admin_newdir/includes/lib_template.php');
9./admin/goods.php
行19
require_once(ROOT_PATH . '/admin_newdir/includes/lib_goods.php');
也就是说把admin全部改成你自己定义的名字
此文章由 http://www.ositren.com 收集整理 ,地址为:
http://www.ositren.com/htmls/1044.html