post-step.ctrl.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. $uniacid = intval($_GPC['uniacid']);
  8. $step = intval($_GPC['step']) ? intval($_GPC['step']) : 1;
  9. $user_create_account_info = permission_user_account_num();
  10. if ($step == 1) {
  11. if ($user_create_account_info['xzapp_limit'] <= 0 && !$_W['isfounder']) {
  12. $authurl = "javascript:alert('创建熊掌号已达上限');";
  13. }
  14. if (empty($authurl) && !empty($_W['setting']['platform']['authstate'])) {
  15. $authurl = "javascript:alert('暂不支持授权接入');";
  16. }
  17. }
  18. if ($step == 2) {
  19. }
  20. if ($step == 3) {
  21. }
  22. if ($step == 4) {
  23. $uniacid = intval($_GPC['uniacid']);
  24. $acid = intval($_GPC['acid']);
  25. $uni_account = pdo_get('uni_account', array('uniacid' => $uniacid));
  26. if (empty($uni_account)) {
  27. itoast('非法访问', '', '');
  28. }
  29. $owner_info = account_owner($uniacid);
  30. if (!(user_is_founder($_W['uid'], true) || $_W['uid'] == $owner_info['uid'])) {
  31. itoast('非法访问');
  32. }
  33. $account = account_fetch($uni_account['default_acid']);
  34. }
  35. template('xzapp/post-step');