www.pudn.com > bbs3000afree.zip > bbs1.cgi


#!/usr/bin/perl 
#------------------------------------------------------# 
#¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡±¾³ÌÐòΪYuzi¹¤×÷ÊÒÌṩ¡¡  ¡¡¡¡¡¡¡¡¡¡# 
#¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡YuziÂÛ̳3000(BBS3000)v4.00¡¡¡¡¡¡¡¡¡¡¡¡# 
#------------------------------------------------------# 
$cgipa=".";  # CGI³ÌÐòÎļþµÄ¾ø¶Ô·¾¶ 
###################### 
## ÒÔϲ¿·Ö²»ÐèÐÞ¸Ä ## 
###################### 
require "$cgipa/setup.cgi"; 
&GetCookies; 
$cgiurl="bbs1.cgi"; 
########## 
if ($ENV{'REQUEST_METHOD'} eq "POST") { 
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); 
} 
else { 
$buffer = $ENV{'QUERY_STRING'}; 
} 
@pairs = split(/&/, $buffer); 
foreach $pair (@pairs) { 
($name, $value) = split(/=/, $pair); 
$value=~tr/+/ /; 
$value=~s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; 
$value=~s/\t/    /g; 
$value=~s/>/>/g; 
$value=~s//g; 
$value=~s///g; 
$FORM{$name} = $value; 
} 
########## 
$id=$FORM{'id'}; 
$see=$FORM{'see'}; 
$emote=$FORM{'emote'}; 
$username=$FORM{'username'}; 
$userpsd=$FORM{'userpsd'}; 
$titles=$FORM{'titles'}; 
$comment=$FORM{'comment'}; 
$search=$FORM{'search'}; 
$no=$FORM{'no'}; 
$yjhf=$FORM{'yjhf'}; 
$menu=$FORM{'menu'}; 
$replytime=$FORM{'replytime'}; 
$retitles=$FORM{'retitles'}; 
$deltitle=$FORM{'deltitle'}; 
$rthistime=$FORM{'rthistime'}; 
$xgtz=$FORM{'xgtz'}; 
$rdcomment=$FORM{'rdcomment'}; 
$slttitle=$FORM{'slttitle'}; 
if ($username eq ""){$username=$Cookies{username}}; 
if ($userpsd eq ""){$userpsd=$Cookies{password}}; 
$no=~s/\.//g; 
$id=~s/\.\.//g; 
$xgtz=~s/\.//g; 
$slttitle=~s/\.//g; 
$username=~s/\ //g; 
$username=~s/\¡¡//g; 
if($id=~m/[\#\&\*\=\+\\\:\"\/\<\>?'`ÿ]/){&errorview("IDÖв»Äܺ¬ÓÐÌØÊâ×Ö·û!");} 
if($username=~m/[\#\&\*\=\+\\\:\"\/\<\>?'`ÿ]/){&errorview("Ãû×ÖÖв»Äܺ¬ÓÐÌØÊâ×Ö·û!");} 
if($loginok eq "1" && $Cookies{username} eq ""){ 
print "Content-type: text/html\n\n";exit; 
} 
########## 
if (-d "$filepath/list/$id"){ 
open (CHAT,"$filepath/list/$id.cgi"); 
$line=; 
close(CHAT); 
($bzmc,$secret,$bzrmail,$outurl,$bbsname,$fbzmc2,$rtime,$htmlt,$htmlw,$jj,$fbzmc)=split(/\t/,$line); 
if ($Cookies{secret} ne $secret && $secret ne ""){print "Content-type: text/html\n\n";exit;}}else{&errorview("ϵͳ²»´æÔÚ´ËIDµÄÂÛ̳! ");} 
if($username ne ""){ 
$yhzlurl ="$filepath/yhzl/$username.cgi"; 
if($regok eq "0"){unless(-f $yhzlurl){ 
open(PSD,">$yhzlurl"); 
print PSD $userpsd."\t".$username."\t\t\t".$lasttime; 
close(PSD); 
chmod(0666,$yhzlurl);}} 
open(PSD,"$yhzlurl")||&errorview("¶Ô²»Æð£¬´ËÓû§Ãû»¹Ã»ÓÐ×¢²á!"); 
$liness=; 
close(PSD); 
($rdpassword,$rdname,$rdmail,$rdhome,$rlast,$rdqm,$rdsex,$rdwork,$rdcity,$rdlove,$rfy,$rhf,$tu,$jiao,$iewin,$QQ,$photo,$savecookie)=split(/\t/,$liness); 
if($rdpassword ne $userpsd){&errorview("¶Ô²»Æð£¬ÄúµÄÃÜÂë´íÎó!");}} 
if($bbsname eq ""){$bbsname="¹«¸æÀ¸";} 
if($FORM{'page'}){$page=$FORM{'page'};}else{$page =0;} 
if($menu eq "listtitle"){&listtitle;exit;} 
if($menu eq "findtitle"){&findtitle;exit;} 
if($menu eq "reply"){do "$cgipa/sub/reply.cgi";exit;} 
if($menu eq "show"){&show;exit;} 
if($menu eq "addreply"){do "$cgipa/sub/addreply.cgi";exit;} 
if($menu eq "win"){&win;exit;} 
if($menu eq "viewreply"){&viewreply;exit;} 
if($menu eq "delreply"){do "$cgipa/sub/delreply.cgi";exit;} 
if($menu eq "deltitle"){do "$cgipa/sub/deltitle.cgi";exit;} 
if($menu eq "viewjh"){do "$cgipa/sub/viewjh.cgi";exit;} 
if($menu eq "editform"){do "$cgipa/sub/editform.cgi";exit;} 
if($menu eq "reditform"){do "$cgipa/sub/reditform.cgi";exit;} 
if($menu eq "edit"){do "$cgipa/sub/edit.cgi";exit;} 
if($menu eq "redit"){do "$cgipa/sub/redit.cgi";exit;} 
elsif($menu eq ""){ 
print "Content-type: text/html\n\n"; 
print < 
$bbsname 
 
 
 
EOF 
exit; 
} 
exit; 
########## 
sub listtitle{ 
&people; 
if ($username ne ""){ 
$counter ="$filepath/guest/2$username.cgi"; 
open(NUMBER,"$counter")||open(NUMBER,">$counter"); 
$NUMBER=; 
close(NUMBER); 
($lys,$oldlys,$money,$charm)=split(/\t/,$NUMBER); 
if ($lys>0){ 
open(NUMBER,">$counter"); 
print NUMBER "0"."\t"."$oldlys"."\t"."$money"."\t"."$charm"; 
close(NUMBER); 
}} 
open(TITLES,"$filepath/list/$id/bbs")||open(TITLES,">$filepath/list/$id/bbs"); 
@hastitles=; 
close(TITLES); 
$size=@hastitles; 
if ($size < 2){print "Content-type: text/html\n\nÕýÔÚ¸üÐÂË÷ÒýÎļþ...";exit;} 
$syy=$page-$perpage; 
&css; 
print <if(top==self)document.location='$cgiurl?id=$id'; 
$bbsname£¨ÌÖÂÛÇø·ç¸ñ£©$htmlt
ÂÛ̳Ãû³Æ£º$bbsname¡¡¡¡°æÖ÷£º$bzmc $fbzmc $fbzmc2$outurl

 ·¢±íÎÄÕ Ìí¼ÓÒéÌâ>>Ãâ·ÑÂÛ̳ÉêÇë>>°æÖ÷×ÊÁÏÐÞ¸Ä>>Óû§×ÊÁÏ×¢²á>>Óû§×ÊÁÏÐÞ¸Ä>>ÍøÂçѰºô»ú>>¾«»ªÇø
ˢе±Ç°ÂÛ̳ EOF if ($lys<1){ print "ÎÒµÄÁôÑÔ²¾"; }else{ print "ÄúÓÐ $lys ÌõÐÂÁôÑÔ"; } print <ÔÚÏßÈËÊý: $people ÂÛÌâÊý: $size ʹÓðïÖú
EOF $see8=-1; for ($i=$page; $i<$page+$perpage; $i++){ $index=@hastitles[$i]; chomp($index); open(TITLES,"$filepath/list/$id/$index"); $m=; close(TITLES); ($rtitles,$rthistime,$rusername,$nr,$rfrom,$rhasreply,$emote,$lastname,$rlasttime,$re,$rhassee)=split(/\t/,$m); if($Cookies{badname} ne $rusername){ $see8++; $see=$see8+$page; $wordnumber=length($nr); $wordnumber="($wordnumber ×Ö½Ú)"; ($oldday)=split(/\./,$rthistime); $new=""; if(($rhassee<=$people)&&($oldday eq $lasttime)){$new="";} print <
  • д°¿Ú $rtitles $wordnumber EOF if(($new ne "")){ print "$new"; } print <$rusername $rthistime µã»÷£º$rhassee)
  • EOF $replytime=$rthistime; $seachreply=$rhasreply; if($rhasreply > 0){ open(REPLY,"$filepath/list/$id/$re"); @hasreply=; close(REPLY); foreach $m (@hasreply){ chomp($m); if($m ne ""){ ($rtime,$rthistime,$rusername,$rcomment,$rfrom,$remote,$retitles,$rerhassee)=split(/\t/,$m); $wordnumber=length($rcomment); $wordnumber="($wordnumber ×Ö½Ú)"; ($oldday)=split(/\./,$rthistime); $new=""; if(($rerhassee<=10)&&($oldday eq $lasttime)){$new="";} if($rtime eq $index){ print "" }}}} print < EOF }} print <ËùÓÐʱ¼äΪ ±±¾©Ê±¼ä BBS ·ç¸ñ ÌÖÂÛÇø·ç¸ñ ÁôÑÔ²¾·ç¸ñ EOF if($syy>-1){ print ""; }else{ print ""; } if(($size>$perpage)&&($i<$size)){ print ""; }else{ print ""; } print <

    ÊäÈëÄúÒªËÑË÷µÄ×Ö·û
    ÄúµÄÐÕÃû ÄúµÄÃÜÂë

    $htmlw
    ±¾ÂÛ̳ÑÔÂÛ´¿Êô·¢±íÕ߸öÈËÒâ¼û£¬Óë $zyname Á¢³¡ÎÞ¹Ø
    Ãâ·ÑÂÛ̳·þÎñÓÉ $zyname Ìṩ ¼¼ÊõÖ§³Ö£ºYuzi¹¤×÷ÊÒ
    Yuzi Bulletin BoardTM Version $ver EOF exit; } ########## sub show{ if($slttitle eq ""){ open(TITLES2,"$filepath/list/$id/bbs"); @hastitles2=; close(TITLES2); $slttitle=@hastitles2[$see]; chomp($slttitle); } if($slttitle!~/^[0-9]+$/){&errorview("Ìû×ÓID´íÎó£¡");} open(TITLES,"$filepath/list/$id/$slttitle"); $m=; close(TITLES); ($titles,$rthistime,$rusername,$nr,$rfrom,$rhasreply,$emote,$rlastname,$rlasttime,$re,$rhassee,$jing,$lock)=split(/\t/,$m); unless($titles && $emote){print "Content-type: text/html\n\n";exit;} $titles=~s/[\"\'`]//g; if(length($titles)>40){$rtitles40=substr($titles,0,40);$rtitles40.="...";}else{$rtitles40=$titles;} if($Cookies{clicks} ne $slttitle && $ENV{'HTTP_COOKIE'}){ print "Set-Cookie:clicks=$slttitle\n"; $rhassee++; open(PSD,">$filepath/list/$id/$slttitle"); print PSD $titles."\t".$rthistime."\t".$rusername."\t".$nr."\t".$rfrom."\t".$rhasreply."\t".$emote."\t".$rlastname."\t".$rlasttime."\t".$re."\t".$rhassee."\t".$jing."\t".$lock; close(PSD); &people; } if($see==""){$see=0;} $see2=$see-1;$see1=$see+1; if($see2 < 0){$see2=0;} $replytime=$rthistime; $seachreply=$rhasreply; $thistitle=$rtitles; &css; print<$titles
      Ö÷Ì⣺$rtitles40 - BBS3000 Internet Explorer
    ¡¡µ±Ç°Î»Öà $bbsname $titles

     ¡ö »Ø¸´Êý£º$rhasreply¡¡¡ô µã»÷Êý£º$rhassee ½«´ËÒ³·¢¸øÄúµÄÅóÓÑ
    »Ø¸´ ÊÕ²Ø ´òÓ¡ ˢРƪĩ
     ÎÄÕ±êÌ⣺ $titles¡¡¡¡ EOF if (-f "$filepath/yhzl/$rusername.cgi"){ open(PSD,"$filepath/yhzl/$rusername.cgi"); $lines=; close(PSD); chomp($lines); ($rpassword,$rname,$rmail,$rhome,$rlast,$rqm,$rsex,$rwork,$rcity,$rlove,$rfy,$rhf,$tu,$jiao,$iewin,$QQ,$photo,$savecookie,$levelname,$level)=split(/\t/,$lines); } print <²é¿´$rusernameµÄÐÅÏ¢¡¡¸´ÖÆ´ËÌùÄÚÈÝ¡¡½«±¾Ìû×ÓÄÚÈÝͨ¹ýEmail´ò°üÏÂÔØ¡¡¸ø$rusernameÁôÑÔ  EOF if(($rmail ne "")){ print "¸ø$rusername·¢ÐÅ¡¡"; } print <·ÃÎÊ$rusernameµÄÖ÷Ò³¡¡"; } if ($QQ ne ""){ print "$rusernameµÄQQºÅÂ룺$QQ¡¡"; } print <±à¼­Ìû×Ó¡¡ÒýÓûظ´¡¡²é¿´$rusernameµÄIPµØÖ·¡¡É¾³ý´ËÌû×Ó

    $level
    $nr EOF if(($rqm ne "")){ print "
    ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
    $rqm"; } if($seachreply > 0){ print "

    Ïà¹ØÌû×Ó
    " } $replytime=$rthistime; if($seachreply > 0){ open(REPLY,"$filepath/list/$id/$re"); @hasreply=; close(REPLY); foreach $m (@hasreply){ chomp($m); if($m ne ""){ ($rdtime,$rdthistime,$rdusername,$rdcomment,$rdfrom,$rdemote,$rdetitles)=split(/\t/,$m); if($rdtime eq $slttitle){ print " $rdetitles (×÷Õߣº$rdusername ʱ¼ä£º$rdthistime)
    " }} }} print <¼ÓΪºÃÓÑ
    $iewin
    ×÷Õߣº EOF if($rmail ne ""){ print "$rusername¡¡"; }else{ print "$rusername¡¡"; } if(($rhome ne "")&&($rhome ne "http://")){ print "$rhome"; } if($rcity eq ""){($ip1,$ip2,$ip3,$ip4)=split(/\./,$rfrom);$rfrom="$ip1.$ip2.$ip3.*";$rcity=$rfrom;} print <
    EOF print "
    ¹ÜÀíÑ¡Ïî: "; if ($lock eq "1"){ print "¿ª·ÅÖ÷Ìâ"; }else{ print "¹Ø±ÕÖ÷Ìâ"; } print " | À­Ç°Ö÷Ìâ"; print " | ÒÆ¶¯Ö÷Ìâ"; print " | ¼ÓÈ뾫»ª"; print " | ÒÆ³ö¾«»ª"; print " | ɾ³ýÖ÷Ìâ"; print <
    $htmlw
    ±¾ÂÛ̳ÑÔÂÛ´¿Êô·¢±íÕ߸öÈËÒâ¼û£¬Óë $zyname Á¢³¡ÎÞ¹Ø
    Ãâ·ÑÂÛ̳·þÎñÓÉ $zyname Ìṩ ¼¼ÊõÖ§³Ö£ºYuzi¹¤×÷ÊÒ
    EOF exit; } ########## sub viewreply{ if($xgtz!~/^[0-9]+$/){&errorview("Ìû×ÓID´íÎó£¡");} open(REPLY,"$filepath/list/$id/$xgtz"."b"); @hasreply=; close(REPLY); $rhasreply=@hasreply; if($Cookies{clicks} ne $replytime){ print "Set-Cookie:clicks=$replytime\n"; open(REPLY,">$filepath/list/$id/$xgtz"."b"); foreach $m (@hasreply){ chomp($m); ($rtime,$rthistime,$rusername,$rcomment,$rfrom,$remote,$retitles,$rerhassee)=split(/\t/,$m); if($rthistime eq $replytime){ $rerhassee++; $rtitles=$retitles; $newtitle=$rtime."\t".$rthistime."\t".$rusername."\t".$rcomment."\t".$rfrom."\t".$remote."\t".$retitles."\t".$rerhassee; print REPLY $newtitle."\n"; }else{ print REPLY $m."\n"; }} close(REPLY); &people; } &css; foreach $m (@hasreply){ chomp($m); ($rtime,$rthistime,$rusername,$rcomment,$rfrom,$remote,$retitles,$rerhassee)=split(/\t/,$m); if($rthistime eq $replytime){ if(length($retitles)>40){$rtitles40=substr($retitles,0,40);$rtitles40.="...";}else{$rtitles40=$retitles;} print <$retitles
      Ö÷Ì⣺$rtitles40 - BBS3000 Internet Explorer
    ¡¡µ±Ç°Î»Öà $bbsname $retitles

     ¡ö »Ø¸´Êý£º$rhasreply¡¡¡ô µã»÷Êý£º$rerhassee ½«´ËÒ³·¢¸øÄúµÄÅóÓÑ
    »Ø¸´ ÊÕ²Ø ´òÓ¡ ˢРƪĩ
      $retitles¡¡ EOF if (-f "$filepath/yhzl/$rusername.cgi"){ open(PSD,"$filepath/yhzl/$rusername.cgi"); $lines=; close(PSD); chomp($lines); ($rpassword,$rname,$rmail,$rhome,$rlast,$rqm,$rsex,$rwork,$rcity,$rlove,$rfy,$rhf,$tu,$jiao,$iewin,$QQ,$photo,$savecookie,$levelname,$level)=split(/\t/,$lines); } print <²é¿´$rusernameµÄÐÅÏ¢¡¡¸´ÖÆ´ËÌùÄÚÈÝ¡¡½«±¾Ìû×ÓÄÚÈÝͨ¹ýEmail´ò°üÏÂÔØ¡¡¸ø$rusernameÁôÑÔ  EOF if(($rmail ne "")){ print "¸ø$rusername·¢ÐÅ¡¡"; } if(($rhome ne "")&&($rhome ne "http://")){ print "·ÃÎÊ$rusernameµÄÖ÷Ò³¡¡"; } if ($QQ ne ""){ print "$rusernameµÄQQºÅÂ룺$QQ¡¡"; } print "±à¼­Ìû×Ó¡¡"; $no="$xgtz"."b"; print <ÒýÓûظ´¡¡²é¿´$rusernameµÄIPµØÖ·¡¡É¾³ý´ËÌû×Ó

    $level
    $rcomment EOF if(($rqm ne "")){ print "
    ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª
    $rqm"; } print <
    Ïà¹ØÌû×Ó
    EOF open(REPLYyy,"$filepath/list/$id/$xgtz"); @hasreplyyy=; close(REPLYyy); foreach $myy (@hasreplyyy){ ($btyy,$sjyy,$zzyy,$nr,$rfrom88,$rhasreply,$remote,$rlastname,$rlasttime,$re,$rhassee,$jing,$lock)=split(/\t/,$myy); print " $btyy (×÷Õߣº$zzyy ʱ¼ä£º$sjyy)
    " } open(REPLY,"$filepath/list/$id/$xgtz"."b"); @hasreply=; close(REPLY); foreach $m (@hasreply){ chomp($m); if($m ne ""){ ($rdtime,$rdthistime,$rdusername,$rdcomment,$rdfrom,$rdemote,$rdetitles)=split(/\t/,$m); if($rdtime eq $xgtz){ print " $rdetitles (×÷Õߣº$rdusername ʱ¼ä£º$rdthistime)
    " }} } print <¼ÓΪºÃÓÑ
    $iewin
    ×÷Õߣº EOF if($rmail ne ""){ print "$rusername¡¡"; }else{ print "$rusername¡¡"; } if(($rhome ne "")&&($rhome ne "http://")){ print "$rhome"; } if($rcity eq ""){($ip1,$ip2,$ip3,$ip4)=split(/\./,$rfrom);$rfrom="$ip1.$ip2.$ip3.*";$rcity=$rfrom;} print <
    ¡¡¡¡¡¡¡¡¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡
    EOF }} if($retitles eq ""){ print ""; exit; } print "
    ¹ÜÀíÑ¡Ïî: "; if ($lock eq "1"){ print "
    ¿ª·ÅÖ÷Ìâ"; }else{ print "¹Ø±ÕÖ÷Ìâ"; } print " | À­Ç°Ö÷Ìâ"; print " | ÒÆ¶¯Ö÷Ìâ"; print " | ¼ÓÈ뾫»ª"; print " | ÒÆ³ö¾«»ª"; print " | ɾ³ýÖ÷Ìâ"; print <

    $htmlw
    ±¾ÂÛ̳ÑÔÂÛ´¿Êô·¢±íÕ߸öÈËÒâ¼û£¬Óë $zyname Á¢³¡ÎÞ¹Ø
    Ãâ·ÑÂÛ̳·þÎñÓÉ $zyname Ìṩ ¼¼ÊõÖ§³Ö£ºYuzi¹¤×÷ÊÒ
    EOF exit; } ########## sub findtitle{ if($search eq ""){&errorview("ÊäÈëÄúÒªËÑË÷µÄ×Ö·û£¡");} if($Cookies{search} eq "" || $ENV{'HTTP_COOKIE'} eq ""){print "Content-type: text/html\n\nÕýÔÚËÑË÷...";exit;} print "Set-Cookie:search=\n"; opendir (MEMBERDIR, "$filepath/list/$id"); @hastitles = readdir(MEMBERDIR); closedir (MEMBERDIR); @hastitles=reverse @hastitles; $size=0; foreach $hastitle (@hastitles){ if(length($hastitle) eq "14"){ open(TITLES,"$filepath/list/$id/$hastitle"); $a=; close(TITLES);} if ($a =~ /$search/gi){ $size++; @hastitles[$size]="$a\n"; $a=""; }} &css; print <$bbsname£¨ÌÖÂÛÇø·ç¸ñ£©$htmlt
    ÂÛ̳Ãû³Æ£º$bbsname¡¡¡¡°æÖ÷£º$bzmc $fbzmc $fbzmc2$outurl

     ·¢±íÎÄÕ Ìí¼ÓÒéÌâ>>Ãâ·ÑÂÛ̳ÉêÇë>>°æÖ÷×ÊÁÏÐÞ¸Ä>>Óû§×ÊÁÏ×¢²á>>Óû§×ÊÁÏÐÞ¸Ä>>ÍøÂçѰºô»ú>>¾«»ªÇø
    ˢе±Ç°ÂÛ̳ ÎÒµÄÁôÑÔ²¾ ËÑË÷×Ö·û: $search¡¡ÕÒµ½Ïà¹ØÌû×Ó: $size ʹÓðïÖú
    EOF for ($i=$page; $i<$page+$perpage; $i++){ $hastitle=@hastitles[$i]; chomp($hastitle); if($hastitle ne ""){ ($rtitles,$rthistime,$rusername,$nr,$rfrom,$rhasreply,$emote,$lastname,$rlasttime,$re,$rhassee)=split(/\t/,$hastitle); if($Cookies{badname} ne $rusername){ $re = substr($re,0,14); $wordnumber=length($nr); $wordnumber="($wordnumber ×Ö½Ú)"; ($oldday)=split(/\./,$rthistime); $new=""; if(($rhassee<=$people)&&($oldday eq $lasttime)){$new="new.gif";} print <
  • д°¿Ú $rtitles $wordnumber EOF if(($new ne "")){ print ""; } print <$rusername $rthistime µã»÷£º$rhassee)
  • EOF if($rhasreply > 0){ open(REPLY,"$filepath/list/$id/$re"."b"); @hasreply=; close(REPLY); foreach $m (@hasreply){ chomp($m); if($m ne ""){ ($rtime,$rthistime,$rusername,$rcomment,$rfrom,$remote,$retitles,$rerhassee)=split(/\t/,$m); $wordnumber=length($rcomment); $wordnumber="($wordnumber ×Ö½Ú)"; ($oldday)=split(/\./,$rthistime); $new=""; if(($rhassee<=$people)&&($oldday eq $lasttime)){$new="";} print "" }} } print < EOF }}} print <ËùÓÐʱ¼äΪ ±±¾©Ê±¼ä BBS ·ç¸ñ ÌÖÂÛÇø·ç¸ñ ÁôÑÔ²¾·ç¸ñ EOF if($syy>-1){ print ""; }else{ print ""; } if(($size>$perpage)&&($i<$size)){ print ""; }else{ print ""; } print <

    ÊäÈëÄúÒªËÑË÷µÄ×Ö·û
    ÄúµÄÐÕÃû ÄúµÄÃÜÂë

    $htmlw
    ±¾ÂÛ̳ÑÔÂÛ´¿Êô·¢±íÕ߸öÈËÒâ¼û£¬Óë $zyname Á¢³¡ÎÞ¹Ø
    Ãâ·ÑÂÛ̳·þÎñÓÉ $zyname Ìṩ ¼¼ÊõÖ§³Ö£ºYuzi¹¤×÷ÊÒ
    Yuzi Bulletin BoardTM Version $ver EOF exit; } sub people{ if($Cookies{estate} eq "1"){$tu=estate;} $people=1; open (FILE,"$filepath/data/people.cgi"); @LINES=; close(FILE); $SIZE=@LINES; open (FILE,">$filepath/data/people.cgi"); for ($i=0;$i<$SIZE;$i++) { $_=$LINES[$i]; ($addr,$come_hour,$come_min,$come_sec,$olduser)=split(/\t/,$_); $flag=($hour-$come_hour)*3600+($min-$come_min)*60+($sec-$come_sec); if($addr eq $from && $olduser eq $Cookies{username}){ print FILE $from."\t".$hour."\t".$min."\t".$sec."\t".$Cookies{username}."\t$tu\t$bbsname\t$rtitles40\t$cgiurl?$ENV{'QUERY_STRING'}\n"; $check=1; } elsif ($flag < $timepop && $flag > 0) { print FILE $_; $people++; }} if ($check == 0) { print FILE $from."\t".$hour."\t".$min."\t".$sec."\t".$Cookies{username}."\t$tu\t$bbsname\t$rtitles40\t$cgiurl?$ENV{'QUERY_STRING'}\n"; } close (FILE); } ######################### END OF SCRIPT #########################