Tadashi Okoshi
slash****@users*****
2005年 6月 29日 (水) 22:34:10 JST
Index: affelio/lib/Affelio/App/Admin/AccessLog.pm diff -u affelio/lib/Affelio/App/Admin/AccessLog.pm:1.3 affelio/lib/Affelio/App/Admin/AccessLog.pm:1.4 --- affelio/lib/Affelio/App/Admin/AccessLog.pm:1.3 Wed Jun 29 20:06:56 2005 +++ affelio/lib/Affelio/App/Admin/AccessLog.pm Wed Jun 29 22:34:10 2005 @@ -4,7 +4,7 @@ # http://affelio.jp/ (Japan) # http://affelio.jp/ (USA and other area) # -# $Id: AccessLog.pm,v 1.3 2005/06/29 11:06:56 slash5234 Exp $ +# $Id: AccessLog.pm,v 1.4 2005/06/29 13:34:10 slash5234 Exp $ package Affelio::App::Admin::AccessLog; { @@ -60,7 +60,7 @@ ############################### #Parse result ############################### - while( my ($id, $time, $nickname, $afid, $type) = $result->fetchrow_array ){ + while( my ($id, $id2, $time, $nickname, $afid, $type) = $result->fetchrow_array ){ my $true_name; if($afid =~ /http/){ $true_name = '<A HREF="' . $afid . '" target="_blank">' . $nickname . '</A>'; @@ -68,12 +68,15 @@ $true_name = $afid; } + if($id2 ==0 ){ $id2="";} + my $true_type; if($type eq "pb") {$true_type='<AF_M text="_VISITOR_TYPE_PB">';} if($type eq "f2") {$true_type='<AF_M text="_VISITOR_TYPE_F2">';} if($type eq "f1") {$true_type='<AF_M text="_VISITOR_TYPE_F1">';} if($type eq "self") {$true_type='<AF_M text="_VISITOR_TYPE_SELF">';} push(@access_log, {id=> $id, + id2=> $id2, time=> timestamp2string($time), nickname => $true_name, type => $true_type});