X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-surfbar_stats.php;h=271754365d0b49f6238e94b3eb889103e41ffa54;hp=62a5ca2c7351ab76fccdcf423746a8feaef1da99;hb=222b9cab2b3fb3c8fb01ff524f5d1d7cfbcb61e7;hpb=d9c334d0126dfa49f2ff15a81612251dea862acb diff --git a/inc/modules/admin/what-surfbar_stats.php b/inc/modules/admin/what-surfbar_stats.php index 62a5ca2c73..271754365d 100644 --- a/inc/modules/admin/what-surfbar_stats.php +++ b/inc/modules/admin/what-surfbar_stats.php @@ -40,7 +40,7 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point addMenuDescription('admin', __FILE__); @@ -69,8 +69,6 @@ ORDER BY $visits += $content['total_visits']; // "Translate" some data - $content['stats_userid'] = generateUserProfileLink($content['stats_userid']); - $content['total_visits'] = translateComma($content['total_visits']); $content['last_surfed'] = generateDateTime($content['last_surfed'], 2); $content['sw'] = $SW; @@ -112,14 +110,10 @@ ORDER BY $OUT = ''; $SW = 2; $urlArray = '0'; $visits = '0'; while ($content = SQL_FETCHARRAY($result)) { // Count totals - $urlArray += $content['visited_urls']; - $visits += $content['total_visits']; + $urlArray += $content['visited_urls']; + $visits += $content['total_visits']; - // "Translate" some data - // @TODO Can't all these translation blocks moved into templates? This code looks ugly. - $content['stats_userid'] = generateUserProfileLink($content['stats_userid']); - $content['visited_urls'] = translateComma($content['visited_urls']); - $content['total_visits'] = translateComma($content['total_visits']); + // Add color switch $content['sw'] = $SW; // Load row template @@ -146,5 +140,5 @@ ORDER BY // Free result SQL_FREERESULT($result); -// +// [EOF] ?>