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

📄 delreply.cgi

📁 --黑客防线-精华奉献本(攻册)
💻 CGI
字号:
#------------------------------------------------------#
#         本程序为Yuzi工作室提供        #
#        Yuzi论坛3000(BBS3000)v4.00      #
######################---------------------------------#
## 以下部分不需修改 ##
######################
if($Cookies{del} ne $deltitle || $Cookies{del} eq ""){&monitor;}
open(TITLES,"$filepath/list/$id/$no");
@hastitles=<TITLES>;
close(TITLES);
open(TITLES,">$filepath/list/$id/$no");
foreach $m (@hastitles){
chomp($m);
if($m ne ""){
($rtime,$rthistime,$rdusername)=split(/\t/,$m);
if($rthistime eq $deltitle){
$rusername=$rdusername;
}else{
print TITLES $m."\n";
}}
}
close(TITLES);
open(NUMBER,"$filepath/guest/2$rusername.cgi");
$NUMBER=<NUMBER>;
close(NUMBER);
($lys,$oldlys,$money,$charm)=split(/\t/,$NUMBER);
$money=$money-6;$charm=$charm-0.5;
open(NUMBER,">$filepath/guest/2$rusername.cgi");
print NUMBER "$lys"."\t"."$oldlys"."\t"."$money"."\t"."$charm";
close(NUMBER);

open(TITLES,"$filepath/list/$id/$rtime");
$hastitles=<TITLES>;
close(TITLES);
open(TITLES,">$filepath/list/$id/$rtime");
($rtitles,$rthistime,$rusername,$rcomment,$rfrom,$rhasreply,$remote,$rlastname,$rlasttime,$re,$djj,$jing,$lock,$voteman,$votetol)=split(/\t/,$hastitles);
$rhasreply=@hastitles-1;
if($rhasreply==0){$rlastname="--";}else{
open(REPLY,"$filepath/list/$id/$re");
@hasreply=<REPLY>;
close(REPLY);
$size=@hasreply-1;
$m=@hasreply[$size];
($lastrtime,$lastrthistime,$lastrusername)=split(/\t/,$m);
$rlastname="$lastrusername";$rlasttime="$lastrthistime";
}
print TITLES $rtitles."\t".$rthistime."\t".$rusername."\t".$rcomment."\t".$rfrom."\t".$rhasreply."\t".$remote."\t".$rlastname."\t".$rlasttime."\t".$re."\t".$djj."\t".$jing."\t".$lock."\t".$voteman."\t".$votetol;
close(TITLES);
print "Content-type: text/html\n\n";
print <<EOF;
<script>alert('已经成功删除该帖子!');history.back();</script>
EOF
exit;
######################### END OF SCRIPT #########################

⌨️ 快捷键说明

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