Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (3)
Tags (6)
master
Invite_register
role
0.7.0
0.6.0
beta2
dd
1.0beta
0.1开发版
master
Branches (3)
Tags (6)
master
Invite_register
role
0.7.0
0.6.0
beta2
dd
1.0beta
0.1开发版
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (3)
Tags (6)
master
Invite_register
role
0.7.0
0.6.0
beta2
dd
1.0beta
0.1开发版
OpenCenter
/
Application
/
Admin
/
Controller
/
UserConfigController.class.php
OpenCenter
/
Application
/
Admin
/
Controller
/
UserConfigController.class.php
UserConfigController.class.php 3.73 KB
Copy Edit Raw Blame History
郑钟良 authored 2015年03月19日 15:37 +08:00 . 【修改】默认用户组设置合并到角色中去
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace Admin\Controller;
use Admin\Builder\AdminConfigBuilder;
use Ucenter\Widget\RegStepWidget;
/**
* Class UserConfigController 后台用户配置控制器
* @package Admin\Controller
* @author:xjw129xjt(肖骏涛) xjt@ourstu.com
*/
class UserConfigController extends AdminController
{
public function index()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$mStep = A('Ucenter/RegStep', 'Widget')->mStep;
$step = array();
foreach ($mStep as $key => $v) {
$step[] = array('data-id' => $key, 'title' => $v);
}
$default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => $step), array('data-id' => 'enable', 'title' => '启用', 'items' => array()));
//$default=array('禁用'=>$step,'启用并可跳过'=>array(),'启用但不可跳过'=>array());
$data['REG_STEP'] = $admin_config->parseKanbanArray($data['REG_STEP'],$step,$default);
empty($data['LEVEL']) && $data['LEVEL'] = <<<str
0:Lv1 实习
50:Lv2 试用
100:Lv3 转正
200:Lv4 助理
400:Lv 5 经理
800:Lv6 董事
1600:Lv7 董事长
str;
empty($data['OPEN_QUICK_LOGIN']) && $data['OPEN_QUICK_LOGIN'] = 0;
$admin_config->title('用户配置')
->keyCheckBox('REG_SWITCH', '注册开关', '允许使用的注册选项,全不选即为关闭注册', array('username' => '用户名', 'email' => '邮箱', 'mobile' => '手机'))
->keyRadio('EMAIL_VERIFY_TYPE', '邮箱验证类型', '邮箱验证的类型', array(0 => '不验证', 1 => '注册后发送激活邮件', 2 => '注册前发送验证邮件'))
->keyRadio('MOBILE_VERIFY_TYPE', '手机验证类型', '手机验证的类型', array(0 => '不验证', 1 => '注册前发送验证短信'))
->keyKanban('REG_STEP', '注册步骤', '注册后需要进行的步骤')
->keyCheckBox('REG_CAN_SKIP', '注册步骤是否可跳过', '勾选为可跳过,默认不可跳过',$mStep)
->keyEditor('REG_EMAIL_VERIFY', '邮箱验证模版', '用于进行邮箱的验证','all')
->keyEditor('REG_EMAIL_ACTIVATE', '邮箱激活模版', '用于进行用户的激活')
->keyText('SMS_HTTP', '短信平台HTTP', '短信平台HTTP')
->keyText('SMS_UID', '短信平台帐号', '短信平台帐号')
->keyText('SMS_PWD', '短信平台密码', '短信平台密码')
->keyTextArea('SMS_CONTENT', '短信内容', '短信内容')
->keyTextArea('LEVEL', '等级配置', '每行一条,名称和积分之间用冒号分隔')
->keyRadio('OPEN_QUICK_LOGIN','快捷登录','默认关闭,开启后用户登录方式更换成快捷登录!', array(0 => '关闭', 1 => '开启'))
->group('注册配置', 'REG_SWITCH,EMAIL_VERIFY_TYPE,MOBILE_VERIFY_TYPE,REG_STEP,REG_CAN_SKIP')
->group('登录配置', 'OPEN_QUICK_LOGIN')
->group('邮箱验证模版', 'REG_EMAIL_VERIFY')
->group('邮箱激活模版', 'REG_EMAIL_ACTIVATE')
->group('短信配置', 'SMS_HTTP,SMS_UID,SMS_PWD,SMS_CONTENT')
->group('基础设置', 'LEVEL')
->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

基于Apache2.0 开源通用 用户及后台管理框架,提供了注册登录、头像裁剪、单点登录、权限管理、扩展资料管理、等级头衔、自定义积分管理、用户行为日志机制、模块装卸、插件机制,提供建议的安装程序。适合需要开发全新的PHP系统。有需要的朋友可以自行下载研究。目前为开发版。项目主页www.ocenter.cn 开发者讨论区 dev.ocenter.cn 项目演示站 demo.ocenter.cn 在线开发手册http://www.ocenter.cn/index.php?m=book&f=browse&nodeID=1
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/case-code/OpenCenter.git
git@gitee.com:case-code/OpenCenter.git
case-code
OpenCenter
OpenCenter
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /