简体   繁体   English

如何使用js / html / php将默认的apache登录/密码弹出框更改为自定义?

[英]How to change default apache login/password pop-up box to custom using js/html/php?

i would like to know is it possible to change apache default login box to custom visualized/modified using javascript/html/php ? 我想知道是否可以使用javascript / html / php将apache默认登录框更改为自定义可视化/修改? Thanks! 谢谢!

You can create a custom form using mod_auth_form as long as you have access to add the modules necessary. 只要您有权添加必要的模块,就可以使用mod_auth_form创建自定义表单。 Basically you would design the form, then setup the parameters. 基本上你会设计表格,然后设置参数。

Most people will usually create a custom form handled by a language like PHP where they will check a database for a login match then pass logged-in variables to the users via sessions. 大多数人通常会创建一个由PHP类的语言处理的自定义表单,他们会检查数据库的登录匹配,然后通过会话将登录的变量传递给用户。 This method would allow more control because you can actually set access levels. 此方法可以实现更多控制,因为您实际上可以设置访问级别。 Whereas with mod_auth* you're either in or not. 而使用mod_auth*你是否在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM