bindcall.ctrl.php 763 B

1234567891011121314151617181920212223242526272829
  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('module');
  8. error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
  9. $modulename = trim($_GPC['modulename']);
  10. $callname = trim($_GPC['callname']);
  11. $uniacid = intval($_GPC['uniacid']);
  12. $_W['uniacid'] = intval($_GPC['uniacid']);
  13. $args = $_GPC['args'];
  14. $module_info = module_fetch($modulename);
  15. if (empty($module_info)) {
  16. iajax(0, array());
  17. }
  18. $site = WeUtility::createModuleSite($modulename);
  19. if (empty($site)) {
  20. iajax(0, array());
  21. }
  22. if (!method_exists($site, $callname)) {
  23. iajax(0, array());
  24. }
  25. $ret = @$site->$callname($args);
  26. iajax(0, $ret);