entrance-link.ctrl.php 802 B

12345678910111213141516171819202122232425
  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. $dos = array('entrance_link');
  9. $do = in_array($do, $dos) ? $do : 'entrance_link';
  10. permission_check_account_user('wxapp_entrance_link');
  11. $wxapp_info = miniapp_fetch($_W['uniacid']);
  12. if ($do == 'entrance_link') {
  13. $wxapp_modules = pdo_getcolumn('wxapp_versions', array('id' => $version_id), 'modules');
  14. $module_info = array();
  15. if (!empty($wxapp_modules)) {
  16. $module_info = iunserializer($wxapp_modules);
  17. $module_info = pdo_getall('modules_bindings', array('module' => array_keys($module_info), 'entry' => 'page'));
  18. }
  19. template('wxapp/version-entrance');
  20. }