⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reditform.cgi

📁 --黑客防线-精华奉献本(攻册)
💻 CGI
字号:
#------------------------------------------------------#
#         本程序为Yuzi工作室提供        #
#        Yuzi论坛3000(BBS3000)v4.00      #
######################---------------------------------#
## 以下部分不需修改 ##
######################
$no=~s/\.//g;
open(TITLES,"$filepath/list/$id/$no");
@hastitles=<TITLES>;
close(TITLES);
foreach $m (@hastitles){
chomp($m);
($rtime,$rthistime,$rusername,$rcomment,$rfrom,$remote,$retitles)=split(/\t/,$m);
if($rthistime eq $deltitle){
$oldtime=$rtime;
$olduser=$rusername;
$oldemote=$remote;
$oldcomment=$rcomment;
$oldtitle=$retitles;
}
$oldcomment =~s/\r//g;
$oldcomment =~s/<br>/\n/g;
$oldcomment =~s/function(.+?)HTML代码如下://isg;
$oldcomment =~s/\[ 此消息由(.+?)编辑过 ]//isg;
$oldcomment=&unybbcode($oldcomment);
$oldcomment=~s/<([^>])*>//g;
}
if($username eq ""){&errorview("您当前的身份是访客!");}
open (FILE, "$filepath/data/rank");
@rank = <FILE>;
close(FILE);
foreach $ranks (@rank) {
chomp($ranks);
if ($ranks eq $Cookies{username}){$rankss="ok";}}
if(($rankss ne ok)&&($Cookies{username} ne $olduser)&&($Cookies{username} ne $admname)&&($Cookies{username} ne $bzmc)&&($Cookies{username} ne $fbzmc)&&($Cookies{username} ne $fbzmc2)){&errorview("您没有足够的权限编辑此帖!");}
&css;
print <<EOF;
<BODY topmargin=0>
<table width=100% border=0 cellpadding=4 cellspacing=0 bgcolor=$bgcolor0 background=$imagurl/color/$color/iebg.gif><tr><td><font color=ffffff>您当前的位置:<a onclick=off();history.go(-2); target=yuzi_frame href=$cgiurl?menu=listtitle&id=$id><font color=ffffff>$bbsname</font></a> >> 编辑回复</font></td><td align=right><a href=$outurl target=_blank><font color=ffffff>$outurl</font></a></td></tr></table> 
<center>
<FORM METHOD=POST name=form onsubmit="return ValidateForm()">
<input type=hidden name=id value=$id>
<input type=hidden name=menu value=redit>
<input type=hidden name=deltitle value=$deltitle>
<input type=hidden name=no value=$no>
<TABLE cellSpacing=1 cellPadding=5 border=0 width=630>
<TBODY><TR><TD background=$imagurl/color/$color/iebg2.gif id=titlelarge vAlign=left bgColor=$bgcolor0 colSpan=2 height=18><font color=ffffff>
编辑回复</font></TD></TR>
<TR><TD bgColor=$bgcolor2 height=25 width=129><b>回复标题</b></TD><TD bgColor=$bgcolor2 height=25 width=502><INPUT onmouseover=this.focus() maxLength=50 size=59 name=titles value="$oldtitle"></TD></TR><SCRIPT>
var MessageMax="$restrictbyte";
var Override="";
function ValidateForm() {
titlesLength=document.form.titles.value.length;
if (titlesLength <2) {alert("文章标题不能小于2个字符!");return false;}
MessageLength  = document.form.comment.value.length;
errors = "";
if (MessageLength < 2) {
errors = "文章内容不能小于2个字符!";
}
if (MessageMax !=0) {
if (MessageLength > MessageMax) {
errors = "本论坛限制文章长度不得超过 " + MessageMax + " 字节\\n目前您的文章字节: " + MessageLength;
}
}
if (errors != "" && Override == "") {
alert(errors);
return false;
} else {
document.form.submit1.disabled = true;
return true;
}
}
function emoticon(theSmilie) {
document.form.comment.value += theSmilie + ' ';
document.form.comment.focus();
}
var i=0;
function presskey(eventobject){if(event.ctrlKey && window.event.keyCode==13){i++;if (i>1) {alert('帖子正在发出,请耐心等待!');return false;}this.document.form.submit();}}
</SCRIPT><TR><TD vAlign=top bgColor=$bgcolor2 width=129>
<B>回复内容</B></TD><TD bgColor=$bgcolor2 width=502>
<TEXTAREA name=comment rows=10 cols=60 onkeydown=presskey();>$oldcomment</TEXTAREA>
</TD></TR>
<TR><TD id=titlelarge align=left bgColor=$bgcolor0
colSpan=4 height=21 background=$imagurl/color/$color/iebg2.gif><font color=ffffff>选项</font></TD></TR><TR><TD vAlign=top width=129 bgColor=$bgcolor2 height=30></TD>
<TD bgColor=$bgcolor2 height=30 colspan=3 width=502><input type=checkbox value=1 name=html> HTML代码<BR>
<input type=checkbox value=1 name=ybbcode> 禁止 <a href=# onclick=javascript:window.open('$imagurl/ybb.htm','','width=500,height=300,resizable,scrollbars')>YBB代码</a><br>
<input type=checkbox value=1 name=smilies> 禁止 <a href=# onclick=javascript:window.open('$imagurl/ybbcode.htm#smilies','','resizable,scrollbars')>表情字符</a><br>
</TD></TR><TR>
<tr><TD vAlign=top bgColor=$bgcolor2 width=631 colspan="2" align="center">
<INPUT tabIndex=4 type=submit value=" 确 定 " name=submit1>&nbsp; <INPUT type=reset value=" 重 写 "></TD></TR>
</TBODY></TABLE></FORM><a href=javascript:history.back();><IMG src=$imagurl/back.gif border=0></a>
EOF
exit;
######################### END OF SCRIPT #########################

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -