本文章分享一篇关于discuz登录二次开发的功能,有需要的朋友可以参考一下,如果当这段代码不是放在论坛目录里,则需要把与程序相关的文件名(logging.php,register.php,index.php)加上论坛的路径,如 logging.php?action=login 改为 http://Vevb.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> //开源软件:Vevb.com
- </tr>
- </table>
- </form>
- </body>
- </html>
新闻热点
疑难解答