人人商城

__init.php 804B

1234567891011121314151617181920212223
  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. if ($action != 'display' && $action != 'privileges') {
  7. define('FRAME', 'system');
  8. } else {
  9. define('FRAME', '');
  10. }
  11. if ($controller == 'account' && $action == 'manage') {
  12. if ($_GPC['account_type'] == ACCOUNT_TYPE_APP_NORMAL) {
  13. define('ACTIVE_FRAME_URL', url('account/manage/display', array('account_type' => ACCOUNT_TYPE_APP_NORMAL)));
  14. }
  15. }
  16. $account_param = WeAccount::create(array('type' => $_GPC['account_type']));
  17. define('ACCOUNT_TYPE', $account_param->type);
  18. define('TYPE_SIGN', $account_param->typeSign);
  19. define('ACCOUNT_TYPE_NAME', $account_param->typeName);
  20. define('ACCOUNT_TYPE_TEMPLATE', $account_param->typeTempalte);