[vhffs-dev] [svn] commit: r133 - in /trunk: vhffs-panel/logout.pl vhffs-robots/src/parse_httplog.pl

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Author: soda
Date: Sun Jan  8 17:06:36 2006
New Revision: 133

Log:
fix intl bug
fix bug on parse_httplog


Modified:
    trunk/vhffs-panel/logout.pl
    trunk/vhffs-robots/src/parse_httplog.pl

Modified: trunk/vhffs-panel/logout.pl
==============================================================================
--- trunk/vhffs-panel/logout.pl (original)
+++ trunk/vhffs-panel/logout.pl Sun Jan  8 17:06:36 2006
@@ -13,9 +13,7 @@
 my $vhffs = init Vhffs::Main;
 my $templatedir = $vhffs->get_config->get_templatedir;
 
-setlocale(LC_ALL, CGI->cookie("language") );
-bindtextdomain("vhffs", $vhffs->get_config->get_intldir);
-textdomain("vhffs");
+Vhffs::Panel::Main::cook_lang( $vhffs );
 
 #clean session
 my $sid = CGI->cookie("session");
@@ -30,6 +28,6 @@
 
 $template->param( TITLE => gettext("VHFFS Logout") );
 $template->param( TEXT_LOGOUT => gettext("You left your VHFFS session!") );
-$template->param( TEXT_LOGIN => gettext("Login") );
+$template->param( TEXT_LOGIN => gettext("Access to panel") );
 
 display_light Vhffs::Panel::Main($template);

Modified: trunk/vhffs-robots/src/parse_httplog.pl
==============================================================================
--- trunk/vhffs-robots/src/parse_httplog.pl (original)
+++ trunk/vhffs-robots/src/parse_httplog.pl Sun Jan  8 17:06:36 2006
@@ -39,6 +39,7 @@
 {
 	if( ( $svname , $log ) = ( $line =~ /([a-zA-Z0-9\.\-]+)\s(.+)/g) )
 	{
+		$svname =~ s/^www\.//;
 		push( @{$logs{$svname}} , $log );
 	}
 }




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/