From 31564ee3ca9204f68a37cb68ae15bfd96213eda7 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Fri, 22 Feb 2013 11:51:16 +0100 Subject: [PATCH] Log plugin - minor styling and code/LAN clean-up --- e107_plugins/log/admin_config.php | 31 +++++++++---------- .../log/languages/English_admin_log.php | 2 +- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/e107_plugins/log/admin_config.php b/e107_plugins/log/admin_config.php index 2f38a89ce..e21d24593 100644 --- a/e107_plugins/log/admin_config.php +++ b/e107_plugins/log/admin_config.php @@ -246,7 +246,7 @@ $ns->tablerender($caption, $mes->render() . $text); function gen_select($prompt,$name,$value) { - $ret = "
".$prompt."  "."\n \n \n \n @@ -258,7 +258,7 @@ function gen_select($prompt,$name,$value) function data_type_select($name,$value) { global $stats_list; - $ret = "\n \n"; foreach ($stats_list as $k=>$v) { @@ -381,7 +381,7 @@ switch ($action) // Period selection type for page data $text .= "".ADSTAT_L41."\n - \n \n \n \n @@ -391,7 +391,7 @@ switch ($action) // Period selection type for non-page data $text .= " - \n \n \n "; @@ -405,7 +405,7 @@ switch ($action) // Now put the various dropdowns - their visibility is controlled by the export_type dropdown - $text .= "\n"; for ($i = 1; $i < 32; $i++) { $selected = $export_day == $i ? " selected='selected'" : ""; @@ -414,7 +414,7 @@ switch ($action) $text .= "\n   "; - $text .= "\n"; for ($i = 1; $i < 13; $i++) { $selected = $export_month == $i ? " selected='selected'" : ""; @@ -423,7 +423,7 @@ switch ($action) $text .= "\n   "; $this_year = date("Y"); - $text .= "\n"; for ($i = $this_year; $i > $this_year - 6; $i--) { $selected = $export_year == $i ? " selected='selected'" : ""; @@ -440,13 +440,13 @@ switch ($action) { // Separators, quotes $text .= "".ADSTAT_L59."\n - "; foreach ($separator_list as $k=>$v) { $selected = $export_char == $k ? " selected='selected'" : ""; $text .= "\n"; } - $text .= "\n    \n    \n"; $text .= " - ".ADSTAT_L60."
- - - ".ADSTAT_L61." - + ".ADSTAT_L60." + ".$frm->checkbox('export_stripurl', 1)."".ADSTAT_L61." "; } @@ -479,7 +476,7 @@ switch ($action) $text .= "
- ".$frm->admin_button('create_export', ($action == 'export' ? ADSTAT_L37 : ADSTAT_L66), 'update')." + ".$frm->admin_button('create_export', ($action == 'export' ? LAN_CREATE : ADSTAT_L66), 'update')."
"; @@ -531,7 +528,7 @@ switch ($action) $admin_log->log_event('STAT_04',ADSTAT_L83.$logStr,''); } $text .= "".ADSTAT_L70.""; - $text .= "\n"; $match_month = date("n"); for ($i = 1; $i < 13; $i++) { @@ -541,7 +538,7 @@ switch ($action) $text .= "\n   "; $this_year = date("Y"); - $text .= "\n"; for ($i = $this_year; $i > $this_year - 6; $i--) { $selected = ($this_year - 2) == $i ? " selected='selected'" : ""; diff --git a/e107_plugins/log/languages/English_admin_log.php b/e107_plugins/log/languages/English_admin_log.php index bf2cf356d..d3029767a 100644 --- a/e107_plugins/log/languages/English_admin_log.php +++ b/e107_plugins/log/languages/English_admin_log.php @@ -48,7 +48,7 @@ define("ADSTAT_L32", "Page Tidy"); // define("ADSTAT_L34", "Site Stats"); define ('ADSTAT_L35', 'Options'); define ('ADSTAT_L36', 'Data Export'); -define ('ADSTAT_L37', 'Create export file'); +//define ('ADSTAT_L37', 'Create export file'); define ('ADSTAT_L38', "You must set the e107_plugins/log/logs folder to be writable"); define ('ADSTAT_L39', 'Stats Logging Functions'); define ('ADSTAT_L40', 'Export log data');