__init.php 686 B

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