rev_mes.php
资源名称:BBWPS.rar [点击查看]
上传用户:yttaitong
上传日期:2009-05-10
资源大小:128k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
PHP
- <?
- /*
- [BBWPS!] (C)2006-2010 小蜜蜂版权所有.
- This is NOT a freeware, use is subject to license terms
- 时间:2007年12月
- 描述:评论信息查看
- */
- error_reporting(0);
- $mid = $_GET['mid'];
- $id = $_GET['id'];
- require("../../config.php");
- require("../../class/mysql_class.php");
- require("../../class/template_class.php");
- require_once("../../function/checkModuleSession.php");
- $bbwps_admin=isLogin("../../$sessionPath/");
- $bbwps_admin=isLogin("../../$sessionPath/");
- $db= new DB($hostname,$username,$password,$database);
- $p=new template("template");
- //*******评论的详细显示***********
- $sql = "select username,content,date from ".$prefix."revert where id='$id'";
- $result = $db->query($sql,1);
- $row = $db->fetch_array($result);
- $content = str_replace("<br />","n",$row["content"]);
- $p->set_file("handle","rev_mes.html");
- if(!$row["username"]){$t="匿名";}else{$t=$row["username"];}
- $p->set_var(array("username"=> $t,"time"=> date("Y-m-j",$row["date"]),"content"=> $content));
- $p->parse("rev_mes","handle");
- $p->p("rev_mes");
- $db->close();
- ?>