aliapp.ctrl.php 818 B

12345678910111213141516171819202122232425262728
  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. load()->model('miniapp');
  8. if (!empty($_W['uniacid'])) {
  9. $version_info = miniapp_version_by_version(safe_gpc_string(trim($_GPC['v'])));
  10. if (!empty($version_info['modules'])) {
  11. foreach ($version_info['modules'] as $module) {
  12. if (!empty($module['account']) && intval($module['account']['uniacid']) > 0) {
  13. $_W['uniacid'] = $module['account']['uniacid'];
  14. $_W['account']['link_uniacid'] = $module['account']['uniacid'];
  15. }
  16. }
  17. }
  18. }
  19. $site = WeUtility::createModuleAliapp($entry['module']);
  20. $method = 'doPage' . ucfirst($entry['do']);
  21. if(!is_error($site)) {
  22. exit($site->$method());
  23. }
  24. exit();