用户登录

忘记密码 注册帐号
{:hook('SyncLogin')}

用户注册

if (D('Admin/Module')->where('name="User"')->find() && is_dir(APP_PATH . 'User/')) { $allow_reg_type = C('user_config.allow_reg_type'); $user_type_list = D('User/Type')->where('status = 1')->select(); } else { $allow_reg_type = array('username', 'email', 'mobile'); $user_type_list = array(); }
    if(in_array('username', $allow_reg_type)):
  • if($allow_reg_type[0] === 'username') echo 'class="active"';> 用户名注册
  • endif; if(in_array('email', $allow_reg_type)):
  • if($allow_reg_type[0] === 'email') echo 'class="active"';> 邮箱注册
  • endif; if(in_array('mobile', $allow_reg_type)):
  • if($allow_reg_type[0] === 'mobile') echo 'class="active"';> 手机号注册
  • endif;
if(in_array('username', $allow_reg_type)):
">
验证码
点击下一步表示同意用户协议
endif; if(in_array('email', $allow_reg_type)):
">
点击下一步表示同意用户协议
endif; if(in_array('mobile', $allow_reg_type)):
">
点击下一步表示同意用户协议
endif;

用户协议

{:C('user_config.user_protocol')}