侯体宗的博客
  • 首页
  • Hyperf版
  • beego仿版
  • 人生(杂谈)
  • 技术
  • 关于我
  • 更多分类
    • 文件下载
    • 文字修仙
    • 中国象棋ai
    • 群聊
    • 九宫格抽奖
    • 拼图
    • 消消乐
    • 相册

我的论坛源代码(三)

技术  /  管理员 发布于 7年前   442

显示主题内容页面。

<HTML>
<HEAD>
<TITLE>狐网论坛</TITLE>
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
</STYLE>
<LINK href="js/cpcw.css" rel=stylesheet /LINK>
<?php
include "linkfox.inc.php";
include "info.inc.php";
?>
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" id=all>
<?
$query="select * from foxbbs where id='".$id."'";    //这个ID是从上一页面也就是FOXBBS.PHP里传过来的。
$req=mysql_query($query);
if ($req) {
$bbsmes=mysql_fetch_array($req);
$djnum=$bbsmes["djnum"]+1;                                //点击数加一
$query="update foxbbs set djnum='$djnum' where id='".$id."'";
$req=mysql_query($query);
}

$query="select * from useinfo where usename='".$bbsmes["usename"]."'";  //从用户信息库里取出发帖用户的信息
$req=mysql_query($query);
if ($req) {
$useinfo=mysql_fetch_array($req);
switch ($useinfo[11])                               //因为我是用一位数字来表示用户身份
      {
      case ($useinfo[11]==1):
        $useinfo[11]="会员";
        break;
      case ($useinfo[11]==2):
        $useinfo[11]="版主";
        break;
      case ($useinfo[11]==3):
        $useinfo[11]="管理员";
        break;
      case ($useinfo[11]==4):
        $useinfo[11]="站长";
        break;
      default:
        $useinfo[11]="游客";
      break;
      }
}
?>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
  </tr>
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href="reguse.php?action=xy"><img src="images/top_register.gif" width="74" height="21" border="0"></a></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href="useinfo.php?action=find"><img src="images/top_members.gif" width="74" height="21" border="0"></a></div>
    </td>
    <td height="20" width="10%"><a href="useinfo.php?action=use"><img src="images/top_profile.gif" width="74" height="21" border="0"></a></td>
     <td height="20" width="75"><a href="foxbbs.php?d=q"><img src="images/top_logout.gif" width="74" height="21" border="0"></a></td>
  </tr>
  <tr>
    <td height="20">
      <div align="left">当前位置:<font color="#0000FF">狐网─>狐网论坛─>论题:</font></div>
    </td>
    <td>
      <div align="center"><a href="foxbbs.php"><img src="images/index.gif" width="70" height="20" border="0"></a></div>
    </td>
    <td>

      <div align="center"><a href="post.php"><img src="images/newthread.gif" width="70" height="20" border="0" alt="发布新帖"></a></div>
    </td>
    <td height="20" width="10%">
      <div align="center"><? echo "<a href='https:/article/repal.php?action=add&id=".$id."&zt=".$bbsmes[3]."&use=".$use."'><img src='https:/article/images/reply.gif' width='70' height='20' border='0' alt='回复此贴'></a>"; ?></div>
    </td>
    <td height="20" width="10%">
      <div align="center"><a href="reguse.php?action=dl"><img src="images/dl.gif" width="70" height="20" border="0"></a></div>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#000000">
    <td colspan="2">
      <table width="100%" border="0" cellspacing="1" cellpadding="1">
        <tr bgcolor="#009999">
          <td width="20%">
            <div align="center"><font color="#FFFFFF">原贴作者</font></div>
          </td>
          <td width="80%">
            <div align="center"><font color="#FFFFFF">原 贴 内 容</font></div>
          </td>
        </tr>
        <tr bgcolor="#eeeeee" valign="top">
          <td width="20%">
            <div align="center"> <?                   //在用户信息库里没存放表情图象的路径和扩展名
           echo $useinfo[2]."<br>";
           echo "<img src='https:/article/images/".$bbsmes[2]."'.gif><br>";
           echo $useinfo[11]."<p>";
           echo "发帖数 [".$useinfo["ftnum"]."]<br>";
          ?></div>
          </td>
          <td width="80%"><div align="left"> <?
          $ft="foxbbs/".$bbsmes[5].".fox";               //取出存放的文件名
          $message=@file($ft);          //读出文件内容
          for ($i=0;$i<count($message);$i++)
          { if (ord(substr($message[$i],0,1))==161)   //第一位是否全角空格
            echo $message[$i];
            else {
            $message[$i]="  ".trim($message[$i]);       
            echo $message[$i];           //显示主题内容
            }
          }
          ?></div></td>
        </tr>
        <tr bgcolor="#009999">
          <td width="20%">
            <div align="left"><img src="images/posticon.gif" width="14" height="11"><? echo $bbsmes[4]; ?></div>
          </td>
          <td width="80%">
            <div align="left"><?
          if ($useinfo[9]=="不告诉你")
          echo "<img src='https:/article/images/email.gif' width='43' height='17'>";
          else echo "<a href='https:/article/mailto:".$useinfo[8]."'><img src='https:/article/images/email.gif' width='43' height='17' alt='给我发邮件' border='0'></a>";
          echo "  <a href='https:/article/".$useinfo[9]."' ><img src='https:/article/images/home.gif' width='43' height='17' alt='我的主页' border='0'></a>";
          echo "  <a href='https:/article/useinfo.php?action=look'><img src='https:/article/images/profile.gif' width='43' height='16' alt='我的详细信息' border='0'></a>";
          echo "  <a href='https:/article/useinfo.php?action=edit'><img src='https:/article/images/edit.gif' width='43' height='17' alt='修改信息' border='0'></a>";
          echo "  <a href='https:/article/foxbbs.php?action=find&user=".$useinfo[0]."'><img src='https:/article/images/find.gif' width='43' height='17' alt='查找该用户的所以文章' border='0'></a>";
          echo "  <a href='https:/article/repal.php?action=add&use=".$useinfo[13]."&id=".$id."&zt=".$bbsmes[3]."&c=dd'><img src='https:/article/images/quote.gif' width='43' height='17' alt='引用该用户的文章回复' border='0'></a>";
          echo "  <a href=''><img src='https:/article/images/ip.gif' border='0' alt='".$bbsmes[11]."'></a>";
         ?> </div>
          </td>
        </tr>
              </table>
    </td>
  </tr>
   <tr>
<?
$hfft="foxbbs/".substr($bbsmes[5]).".bbs";
if (file_exists($hfft))       //是否有回复
{
   $tem=@file($hfft);
   $temp=implode("",$tem);        //先把数组转变成字符串,不用加分融符
   $tem=explode("δεζ",$temp);
   $num=count($tem)-1;
   for ($i=0;$i<$num;$i++)
   {   $x=$i+1;
       $temp=explode("ㄞㄚㄓ",$tem[$i]);         //把每条回复信息分开
       if ($temp[5]>0) $temp[5]="images/".$temp[5].".gif";      //显示回复内容
       else $temp[5]="images/a.gif";
       if (!$temp[6]) $temp[6]="不想告诉你";
          echo "<tr><td><table width='100%' border='0' cellspacing='1' cellpadding='1'>";
          echo "<tr bgcolor='#009999'><td width='20%'><div align='center'><font color='#FFFFFF'>回贴作者</font></div></td>";
          echo "<td width='80%'><div align='center'><font color='#FFFFFF'>回 复 内 容 (第<font color='00ff00'>NO.".$x."</font>号)</font></div></td></tr>";
          echo "<tr bgcolor='#eeeeee' valign='top'><td width='20%'><div align='center'>".$temp[1]."<br><img src='https:/article/".$temp[5]."'><br>OICQ:".$temp[2]."<br>来自:".$temp[6]."<font color='#FFFFFF'></font></div></td>";
          echo "<td width='80%'><div align='left'>".$temp[0]."</div></td></tr>";
          echo "<tr bgcolor='#009999'><td width='20%'><div align='left'><font color='#FFFFFF'><img src='https:/article/images/posticon.gif' width='14' height='11'>".$temp[7]."</font></div></td>";
          echo "<td width='80%'><div align='left'>";
          echo "<a href='https:/article/mailto:".$temp[4]."'><img src='https:/article/images/email.gif' width='43' height='17' alt='给我发邮件' border='0'></a>";
          echo "  <a href='https:/article/".$temp[3]."' ><img src='https:/article/images/home.gif' width='43' height='17' alt='我的主页' border='0'></a>";
          echo "  <a href=''><img src='https:/article/images/ip.gif' border='0' alt='".$temp[8]."'></a>";
          echo "</div></td></tr>";
          echo "</table></td></tr>";
   }

}
?>
</tr>

</table>
</body>
</html> 


  • 上一条:
    我的论坛源代码(二)
    下一条:
    我的论坛源代码(四)
  • 昵称:

    邮箱:

    0条评论 (评论内容有缓存机制,请悉知!)
    最新最热
    • 分类目录
    • 人生(杂谈)
    • 技术
    • linux
    • Java
    • php
    • 框架(架构)
    • 前端
    • ThinkPHP
    • 数据库
    • 微信(小程序)
    • Laravel
    • Redis
    • Docker
    • Go
    • swoole
    • Windows
    • Python
    • 苹果(mac/ios)
    • 相关文章
    • gmail发邮件报错:534 5.7.9 Application-specific password required...解决方案(0个评论)
    • 2024.07.09日OpenAI将终止对中国等国家和地区API服务(0个评论)
    • 2024/6/9最新免费公益节点SSR/V2ray/Shadowrocket/Clash节点分享|科学上网|免费梯子(0个评论)
    • 国外服务器实现api.openai.com反代nginx配置(0个评论)
    • 2024/4/28最新免费公益节点SSR/V2ray/Shadowrocket/Clash节点分享|科学上网|免费梯子(0个评论)
    • 近期文章
    • 在go语言中使用api.geonames.org接口实现根据国际邮政编码获取地址信息功能(1个评论)
    • 在go语言中使用github.com/signintech/gopdf实现生成pdf分页文件功能(0个评论)
    • gmail发邮件报错:534 5.7.9 Application-specific password required...解决方案(0个评论)
    • 欧盟关于强迫劳动的规定的官方举报渠道及官方举报网站(0个评论)
    • 在go语言中使用github.com/signintech/gopdf实现生成pdf文件功能(0个评论)
    • Laravel从Accel获得5700万美元A轮融资(0个评论)
    • 在go + gin中gorm实现指定搜索/区间搜索分页列表功能接口实例(0个评论)
    • 在go语言中实现IP/CIDR的ip和netmask互转及IP段形式互转及ip是否存在IP/CIDR(0个评论)
    • PHP 8.4 Alpha 1现已发布!(0个评论)
    • Laravel 11.15版本发布 - Eloquent Builder中添加的泛型(0个评论)
    • 近期评论
    • 122 在

      学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..
    • 123 在

      Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..
    • 原梓番博客 在

      在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..
    • 博主 在

      佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..
    • 1111 在

      佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
    • 2016-10
    • 2016-11
    • 2017-07
    • 2017-08
    • 2017-09
    • 2018-01
    • 2018-07
    • 2018-08
    • 2018-09
    • 2018-12
    • 2019-01
    • 2019-02
    • 2019-03
    • 2019-04
    • 2019-05
    • 2019-06
    • 2019-07
    • 2019-08
    • 2019-09
    • 2019-10
    • 2019-11
    • 2019-12
    • 2020-01
    • 2020-03
    • 2020-04
    • 2020-05
    • 2020-06
    • 2020-07
    • 2020-08
    • 2020-09
    • 2020-10
    • 2020-11
    • 2021-04
    • 2021-05
    • 2021-06
    • 2021-07
    • 2021-08
    • 2021-09
    • 2021-10
    • 2021-12
    • 2022-01
    • 2022-02
    • 2022-03
    • 2022-04
    • 2022-05
    • 2022-06
    • 2022-07
    • 2022-08
    • 2022-09
    • 2022-10
    • 2022-11
    • 2022-12
    • 2023-01
    • 2023-02
    • 2023-03
    • 2023-04
    • 2023-05
    • 2023-06
    • 2023-07
    • 2023-08
    • 2023-09
    • 2023-10
    • 2023-12
    • 2024-02
    • 2024-04
    • 2024-05
    • 2024-06
    • 2025-02
    Top

    Copyright·© 2019 侯体宗版权所有· 粤ICP备20027696号 PHP交流群

    侯体宗的博客