Maison >Tutoriel CMS >ECShop >ECSHOP explique comment modifier l'adresse d'arrière-plan
Recommandé (gratuit) : ECShop
1. $admin_dir = "admin";
modifié en
$admin_dir = "Nouveau nom du répertoire" ; >
2. Modifier admin/index.php //numéro d'article
3. Modifier admin/database.phprequire_once ( ROOT_PATH . 'admin/includes/lib_goods.php'); modifié en
require_once(ROOT_PATH . $admin_dir.'/includes/lib_goods.php'); >
require_once(ROOT_PATH . 'admin/includes / cls_sql_dump.php'); modifié en
4. Modifiez admin/get_password.phprequire_once(ROOT_PATH . $admin_dir.'/includes/cls_sql_dump.php'
);
$reset_email = $ ecs->url() . $admin_dir.'/get_password.php?act=reset_pwd&uid='.$admin_id.'&code='.$code;
5. Modifier admin/goods.php
require_once(ROOT_PATH . '/admin/includes/lib_goods.php'); require_once(ROOT_PATH . $admin_dir.'/includes/lib_goods.php');
6 .Modifiez admin/check_file_priv.php
$dir[] = 'admin'; [] = $admin_dir;
7. Modifier admin/includes/init.php
if (file_exists(ROOT_PATH . 'data/config.php')) {
include(ROOT_PATH . 'data/config.php' ; >
include(ROOT_PATH . 'includes/config.php'); 🎜>Modifiez le code suivant et déplacez le code avant le commentaire "".
if (file_exists('../data/config.php')) {
include('../data/config.php'); autre {
include('../includes/config.php'); }
define('ROOT_PATH', str_replace('admin/includes/init.php', '', str_replace('\', '/', __DÉPOSER__))); 修改成
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 . « administrateur/modèles » ; 修改成
$smarty->template_dir = ROOT_PATH . $admin_dir.'/templates';
$admin_path = preg_replace('/:d+/', '', $ecs-> URL()) . « administrateur » ; 修改成
$admin_path = preg_replace('/:d+/', '', $ecs->url()) . $rép_admin;
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', nom de répertoire(PHP_SELF)) : nom de répertoire(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');
Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!