discuz自定义登录入口
发布:smiling 来源: PHP粉丝网 添加日期:2015-03-24 15:51:22 浏览: 评论:0
本文章分享一篇关于discuz登录二次开发的功能,有需要的朋友可以参考一下,如果当这段代码不是放在论坛目录里,则需要把与程序相关的文件名(logging.php,register.php,index.php)加上论坛的路径,如 logging.php?action=login 改为 http://phpfensi.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> //开源软件:phpfensi.com
- </tr>
- </table>
- </form>
- </body>
- </html>
Tags: discuz登录入口 discuz登陆
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)