cashier.php 769 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. if (empty($uniacid))
  9. {
  10. exit('Access Denied.');
  11. }
  12. $site = WeUtility::createModuleSite('ewei_shopv2');
  13. $_GPC['c'] = 'site';
  14. $_GPC['a'] = 'entry';
  15. $_GPC['m'] = 'ewei_shopv2';
  16. $_GPC['do'] = 'web';
  17. if (!(isset($_GPC['r'])))
  18. {
  19. $_GPC['r'] = 'cashier.manage.index';
  20. }
  21. else
  22. {
  23. $_GPC['r'] = 'cashier.manage.' . $_GPC['r'];
  24. }
  25. $_W['uniacid'] = (int) $_GPC['i'];
  26. $_W['acid'] = (int) $_GPC['i'];
  27. if (!(is_error($site)))
  28. {
  29. $method = 'doWebWeb';
  30. $site->uniacid = $uniacid;
  31. $site->inMobile = false;
  32. if (method_exists($site, $method))
  33. {
  34. $site->$method();
  35. exit();
  36. }
  37. }
  38. ?>