merchant.php 732 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. define('IN_SYS', true);
  3. require '../framework/bootstrap.inc.php';
  4. load()->web('common');
  5. load()->web('template');
  6. header('Content-Type: text/html; charset=UTF-8');
  7. $uniacid = intval($_GPC['i']);
  8. $cookie = $_GPC['__uniacid'];
  9. if (empty($uniacid) && empty($cookie)) {
  10. exit('Access Denied.');
  11. }
  12. session_start();
  13. if (!empty($uniacid)) {
  14. $_SESSION['__merch_uniacid'] = $uniacid;
  15. isetcookie('__uniacid', $uniacid, 7 * 86400);
  16. }
  17. $site = WeUtility::createModuleSite('ewei_shopv2');
  18. if (!is_error($site)) {
  19. $method = 'doWebWeb';
  20. $site->uniacid = $uniacid;
  21. $site->inMobile = false;
  22. if (method_exists($site, $method)) {
  23. $site->$method();
  24. exit();
  25. }
  26. }
  27. ?>