From 65fb9372b9fcdd3ece054217e0eb33e305a7ea3a Mon Sep 17 00:00:00 2001 From: e107steved Date: Wed, 26 Dec 2007 18:50:21 +0000 Subject: [PATCH] XHTML compliance, implement function not supported on Windows --- e107_plugins/log/admin_config.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/e107_plugins/log/admin_config.php b/e107_plugins/log/admin_config.php index c0a335392..2dd41a321 100644 --- a/e107_plugins/log/admin_config.php +++ b/e107_plugins/log/admin_config.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/log/admin_config.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-11-01 20:28:20 $ +| $Revision: 1.3 $ +| $Date: 2007-12-26 18:50:21 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ @@ -132,6 +132,26 @@ if (isset($_POST['create_export']) && (($action == 'export') || ($action == 'dat } +// Needed on Windoze platforms - not an ideal solution! +if (!function_exists('nl_langinfo')) +{ + define('MON_1',86400); + define('MON_2',2764800); + define('MON_3',5443200); + define('MON_4',8035200); + define('MON_5',10800000); + define('MON_6',13392000); + define('MON_7',15811200); + define('MON_8',19008000); + define('MON_9',21168000); + define('MON_10',23760000); + define('MON_11',26352000); + define('MON_12',28944000); + function nl_langinfo($mon) + { + return date('F',$mon); + } +} //--------------------------------------------- // Remove page entries @@ -373,7 +393,7 @@ switch ($action) } // Type of output data - page data, browser stats.... - $text .= "".ADSTAT_L51."\n".data_type_select('export_type',$export_type); + $text .= "".ADSTAT_L51."\n".data_type_select('export_type',$export_type).''; // Period selection type for page data $text .= "".ADSTAT_L41."\n @@ -545,6 +565,7 @@ switch ($action) + ".ADSTAT_L76." "; }