merchant.php這個檔案很難在網站搜尋到,找了幾個小時。以下是代碼,儲存成merchant.php,放到web目錄就好
<?php
define(\'IN_SYS\', true);
require \'../framework/bootstrap.inc.php\';
load()->web(\'common\');
load()->web(\'template\');
header(\'Content-Type: text/html; charset=UTF-8\');
$uniacid = intval($_GPC[\'i\']);
$cookie = $_GPC[\'__uniacid\'];
if (empty($uniacid) && empty($cookie)) {
exit(\'Access Denied.\');
}
session_start();
if (!empty($uniacid)) {
$_SESSION[\'__merch_uniacid\'] = $uniacid;
isetcookie(\'__uniacid\', $uniacid, 7 * 86400);
}
$site = WeUtility::createModuleSite(\'ewei_shopv2\');
if (!is_error($site)) {
$method = \'doWebWeb\';
$site->uniacid = $uniacid;
$site->inMobile = false;
if (method_exists($site, $method)) {
$site->$method();
exit();
}
}
?>