天天看点

微擎 人人商城 merchant.php源码

  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();
        }

}


?>