admin/guest.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<body topmargin="0" leftmargin="0" bottommargin="0"><meta http-equiv="Content-Type" content="text/html; charset=gb2312">

 <?php
require("../inc/mysql_connect.php");

if($act=="del")
{
	$sql="delete from guest where id=$id";
	mysql_query($sql);
}
if($act=="update")
{
if($replay=="" )
	{
	echo "<script>alert('留言回复不能为空');history.back();</script>";
	exit;
	}
$sql="update guest set replay='$replay',rtime=NOW() where id=$id";
$res=mysql_query($sql);
if($res)
	{
	echo "<script>alert('回复成功');location.href='?act=view&id=$id';</script>";
	exit;
	}
	else

	exit("失败了");
	}

if($act!="view")
{
	  ?>
<table width="640" class="table_southidc" border="1" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="guest_del.php">
  <tr bgcolor="#E7F3FB">
    <td height="20" colspan="2"><div align="center">用户留言管理</font></div></td>
  </tr>
  <tr>
    <td height="40" colspan="2" bgcolor="#E7F3FB"><table width="740" class="table_southidc"  border="1" align="center" cellpadding="0" cellspacing="1">
        <tr>
          <td width="184" height="20" bgcolor="#FFFFFF"><div align="center">留言主题</div></td>
          <td width="180" bgcolor="#FFFFFF"><div align="center">留言时间</div></td>
          <td width="127" bgcolor="#FFFFFF"><div align="center">留言内容</div></td>
          <td width="49" bgcolor="#FFFFFF"><div align="center">删除</div></td>		   <td width="82" bgcolor="#FFFFFF"><div align="center">查看回复</div></td>

        </tr>
		 <?php



			 $sql1=mysql_query("select * from guest order by addtime desc ");
             while($info1=mysql_fetch_array($sql1))
		     {
		  ?>
        <tr>
          <td height="20" bgcolor="#FFFFFF"><div align="left"><?php echo $info1[title];?></div></td>

          <td height="20" bgcolor="#FFFFFF"><div align="center"><?php echo $info1[addtime];?></div></td>
          <td height="20" bgcolor="#FFFFFF"><div align="center"><?php echo $info1[content];?></div></td>
          <td height="20" bgcolor="#FFFFFF"><div align="center">
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。