]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-surfbar_stats.php
Even more rewrites to make use of the EL
[mailer.git] / inc / modules / admin / what-surfbar_stats.php
index 62a5ca2c7351ab76fccdcf423746a8feaef1da99..271754365d0b49f6238e94b3eb889103e41ffa54 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
@@ -69,8 +69,6 @@ ORDER BY
                        $visits += $content['total_visits'];
 
                        // "Translate" some data
                        $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;
 
                        $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
                $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
                        $content['sw']           = $SW;
 
                        // Load row template
@@ -146,5 +140,5 @@ ORDER BY
 // Free result
 SQL_FREERESULT($result);
 
 // Free result
 SQL_FREERESULT($result);
 
-//
+// [EOF]
 ?>
 ?>