__init.php 984 B

123456789101112131415161718192021222324252627282930
  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 (!empty($_GPC['uniacid']) && intval($_GPC['uniacid']) != $_W['uniacid']) {
  8. itoast('', url('account/display/switch', array('uniacid' => intval($_GPC['uniacid']), 'version_id' => intval($_GPC['version_id']))));
  9. }
  10. if (!in_array($action, array('display', 'manage'))) {
  11. $account_api = WeAccount::createByUniacid();
  12. if (is_error($account_api)) {
  13. message($account_api['message'], url('account/display', array('type' => PHONEAPP_TYPE_SIGN)));
  14. }
  15. $check_manange = $account_api->checkIntoManage();
  16. if (is_error($check_manange)) {
  17. itoast('', $account_api->displayUrl);
  18. }
  19. }
  20. if ($action == 'manage') {
  21. define('FRAME', '');
  22. }
  23. if (in_array($action, array('description', 'front-download'))) {
  24. $account_type = $account_api->menuFrame;
  25. define('FRAME', $account_type);
  26. }