__init.php 699 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. if ($action != 'entry') {
  8. $account_api = WeAccount::create();
  9. if (is_error($account_api)) {
  10. itoast('', url('account/display'));
  11. }
  12. $check_manange = $account_api->checkIntoManage();
  13. if (is_error($check_manange)) {
  14. $account_display_url = $account_api->accountDisplayUrl();
  15. itoast('', $account_display_url);
  16. }
  17. $account_type = $account_api->menuFrame;
  18. if (!($action == 'multi' && $do == 'post')) {
  19. define('FRAME', $account_type);
  20. }
  21. } else {
  22. define('FRAME', 'account');
  23. }