人人商城

__init.php 902B

1234567891011121314151617181920212223242526272829303132
  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. load()->model('miniapp');
  8. $version_id = intval($_GPC['version_id']);
  9. if (!empty($version_id)) {
  10. $version_info = miniapp_version($version_id);
  11. }
  12. if ($action == 'post') {
  13. define('FRAME', 'system');
  14. }
  15. if ($action == 'version' && $do == 'display') {
  16. define('FRAME', '');
  17. }
  18. if (!in_array($action, array('post', 'manage', 'auth'))) {
  19. $account_api = WeAccount::createByUniacid();
  20. if (is_error($account_api)) {
  21. itoast('', url('account/display', array('type' => WXAPP_TYPE_SIGN)));
  22. }
  23. $check_manange = $account_api->checkIntoManage();
  24. if (is_error($check_manange)) {
  25. itoast('', $account_api->displayUrl);
  26. }
  27. $account_type = $account_api->menuFrame;
  28. define('FRAME', $account_type);
  29. }