人人商城

__init.php 898B

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. if (in_array($action, array('post', 'manage'))) {
  8. $account_api = WeAccount::createByUniacid(intval($_GPC['uniacid']));
  9. define('FRAME', 'system');
  10. }
  11. if (!in_array($action, array('display', 'post', 'manage', 'auth'))) {
  12. $account_api = WeAccount::createByUniacid();
  13. if (is_error($account_api)) {
  14. itoast('', url('account/display'));
  15. }
  16. $check_manange = $account_api->checkIntoManage();
  17. if (is_error($check_manange)) {
  18. itoast('', $account_api->displayUrl);
  19. }
  20. $account_type = $account_api->menuFrame;
  21. define('FRAME', $account_type);
  22. }
  23. define('ACCOUNT_TYPE', $account_api->type);
  24. define('TYPE_SIGN', $account_api->typeSign);
  25. define('ACCOUNT_TYPE_NAME', $account_api->typeName);