discuz自定义登录入口

本文章分享一篇关于discuz登录二次开发的功能,有需要的朋友可以参考一下。

如果当这段代码不是放在论坛目录里,则需要把与程序相关的文件名(logging.php,register.php,index.php)加上论坛的路径。如 logging.php?action=login 改为 http://your.com/discuz/logging.php?action=login。

代码如下复制代码 <html><head><title>login</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><form method="post" action="logging.php?action=login" target="_blank"> <input type="hidden" name="referer" value="index.php"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>用户名</td> <td> <input type="text" name="username"> </td> </tr> <tr> <td>密码</td> <td> <input type="password" name="password"> </td> </tr> <tr> <td colspan="2"> <input type="submit" name="loginsubmit" value="登录"> <input type="reset" name="reset" value="重置"> <input type="button" value="注册" onclick="javascript: this.form.action=’register.php’;this.form.submit();"> <input type="button" value="游客" onclick="javascript: this.form.action=’index.php’;this.form.submit();"> </td> </tr> </table></form></body></html> 长江后浪催前浪,一辈新人换旧人。

discuz自定义登录入口

相关文章:

你感兴趣的文章:

标签云: