__init.php 968 B

123456789101112131415161718192021222324252627282930313233
  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::create();
  8. if (is_error($account_api)) {
  9. itoast('', url('account/display'));
  10. }
  11. if (!($action == 'material' && $do == 'delete') && empty($_GPC['version_id'])) {
  12. $check_manange = $account_api->checkIntoManage();
  13. if (is_error($check_manange)) {
  14. $account_display_url = $account_api->accountDisplayUrl();
  15. itoast('', $account_display_url);
  16. }
  17. }
  18. if ($action != 'material-post' && $_GPC['uniacid'] != FILE_NO_UNIACID) {
  19. define('FRAME', 'account');
  20. }
  21. if ($action == 'qr') {
  22. $platform_qr_permission = permission_check_account_user('platform_qr', false);
  23. if ($platform_qr_permission === false) {
  24. header("Location: ". url('platform/url2qr'));
  25. }
  26. }
  27. if ($action == 'url2qr') {
  28. define('ACTIVE_FRAME_URL', url('platform/qr'));
  29. }