__init.php 817 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 ($action == 'manage' && $do == 'create_display') {
  8. define('FRAME', 'system');
  9. }
  10. $account_api = WeAccount::create();
  11. if ($action != 'manage' && $do != 'switch') {
  12. if (is_error($account_api)) {
  13. message($account_api['message'], url('webapp/manage/list'));
  14. }
  15. $check_manange = $account_api->checkIntoManage();
  16. if (is_error($check_manange)) {
  17. $account_display_url = $account_api->accountDisplayUrl();
  18. itoast('', $account_display_url);
  19. }
  20. }
  21. if ($action == 'manage' && $do == 'list') {
  22. define('FRAME', '');
  23. } else {
  24. $account_type = $account_api->menuFrame;
  25. define('FRAME', $account_type);
  26. }