__init.php 882 B

123456789101112131415161718192021222324
  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. if (strexists($_W['siteurl'], 'c=profile&a=module&do=setting')) {
  8. $other_params = parse_url($_W['siteurl'], PHP_URL_QUERY);
  9. $other_params = str_replace('c=profile&a=module&do=setting', '', $other_params);
  10. itoast('', url('module/manage-account/setting'). $other_params, 'info');
  11. }
  12. $account_api = WeAccount::createByUniacid();
  13. if (is_error($account_api)) {
  14. itoast('', url('account/display'));
  15. }
  16. $check_manange = $account_api->checkIntoManage();
  17. if (is_error($check_manange) || ($account_api->supportVersion && !in_array($action, array('remote')))) {
  18. itoast('', $account_api->displayUrl);
  19. }
  20. $account_type = $account_api->menuFrame;
  21. define('FRAME', $account_type);