人人商城

__init.php 817B

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