link-account.ctrl.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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('display');
  9. $do = !empty($_GPC['do']) ? $_GPC['do'] : 'display';
  10. $module_name = trim($_GPC['m']);
  11. $uniacid = intval($_GPC['uniacid']);
  12. $modulelist = uni_modules();
  13. $module = $_W['current_module'] = $modulelist[$module_name];
  14. if(empty($module)) {
  15. itoast('抱歉,你操作的模块不能被访问!');
  16. }
  17. if ($do == 'display') {
  18. $account_info = uni_fetch($uniacid);
  19. $uni_account_module = pdo_get('uni_account_modules', array('uniacid' => $uniacid, 'module' => $module_name));
  20. $settings = iunserializer($uni_account_module['settings']);
  21. $passive_link_accounts = array();
  22. if (!empty($settings) && !empty($settings['passive_link_uniacid'])) {
  23. foreach ($settings['passive_link_uniacid'] as $passive_lin_uniacid) {
  24. $passive_link_accounts[] = uni_fetch($passive_lin_uniacid);
  25. }
  26. }
  27. template('module/link-account');
  28. }