phoneapp.ctrl.php 684 B

1234567891011121314151617181920212223
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. load()->model('phoneapp');
  4. if (!empty($_W['uniacid'])) {
  5. $version_info = phoneapp_version_by_version(safe_gpc_string(trim($_GPC['v'])));
  6. if (!empty($version_info['modules'])) {
  7. foreach ($version_info['modules'] as $module) {
  8. if (!empty($module['account']) && intval($module['account']['uniacid']) > 0) {
  9. $_W['uniacid'] = $module['account']['uniacid'];
  10. }
  11. }
  12. }
  13. }
  14. $site = WeUtility::createModulePhoneapp($entry['module']);
  15. $method = 'doPage' . ucfirst($entry['do']);
  16. if(!is_error($site)) {
  17. $site->version = $version;
  18. exit($site->$method());
  19. }
  20. message('模块不存在或是 '.$method.' 方法不存在', '', 'error');