123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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');
- load()->func('file');
- load()->model('module');
- load()->model('user');
- load()->model('account');
- load()->classs('weixin.platform');
- $uniacid = intval($_GPC['uniacid']);
- $step = intval($_GPC['step']) ? intval($_GPC['step']) : 1;
- $user_create_account_info = permission_user_account_num();
- if($step == 1) {
- if ($user_create_account_info['account_limit'] <= 0 && !$_W['isfounder']) {
- $authurl = "javascript:alert('创建公众号已达上限!');";
- }
- if (empty($authurl) && !empty($_W['setting']['platform']['authstate'])) {
- $account_platform = new WeixinPlatform();
- $authurl = $account_platform->getAuthLoginUrl();
- }
- } elseif ($step == 2) {
- } elseif ($step == 3) {
- } elseif($step == 4) {
- $uniacid = intval($_GPC['uniacid']);
- $acid = intval($_GPC['acid']);
- $uni_account = pdo_get('uni_account', array('uniacid' => $uniacid));
- if (empty($uni_account)) {
- itoast('非法访问');
- }
- $owner_info = account_owner($uniacid);
- if (!(user_is_founder($_W['uid'], true) || $_W['uid'] == $owner_info['uid'])) {
- itoast('非法访问');
- }
- $account = account_fetch($uni_account['default_acid']);
- }
- template('account/post-step');
|