{{$data.name}}
+ ++
diff --git a/application/admin/controller/Agreement.php b/application/admin/controller/Agreement.php new file mode 100644 index 000000000..b73ae1fc1 --- /dev/null +++ b/application/admin/controller/Agreement.php @@ -0,0 +1,78 @@ +IsLogin(); + + // 权限校验 + $this->IsPower(); + } + + /** + * 配置列表 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2019-05-16 + * @desc description + */ + public function Index() + { + // 配置信息 + $this->assign('data', ConfigService::ConfigList()); + + // 编辑器文件存放地址 + $this->assign('editor_path_type', 'agreement'); + + // 导航/视图 + $nav_type = input('type', 'register'); + $this->assign('nav_type', $nav_type); + return $this->fetch($nav_type); + } + + /** + * 配置数据保存 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2019-05-16 + * @desc description + */ + public function Save() + { + return ConfigService::ConfigSave($_POST); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Site.php b/application/admin/controller/Site.php index d014f82c8..9452cccee 100755 --- a/application/admin/controller/Site.php +++ b/application/admin/controller/Site.php @@ -55,7 +55,7 @@ class Site extends Common // 站点状态 $this->assign('site_site_state_list', lang('site_site_state_list')); - // 是否开启用户注册 + // 用户注册类型列表 $this->assign('site_user_reg_state_list', lang('site_user_reg_state_list')); // 是否开启用户登录 diff --git a/application/admin/lang/zh-cn.php b/application/admin/lang/zh-cn.php index 53d22a1bd..397767d7a 100755 --- a/application/admin/lang/zh-cn.php +++ b/application/admin/lang/zh-cn.php @@ -23,12 +23,6 @@ return array( 1 => array('value' => 1, 'name' => '开启'), ), - // 是否开启用户注册 - 'site_user_reg_state_list' => array( - 0 => array('value' => 'sms', 'name' => '短信'), - 1 => array('value' => 'email', 'name' => '邮箱'), - ), - // 是否开启用户登录 'site_user_login_state_list' => array( 0 => array('value' => 0, 'name' => '关闭'), diff --git a/application/admin/view/default/agreement/nav.html b/application/admin/view/default/agreement/nav.html new file mode 100644 index 000000000..be0c2a930 --- /dev/null +++ b/application/admin/view/default/agreement/nav.html @@ -0,0 +1,5 @@ +