xzapp.ctrl.php 683 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. if (!empty($_W['uniacid'])) {
  8. $link_uniacid = table('uni_link_uniacid')->getMainUniacid($_W['uniacid'], $entry['module']);
  9. if (!empty($link_uniacid)) {
  10. $_W['uniacid'] = $link_uniacid;
  11. $_W['account']['link_uniacid'] = $link_uniacid;
  12. }
  13. }
  14. $site = WeUtility::createModuleXzapp($entry['module']);
  15. $method = 'doPage' . ucfirst($entry['do']);
  16. if(!is_error($site)) {
  17. exit($site->$method());
  18. }
  19. message('模块不存在或是 '.$method.' 方法不存在', '', 'error');