30 lines
735 B
PHP
30 lines
735 B
PHP
<?php
|
|
define('IN_SYS', true);
|
|
require '../framework/bootstrap.inc.php';
|
|
load()->web('common');
|
|
$uniacid = intval($_GPC['i']);
|
|
if (empty($uniacid)) {
|
|
exit('Access Denied.');
|
|
}
|
|
$site = WeUtility::createModuleSite('ewei_shopv2');
|
|
$_GPC['c'] = 'site';
|
|
$_GPC['a'] = 'entry';
|
|
$_GPC['m'] = 'ewei_shopv2';
|
|
$_GPC['do'] = 'mobile';
|
|
$_W['uniacid'] = (int) $_GPC['i'];
|
|
$_W['acid'] = (int) $_GPC['i'];
|
|
if (!isset($_GPC['r'])) {
|
|
$_GPC['r'] = 'app';
|
|
} else {
|
|
$_GPC['r'] = 'app.' . $_GPC['r'];
|
|
}
|
|
if (!is_error($site)) {
|
|
$method = 'doMobileMobile';
|
|
$site->uniacid = $uniacid;
|
|
$site->inMobile = true;
|
|
if (method_exists($site, $method)) {
|
|
$site->$method();
|
|
die();
|
|
}
|
|
}
|
|
?>
|