1 ###############################################################################
3 # <p>¥¢¥¯¥»¥¹¿ô¤Î¿¤¤½ç¤Ë¥Ú¡¼¥¸Ì¾¤ò°ìÍ÷ɽ¼¨¤·¤Þ¤¹¡£</p>
4 # <p>°ú¿ô¤Çɽ¼¨·ï¿ô¤ò»ØÄê¤Ç¤¤Þ¤¹¡£</p>
8 # <p>¥µ¥¤¥É¥Ð¡¼¤ËÆþ¤ì¤ë¾ì¹ç¤Ê¤É¡¢½Ä¤Ëɽ¼¨¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£</p>
13 ###############################################################################
14 package plugin::access::Access;
16 #==============================================================================
18 #==============================================================================
22 return bless $self,$class;
25 #==============================================================================
27 #==============================================================================
38 if($max eq "V" || $max eq "v"){
41 } elsif($max eq "H" || $max eq "h"){
48 open(LOG,$wiki->config('log_dir')."/".$wiki->config('access_log_file')) or return "";
49 while(my $line=<LOG>){
51 my ($page) = split(/ /,$line);
52 $page = Util::url_decode($page);
58 foreach(keys(%count)){
62 my $count1 = $count{$a};
63 my $count2 = $count{$b};
64 return $count2<=>$count1;
71 if($max ne "" && $flag==$max){
74 if($wiki->page_exists($_) && $wiki->can_show($_)){
75 if($way eq "H" || $way eq "h"){
76 if($flag!=0){ $ret = $ret." / "; }
80 $ret = $ret."[[$_]] (".$count{$_}.")";
83 if($way ne "H" && $way ne "h"){