123456789101112131415161718192021222324252627282930313233 |
- <?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()->model('user');
-
- $_W['page']['title'] = '添加副创始人 - 副创始人管理';
-
- if (checksubmit()) {
- $user_founder = array(
- 'username' => safe_gpc_string($_GPC['username']),
- 'password' => $_GPC['password'],
- 'repassword' => $_GPC['repassword'],
- 'remark' => safe_gpc_string($_GPC['remark']),
- 'groupid' => intval($_GPC['groupid']),
- 'starttime' => TIMESTAMP,
- 'endtime' => intval($_GPC['timelimit']),
- 'founder_groupid' => ACCOUNT_MANAGE_GROUP_VICE_FOUNDER
- );
-
- $user_add = user_info_save($user_founder, true);
- if (is_error($user_add)) {
- itoast($user_add['message'], '', '');
- }
- itoast($user_add['message'], url('founder/edit', array('uid' => $user_add['uid'])), 'success');
- }
-
- $groups = user_founder_group();
-
- template('founder/create');
|