本文章分享一篇關于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>
新聞熱點
疑難解答