Heim >CMS-Tutorial >ECShop >ECSHOP erklärt, wie man die Hintergrundadresse ändert
Empfohlen (kostenlos): ECShop
1. Ändern Sie data/config.php = "admin";
2. Ändern Sie admin/index.php //Artikelnummer$ admin_d ir = "neu Verzeichnisname";
require_once(ROOT_PATH . 'admin/includes/lib_goods.php'); Ändern Sie es in
require_on ce (ROOT_PATH . $admin_dir.'/includes/lib_goods.php'); ludes/cls_sql_dump .php '); Ändern in
$reset_email = $ecs->url() . 'admin/get_password.php?act =reset_pwd&uid='.$admin_id.'&code='.$code; geändert zu
require_once(ROOT_PATH . $admin_dir.'/includes/cls_sql_dump.php');
$reset_email = $ecs-> url() .'/get_password.php?act=reset_pwd&uid= '.$admin_id.'&code='.$code;
5. Ändern Sie admin/goods.php
require_once(ROOT_PATH . '/admin/includes/lib_goods.php'); geändert zu
$dir[] = $admin_dir;
7. admin/includes/init. php
if (file_exists(ROOT_PATH . ' Daten/Konfig .php')) {
} else {include(ROOT_PATH . 'data/config.php');
Die Lesemitgliedschaft ist zeitlich begrenzt. Probieren Sie jetzt 7 besondere Mitgliedschaftsprivilegien aus
include(ROOT_PATH . 'includes/config.php');
Ändern Sie es in den folgenden Code und verschieben Sie den Code vor den Kommentar „“.
}
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');
Das obige ist der detaillierte Inhalt vonECSHOP erklärt, wie man die Hintergrundadresse ändert. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!