?? edit.cgi
字號:
#------------------------------------------------------#
# 本程序為Yuzi工作室提供 #
# Yuzi論壇3000(BBS3000)v4.00 #
######################---------------------------------#
## 以下部分不需修改 ##
######################
if ($FORM{'smilies'} ne "1"){$comment = &smilies("$comment");}
if ($ybbcodeAllow eq "on" && $FORM{'ybbcode'} ne "1"){$comment = &ybbcode("$comment");}
foreach (@badwords) {$titles =~s/$_/****/gi;}
$titles =~s/ / /g;
if((length($titles) > 100)||(length($titles) < 2)){&errorview("文章標題不能小于2個字符!");}
if(length($comment) > $restrictbyte){&errorview("文章內(nèi)容不能大于$restrictbyte個字節(jié)!");}
open(TITLES,"$filepath/list/$id/$deltitle");
$hastitles=<TITLES>;
close(TITLES);
chomp($hastitles);
($rdtitles,$rdthistime,$rdusername,$comment1,$rdhassee,$rdhasreply,$r3,$r4,$r5,$r6,$rhassee1,$jing,$lock,$voteman,$votetol)=split(/\t/,$hastitles);
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 $rdusername)&&($Cookies{username} ne $admname)&&($Cookies{username} ne $bzmc)&&($Cookies{username} ne $fbzmc)&&($Cookies{username} ne $fbzmc2)){&errorview("您沒有足夠的權限編輯此帖!");}
open(TITLES,">$filepath/list/$id/$deltitle");
@hastitles=<TITLES>;
print TITLES $titles."\t".$rdthistime."\t".$rdusername."\t".$comment."<br><br>[ 此消息由 $username 在 $thistime 編輯過 ]"."\t".$rdhassee."\t".$rdhasreply."\t".$r3."\t".$r4."\t".$r5."\t".$r6."\t".$rhassee1."\t".$jing."\t".$lock."\t".$voteman."\t".$votetol;
close(TITLES);
print "Content-type: text/html\n\n";
print "
<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=gb2312>
<meta http-equiv=refresh content=2;url=$imagurl/loading.htm>
</head>
<table cellpadding=0 cellspacing=0 border=0 width=95% align=center height=85%>
<tr align=center valign=middle>
<td>
<table cellpadding=10 cellspacing=0 border=0 width=80% align=center>
<tr>
<td valign=middle align=center bgcolor=$bgcolor2>謝謝$username,您的信息已成功發(fā)出!<br><br>請等待系統(tǒng)將自動返回...
<br><br>
(<a href=$imagurl/loading.htm>如果您不愿意等待,請點擊這里返回</a>)
</td></tr></table></td></tr>
</table>
</html>
";
exit;
######################### END OF SCRIPT #########################
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -