大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> PHP专区 -> 基于mysql的论坛(2)

基于mysql的论坛(2)

时间: 2021-07-31 作者:daque

################################# ## apply.php #################### ################################# <html> <head> <title>备案用户</title> <meta http-equiv="content-type" content="text/html; charset=utf8"> <link rel="stylesheet" type="text/css" href="css/index.css"> </head> <body bgcolor="#ffffff" background="image/bg.gif"> <?php include "header.php";?> <br> <hr noshade width="97%" size="1"> <div align="center">备案新用户<br> </div> <table width="90%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#336699" bordercolordark="#ffffff" align="center">   <tr>       <td colspan="2">         <div align="center">           <textarea name="temp" wrap="virtual" cols="60" rows="8">备案应知:      用户惟有备案之后,本领有权发新贴子和恢复贴子。非备案用户只能查看贴子。   备案名目中,带“*”的是您必需填写的名目,其余是可选名目。然而,为了接洽简单,最佳将材料写的精细少许。   本乒坛不欢送相关政事敏锐话题,即使由此惹起纠葛,本乒坛运用处置者不负负担。   在备案之后,每发一篇贴子,减少5点积分,恢复一篇,减少3点,被简略一篇,扣除4点。积分不过为了活泼乒坛氛围,不代办网友的某上面程度。              创造:冷情疯人</textarea>         </div>       </td>     </tr>     <tr valign="top">       <td colspan="2">  </td>     </tr>     <tr>       <td colspan="2">         <form method="post" action="adduser.php">           <table width="80%" border="0" cellspacing="0" cellpadding="3" align="center">             <tr>               <td align="right">用户名</td>               <td>                 <input type="text" name="name" maxlength="16" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000">                 * </td>             </tr>             <tr>               <td align="right">暗号</td>               <td>                 <input type="password" name="pwd1" maxlength="8" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000" size="9">                 * </td>             </tr>             <tr>               <td align="right">反复暗号</td>               <td>                 <input type="password" name="pwd2" maxlength="8" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000" size="9">                 * </td>             </tr>             <tr>               <td align="right">email</td>               <td>                 <input type="text" name="email" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000">                  </td>             </tr>             <tr>               <td align="right">性别</td>               <td>                 <select name="sex">                   <option value="神秘" selected>神秘</option>                   <option value="男">男</option>                   <option value="女">女</option>                 </select>               </td>             </tr>             <tr>               <td align="right">如实性名</td>               <td>                 <input type="text" name="realname" size="17" maxlength="16" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000">               </td>             </tr>             <tr>               <td align="right">地方</td>               <td>                 <input type="text" name="address" maxlength="40" size="30" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000">               </td>             </tr>             <tr>               <td align="right">电话</td>               <td>                 <input type="text" name="phone" size="22" maxlength="20" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000">               </td>             </tr>             <tr>               <td align="right">网页</td>               <td>                 <input type="text" name="homepage" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000" size="50" value="http://">               </td>             </tr>             <tr>               <td align="right">oicq</td>               <td>                 <input type="text" name="oicq" maxlength="11" style="font-size: 9pt; background-color: #ffffff; color: #ff0000; border: 1 solid #000000" size="12">               </td>             </tr>             <tr>               <td align="right">出面</td>               <td>                 <textarea name="qm" wrap="virtual" cols="50"></textarea>               </td>             </tr>             <tr>               <td align="right">  </td>               <td align="center">                 <input type="submit" name="b1" value="备案">                 <input type="reset" name="submit2" value="废除" >               </td>             </tr>           </table>         </form>       </td>     </tr>   </table> <br>     <?php include "footer.php";?> </body> </html> ########################################## ## chklogin.php ######################### ######################################## <?php require ("func.php"); $name=trim($name); $password=trim($password); $sql="select * from user where name='$name'"; $sql_result=mysql_query($sql); $sql_row=mysql_fetch_array($sql_result); if (($password==$sql_row[password])and(!empty($sql_row[slaveboard]))){     setcookie("jl_forum[board]",$sql_row[slaveboard]);     setcookie("jl_forum[name]",$name);     setcookie("jl_forum[password]",$password);     redirect2("manage_list.php"); } else {     show_error(4); } ?> ################################### #####  config.inc.php ########## ############################# <?   $mysql_hostname = "localhost";   $mysql_username = "root";   $mysql_password = "";   $database = "forum";   $pagesize=25;   $copyright="copyright © 2000, by edincur, all rights reserved<br>";   $admin_email="your_email";   $admin_name="your_admin_name";         #乒坛处置员称呼   $admin_password="your_password";       #乒坛处置员暗号   $remove_score=4;  #被简略一篇扣除的分数   $new_topic_score=5;   #公布新中心的分数   $re_topic_score=3;   #恢复一篇的分数   mysql_connect($mysql_hostname, $mysql_username, $mysql_password);   mysql_select_db($database) or die(mysql_error()); ?> ############################### # 

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.