revert.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月
- */
- $un = $_COOKIE["bbwps_user"];
- require_once("./config.php");
- require_once("./class/mysql_class.php");
- require_once("./class/template_class.php");
- require_once("./function/checkModuleSession.php");
- require_once("./config/module.php");
- require_once("./function/function.php");
- $db= new DB($hostname,$username,$password,$database);
- $mid = $_GET['mid'];
- $cid = $_GET['cid'];
- $sid = $_GET["sid"];
- $cont = $_POST['content'];
- $code = MD5($_POST["code"]);
- $a = getBBWPSSession("./session/");
- if($a["code"]==$code){
- $content = nl2br($cont);
- $enter="nr";
- $content = str_replace($enter,"",$content);
- $sql ="insert into ".$prefix."revert (content,date,mid,username) values ('$content','".time()."','$mid','$un')";
- $db->query($sql,1);
- Meta(0,"?f-showmessage--mid-{$mid}--sid-{$sid}--cid-{$cid}.html");
- }
- else{
- MsgError('请核对验证码!');
- }
- $db->close();
- ?>