人人商城

__init.php 767B

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::createByUniacid();
  11. if ($action != 'manage' && $do != 'switch') {
  12. if (is_error($account_api)) {
  13. message($account_api['message'], url('account/display'));
  14. }
  15. $check_manange = $account_api->checkIntoManage();
  16. if (is_error($check_manange)) {
  17. itoast('', $account_api->displayUrl);
  18. }
  19. }
  20. if ($action == 'manage' && $do == 'list') {
  21. define('FRAME', '');
  22. } else {
  23. $account_type = $account_api->menuFrame;
  24. define('FRAME', $account_type);
  25. }