12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * [WeEngine System] Copyright (c) 2014 WE7.CC
- * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
- */
- defined('IN_IA') or exit('Access Denied');
-
-
- if (!($action == 'material' && $do == 'delete') && empty($_GPC['version_id'])) {
- $account_api = WeAccount::createByUniacid();
- if (is_error($account_api)) {
- itoast('', url('account/display'));
- }
- $check_manange = $account_api->checkIntoManage();
- if (is_error($check_manange)) {
- itoast('', $account_api->displayUrl);
- }
- }
-
- if ($action != 'material-post' && $_GPC['uniacid'] != FILE_NO_UNIACID) {
- define('FRAME', 'account');
- } else {
- define('FRAME', '');
- }
- if ($action == 'qr') {
- $platform_qr_permission = permission_check_account_user('platform_qr', false);
- if ($platform_qr_permission === false) {
- header("Location: ". url('platform/url2qr'));
- }
- }
-
- if ($action == 'url2qr') {
- define('ACTIVE_FRAME_URL', url('platform/qr'));
- }
|