📄 revort.php
字号:
<?php
/**********************************************************************
Dream Fly GuestBook 3.2 for Text (v20050206)
程序设计:浪 者
版权所有:(C)1999-2005 酷虫工作室
演 示:http://xpower.jsphome.com
*************************************************************************/
if(!defined('INDEX_POST')) die('非法操作!<a href=../index.php>返回</a>');
require_once 'include/ubbcode.php';
if($ADMIN){
// 以下为主模块,斑竹使用
if($MID){
$DataFlie = DATA_PATH.$MID.".php";
if(file_exists($DataFlie)){
$info = explode('|',readfromfile($DataFlie));
if($submit){
if(strlen(stripslashes($content)) > $cfg[max_byte]){
ShowMsg('您的回复内容太长了。<br><br>您的设置为限制在 ' .$cfg[max_byte]. ' 字节内。' );
JumpUrl(-1);
}else{
$revort = safe_input($content);
$newdata = "<? die() ?>|$info[1]|$info[2]|$info[3]|$info[4]|$info[5]|$info[6]|$info[7]|$info[8]|$info[9]||$info[11]||$info[13]|$info[14]||".time()."|$revort";
if(writetofile($DataFlie,$newdata)){
ShowMsg('留言回复成功。您的回复内容已被储存。',MSG_SAVE);
JumpUrl('index.php');
}else{
ShowMsg('留言回复失败!您的回复内容没有被存储。',MSG_SQL);
JumpUrl(-1);
}
}
}else{
TitleBar('回复留言');
?>
<table border=0 width=730 cellspacing=0 cellpadding=0 class=TextBox_2>
<tr>
<td rowspan=5 class=Border_L></td>
<td width=720 height=1 colspan=3 class=bgLine></td>
<td rowspan=5 class=Border_R></td>
</tr>
<tr>
<td width=144 height=8></td>
<td width=1></td>
<td width=575></td>
</tr>
<tr>
<td valign=top align=center>
<div><b><?=$info[3];?></b><br><br>
<img src="images/face/<?=$info[8];?>.gif" border=0 width=100 height=100>
<br><br>我是:<?=$words["gender"]["$info[4]"] ?><br>
<br>
</div>
</td>
<td width=1 class=bgLine></td>
<td valign=top>
<img alt="<?=$info[5];?>" border=0 src=images/email.gif width=16 height=16> <a href="mailto:<?=$info[5] ?>">信箱</a>
<img alt="<?=$info[6];?>" src=images/home.gif border=0 width=16 height=16><a href="<?=$info[6] ?>" target="_blank">主页</a>
<img alt="QQ 号码:<?=$info[7];?>" src=images/oicq.gif border=0 width=16 height=16> Oicq
<img alt="IP 地址:<?=$info[13];?>" border=0 src=images/ip.gif width=16 height=15> 地址
<img alt="<? echo date($cfg[time_type],$info[1]);?>" border=0 src=images/time.gif width=16 height=16> 发表时间:<? echo date($cfg[time_type],$info[1]);?>
<img src=images/delete.gif border=0> <a href="index.php?MOD=kill&P=<?=$P ?>&MID=<?=$info[1] ?>" OnClick="JavaScript: if(confirm('确实要删除这条留言吗?')) return true; else return false;">删除</a>
<hr align=left width=70% size=1 noshade>
<table border=0 width=96% cellspacing=4 cellpadding=4>
<tr>
<td class=booktext><div class=booktext>
<? echo conver($info[11]) ?></div></td>
</tr>
</table>
</td>
</tr>
<tr><td height=8 colspan=3></td></tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width=730 class=TextBox_1>
<form name=form1 id=form1 method=POST action=index.php?MOD=revort>
<tr>
<td rowspan=4 class=Border_L></td>
<td height=1 colspan=3 class=bgLine></td>
<td rowspan=4 class=Border_R></td>
</tr>
<tr><td height=8 colspan=3></td></tr>
<tr>
<td align=center width=144>
<p>今天是:<? echo date($cfg[time_type]) ?></p>
<p><a href=index.php?MOD=help&SUB=code>UBB代码使用帮助</a></p>
<p><b>
UBB 代码: <?=$words["switch"]["{$cfg[board_ubb]}"] ;?>
<br>多媒体开关:<?=$words["switch"]["{$cfg[board_img]}"] ;?>
</b>
</td>
<td width=1 class=bgLine></td>
<td width=575>
回复留言:<img onclick="insertCode('B')" alt=粗体文字 src=images/button/bold.gif align=absBottom width=23 height=22><img onclick="insertCode('I')" alt=斜体文字 src=images/button/italicize.gif align=absBottom width=23 height=22><img onclick="insertCode('U')" alt=下划线文字 src=images/button/underline.gif align=absBottom width=23 height=22><img onclick="insertCode('URL')" alt=插入超级链接 src=images/button/url.gif align=absBottom width=23 height=22><img onclick="insertCode('EMAIL')" alt=插入邮件 src=images/button/email.gif align=absBottom width=23 height=22><img onclick="insertCode('IMG')" alt=插入图片 src=images/button/img.gif align=absBottom width=23 height=22><!--img onclick="btn_swf()" alt=插入Flash动画 src=images/button/flash.gif align=absBottom width=23 height=22--><img onclick="insertCode('CODE')" alt=插入代码 src=images/button/code.gif align=absBottom width=23 height=22><!--img onclick=btn_rp() alt=插入REAL媒体 src=images/button/rp.gif align=absBottom width=23 height=22><img onclick=btn_mp() alt=插入MS媒体 src=images/button/mp.gif align=absBottom width=23 height=22-->
<select onchange="insertCode('FONT', this.options[this.selectedIndex].value)">
<option value=false selected>字体</option>
<option value="黑体">黑体</option>
<option value="楷体_GB2312">楷体</option>
<option value="宋体">宋体</option>
<option value="仿宋_GB2312">仿宋</option>
<option value="Arial">Arial</option>
<option value="Times New Roman">Times</option>
<option value="Courier New">Courier</option>
<option value="Century Gothic">Century</option>
</select>
<select onchange="insertCode('COLOR', this.options[this.selectedIndex].value)">
<option value=false selected>颜色</option>
<option style="COLOR: #FF0000" value="#FF0000">◆红色◆</option>
<option style="COLOR: #FFFF00" value="#FFFF00">◆黄色◆</option>
<option style="COLOR: #0000FF" value="#0000FF">◆蓝色◆</option>
<option style="COLOR: #00FF00" value="#00FF00">◆绿色◆</option>
<option style="COLOR: #CC0099" value="#CC0099">◆深紫◆</option>
<option style="COLOR: #009933" value="#009933">◆深绿◆</option>
<option style="COLOR: #FF9900" value="#FF9900">◆棕色◆</option>
<option style="COLOR: #00CC99" value="#00CC99">◆叶绿◆</option>
<option style="COLOR: #FF9999" value="#FF9999">◆粉红◆</option>
<option style="COLOR: #CC0066" value="#CC0066">◆深红◆</option>
<option style="COLOR: #33CCFF" value="#33AAFF">◆天蓝◆</option>
<option style="COLOR: #330099" value="#330099">◆深蓝◆</option>
<option style="COLOR: #333333" value="#333333">◆深灰◆</option>
</select>
<select onchange="insertCode(this.options[this.selectedIndex].value)">
<option value=false selected>特效</option>
<option value="FLY">飞行文字</option>
<option value="MOVE">滚动文字</option>
<option value="GLOW">光晕文字</option>
<option value="SHADOW">阴影文字</option>
</select><br>
<textarea class=text rows=8 name=content id=content style="width: 540;height:160"><?=safe_read($info[17]);?></textarea>
<p> <input type=hidden value="<?=$MID ?>" name=MID><input type=hidden value="<?=$P ?>" name=P>
<input class=button type=submit value=" 提交回复 " name=submit>
<input class=button type=reset value=" 全部重写 "> <span style="width:170"></span>
<input class=button type=button value="不回复,直接返回" OnClick="javascript: location.href='index.php?P=<?=$P ?>';">
<br> </p>
</td>
</tr>
</form>
<tr><td height=8 colspan=3></td></tr>
</table>
<script>
if(document.all){
form1.content.focus();
form1.content.select();
}
</script>
<?
Hemline();
}// end if($submit)
}else {
ShowMsg('该条留言不存在,或已被删除!');
JumpUrl(-1);
}// end if(file_exists)
}else{
ShowMsg('您的参数设置错误,程序无法完成操作!');
JumpUrl(-1);
}// end if($MID)
// 以上为主模块,斑竹使用
}else{
ShowMsg('您不是斑竹,或者登陆超时,无法进行此项操作!',MSG_FAIL);
JumpUrl('index.php?MOD=login');
}
// + ------------
function safe_read($d){
$d = stripslashes($d);
$d = str_replace('<br>',"\n",$d);
$d = str_replace(' ',' ',$d);
return $d;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -