From: eldy <> Date: Wed, 24 Oct 2001 20:45:48 +0000 (+0000) Subject: no message X-Git-Tag: AWSTATS_1_0~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eff267d58adca624b42a5635d950e1621cb7491;p=thirdparty%2FAWStats.git no message --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index ffa4f725..da232686 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -523,8 +523,9 @@ sub Read_Config_File { #------------------------------------------------------------------------------ # Function: Get the reference databases # Parameter: None +# Return value: None # Input: $DIR -# Output: Arrays and Hash tables are defined in memory +# Output: Arrays and Hash tables are defined #------------------------------------------------------------------------------ sub Read_Ref_Data { foreach my $file ("browsers.pl","domains.pl","operating_systems.pl","robots.pl","search_engines.pl") { @@ -545,10 +546,13 @@ sub Read_Ref_Data { &warning("Warning: Can't read file \"$file\" ($filetext detection will not work correctly).\nCheck if file is in ${DIR}db directory and is readable."); } } - # Check if OSHashID and OSArrayID are correct + # Sanity check. if (scalar keys %OSHashID != @OSArrayID) { error("Error: Not same number of records of OSHashID (".(scalar keys %OSHashID).") and/or OSArrayID (".(@OSArrayID).") in source file."); } + if (scalar keys %BrowsersHashID != @BrowsersHashIDLib) { error("Error: Not same number of records of BrowsersHashID (".(scalar keys %BrowsersHashID).") and/or BrowsersHashIDLib (".(@BrowsersHashIDLib).") in source file."); } } + + #------------------------------------------------------------------------------ # Function: Get the messages for a specified language # Parameter: Language id