当前位置:首页 > CMS教程 > Discuz > 列表

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,代码如下:

  1. <html> 
  2.  <head> 
  3.  <title>login</title> 
  4.  <meta http-equiv="Content-Type" content="text/html; charset=gb2312"
  5.  </head> 
  6.  
  7.  <body> 
  8.  
  9.  <form method="post" action="logging.php?action=login" target="_blank"
  10.    <input type="hidden" name="referer" value="index.php"
  11.    <table width="100%" border="0" cellspacing="0" cellpadding="0"
  12.      <tr>  
  13.        <td>用户名</td> 
  14.        <td> 
  15.          <input type="text" name="username"
  16.        </td> 
  17.      </tr> 
  18.      <tr>  
  19.        <td>密码</td> 
  20.        <td> 
  21.          <input type="password" name="password"
  22.        </td> 
  23.      </tr> 
  24.      <tr> 
  25.        <td colspan="2"
  26.          <input type="submit" name="loginsubmit" value="登录"
  27.          <input type="reset" name="reset" value="重置"
  28.          <input type="button" value="注册" onclick="javascript: this.form.action='register.php';this.form.submit();"
  29.          <input type="button" value="游客" onclick="javascript: this.form.action='index.php';this.form.submit();"
  30.        </td>  //开源软件:phpfensi.com 
  31.      </tr> 
  32.    </table> 
  33.  </form> 
  34.  
  35.  </body> 
  36.  </html>

Tags: discuz登录入口 discuz登陆

分享到: