人人商城

__init.php 956B

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