¤å³¹¤@Äý¡G[°Q½×]¦UÓª©±¿W¥ß³]¸m¡A¤¹³\¶i¤Jªº¦W³æ©Î¨î¤£³\¶i¤Jªº¦W³æ (·s¦^ÂЦb³Ì«e±,³Ì¦h¦C¥X 6 Ó) ¡@ [¦C¥X©Ò¦³¦^ÂÐ ]
5555
µoªí©ó¡G 2003/08/26 11:25pm
¤U±¤Þ¥Î¥ÑPOP ¦b 2003/08/26 06:39pm µoªíªº¤º®e¡G §Ú²{¦b¤~µo²{3.08©M3.01¯uªº¤£¤@¼Ë ¥ý´ú¸Õleoboard¬O§_·|³q¹L¦n¤F leoboard.cgi §ä¨ì ...
°õ¦æ¤W¡ã¨S°ÝÃD£° ¥u¬OÁÙ¬O¨S¿ìªkÁôÂà ¤£ª¾¬O¤£¬O§Ú½×¾Â·s©«ªº½Õ¥Îªk¦³Ãö?? ¥H¤U¬O§Úº¶ªº½Õ¥Îªk leoboard.cgi §ä¨ì¡G $output .= qq~<br><table cellpadding=0 cellspacing=0 width=$tablewidth bgcolor=$tablebordercolor align=center><tr><td><table cellpadding=6 cellspacing=1 width=100%>~; ¦b«á±¥[¤J¡G if ($maxpersontopic && $inmembername ne "«È¤H") { $myposts = &getmytopic("post"); $myreplys = &getmytopic("reply"); $newtopics = &getmytopic("all"); $output .= qq~<tr><td bgcolor=$titlecolor width=30%><b>-=> §Ú³Q¦^´_ªº¥DÃD¡G</b></td><td bgcolor=$titlecolor width=30%><b>-=> §Ú°Ñ»P°Q½×ªº¥DÃD¡G</b></td><td bgcolor=$titlecolor width=*><b>-=> ½×¾Â³Ì·sµoªí¥DÃD¡G</b></td></tr><tr><td bgcolor=$forumcolorone valign=top style="line-height: 130%">$myposts</td><td bgcolor=$forumcolortwo valign=top style="line-height: 130%">$myreplys</td><td bgcolor=$forumcolortwo valign=top style="line-height: 130%">$newtopics</td></tr></table></td></tr></table>~; $output .= qq~<br><table cellpadding=0 cellspacing=0 width=$tablewidth bgcolor=$tablebordercolor align=center><tr><td><table cellpadding=6 cellspacing=1 width=100%>~; } §ä¨ì¡G END { if ($cpudisp eq "1") { $TT1 = new Benchmark; $td = Benchmark::timediff($TT1, $TT0); $td = Benchmark::timestr($td); $td =~ /(\d+)\s*wallclock secs \(\s*?(\d*?\.\d*?)\s*usr\s*\+\s*(\d*?\.\d*?)\s*sys/i; print "<center><font color=$#c0c0c0>µ{¦¡¦û¥Î CPU ®É¶¡¡G$2 usr + $3 sys"; } } ¦b«e±¥[¤J¡G sub getmytopic { my $mode = shift; if ($mode eq "all") { $filetoopen = $lbdir . "data/recentpost.cgi"; } else { $filetoopen = $lbdir . "mytopic/" . $mode . "/" . $memberfilename . ".cgi"; $filetoopen = &stripMETA($filetoopen); } my @temptopics; if (-e $filetoopen) { open(FILE, $filetoopen); @temptopics = <FILE>; close(FILE); } my $mytopics = ""; if (@temptopics) { foreach (@temptopics) { chomp($_); my ($tempinforum, $tempintopic, $temptopictitle, $tempcurrenttime, $tempposticon, $tempmembername) = split(/\t/, $_); if (($tempposticon eq "") || ($tempposticon !~ /^[0-9]+\.gif$/i)) { $tempposticon = int(rand(23)); if ($tempposticon <10 ) { $tempposticon = "0$tempposticon.gif"; } else { $tempposticon = "$tempposticon.gif"; } } $temptopictitle =~ s/\&/\&/g; $temptopictitle =~ s/\"/\"/g; $temptopictitle =~ s/\</</g; $temptopictitle =~ s/\>/>/g; $temptopictitle =~ s/\ / /g; if (length($temptopictitle) > 30) { $temptopictitle = substr($temptopictitle, 0, 26); if ($temptopictitle =~ /^([\000-\177]|[\200-\377][\200-\377])*([\000-\177]|[\200-\377][\200-\377])$/) { $temptopictitle .= " ..."; } else { chop($temptopictitle); $temptopictitle .= "¡@..."; } } else { my $addspace = 30 - length($temptopictitle); for (my $i = 0; $i < $addspace; $i++) {$temptopictitle .= " ";} } $temptopictitle =~ s/\&/\&/g; $temptopictitle =~ s/\"/\"/g; $temptopictitle =~ s/</\</g; $temptopictitle =~ s/>/\>/g; $temptopictitle =~ s/ /\ /g; my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($tempcurrenttime + $timezone * 3600 + $timedifferencevalue * 3600); $year += 1900; $mon++; $mon = "0$mon" if ($mon < 10); $mday = "0$mday" if ($mday < 10); $hour = "0$hour" if ($hour < 10); $min = "0$min" if ($min < 10); $tempcurrenttime = "$year/$mon/$mday $hour:$min"; if ($mode eq "all") { $mytopics .= qq~<img src=$imagesurl/posticons/$tempposticon border=0> <a href=$boardurl/topic.cgi?forum=$tempinforum&topic=$tempintopic target=_blank title="©«¤lµoªí®É¶¡: $tempcurrenttime">$temptopictitle</a>[<a href=profile.cgi?action=show&member=$tempmembername title="ÂIÀ»¬d¬Ý$tempmembernameªº¸ê®Æ" target=_blank>$tempmembername</a>]<br>~; } elsif ($mode eq "post") { $mytopics .= qq~<img src=$imagesurl/posticons/$tempposticon border=0> <a href=$boardurl/topic.cgi?forum=$tempinforum&topic=$tempintopic target=_blank title="³Ì«á¦^´_®É¶¡: $tempcurrenttime">$temptopictitle</a><br>~; } else { $mytopics .= qq~<img src=$imagesurl/posticons/$tempposticon border=0> <a href=$boardurl/topic.cgi?forum=$tempinforum&topic=$tempintopic target=_blank title="³Ì«á°Ñ»P®É¶¡: $tempcurrenttime">$temptopictitle</a><br>~; } } } else { $mytopics = "¡@¼È®É¨S¦³°O¿ý"; } return $mytopics; }