westsoft

微擎 人人商城 merchant.php源码

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

 

posted on 2018-11-06 01:25  westsoft  阅读(1434)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章: