__init.php 950 B

12345678910111213141516171819202122232425262728
  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') {
  7. define('FRAME', 'account_manage');
  8. } else {
  9. if ($action == 'display') {
  10. define('FRAME', 'platform');
  11. } else {
  12. define('FRAME', '');
  13. }
  14. }
  15. if ($controller == 'account' && $action == 'manage') {
  16. if ($_GPC['account_type'] == ACCOUNT_TYPE_APP_NORMAL) {
  17. define('ACTIVE_FRAME_URL', url('account/manage/display', array('account_type' => ACCOUNT_TYPE_APP_NORMAL)));
  18. }
  19. }
  20. $account_all_type = uni_account_type();
  21. $account_all_type_sign = uni_account_type_sign();
  22. $account_param = WeAccount::create(array('type' => $_GPC['account_type']));
  23. define('ACCOUNT_TYPE', $account_param->type);
  24. define('TYPE_SIGN', $account_param->typeSign);
  25. define('ACCOUNT_TYPE_NAME', $account_param->typeName);
  26. define('ACCOUNT_TYPE_TEMPLATE', $account_param->typeTempalte);