]> git.mxchange.org Git - mailer.git/commitdiff
Wrapper introduced, renaming to the naming convention:
authorRoland Häder <roland@mxchange.org>
Tue, 12 Jul 2011 21:55:23 +0000 (21:55 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Jul 2011 21:55:23 +0000 (21:55 +0000)
- Wrapper function getTotalUnconfirmedMails() introduced to shorten things
- But don't shortcut array elements or variables, cnt->count renamed
- TODOs.txt updated

39 files changed:
DOCS/TODOs.txt
inc/language/de.php
inc/modules/admin/what-adminedit.php
inc/modules/admin/what-guestedit.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-memedit.php
inc/modules/guest/what-stats.php
inc/modules/guest/what-top10.php
inc/modules/member/what-beg2.php
inc/modules/member/what-bonus.php
inc/modules/member/what-order.php
inc/referal-functions.php
inc/wrapper-functions.php
templates/de/html/admin/admin_delete_admin_menu.tpl
templates/de/html/admin/admin_delete_admin_menu_row.tpl
templates/de/html/admin/admin_delete_guest_menu.tpl
templates/de/html/admin/admin_delete_guest_menu_row.tpl
templates/de/html/admin/admin_delete_member_menu.tpl
templates/de/html/admin/admin_delete_member_menu_row.tpl
templates/de/html/admin/admin_edit_admin_menu_form.tpl
templates/de/html/admin/admin_edit_admin_menu_row.tpl
templates/de/html/admin/admin_edit_guest_menu_form.tpl
templates/de/html/admin/admin_edit_guest_menu_row.tpl
templates/de/html/admin/admin_edit_member_menu.tpl
templates/de/html/admin/admin_edit_member_menu_row.tpl
templates/de/html/admin/admin_guest_menu_status.tpl
templates/de/html/admin/admin_list_user_row.tpl
templates/de/html/admin/admin_member_menu_status.tpl
templates/de/html/admin/admin_menu_status_row.tpl
templates/de/html/guest/guest_stats_cats_row.tpl
templates/de/html/guest/guest_stats_member.tpl
templates/de/html/guest/guest_stats_month_row.tpl
templates/de/html/guest/guest_stats_row.tpl
templates/de/html/guest/guest_top10_row_earner.tpl
templates/de/html/guest/guest_top10_row_login.tpl
templates/de/html/guest/guest_top10_row_refs.tpl
templates/de/html/member/member_bonus_row.tpl
templates/de/html/member/member_list_beg_row.tpl
templates/de/html/member/member_receive_table.tpl

index d12268f137f2a8d97c3129bc48cef5ecbf810bb9..6a46df3961cba90cbb107c755b76eda988da583a 100644 (file)
@@ -51,7 +51,7 @@
 ./inc/functions.php:156:// @TODO Rewrite this to an extension 'smtp'
 ./inc/functions.php:1921:      // @TODO Find a way to cache this
 ./inc/functions.php:2022:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2202:      // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:2214:      // @TODO Rename column data_type to e.g. mail_status
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
 ./inc/language/de.php:1063:    // @TODO Rewrite these two constants
index 34d638cffbb442f75da757620d369d98b694d6b3..ab4fa93f0d345575d3ff750fdf58e38bec78525e 100644 (file)
@@ -183,7 +183,7 @@ addMessages(array(
        'ADMIN_MAX_VALUE' => "Maximal zu empfangene Mails",
        'ADMIN_MAX_COMMENT' => "Hinweis zum Maximal-Wert",
        'NO_MAX_VALUES' => "Derzeit klappt die Anmeldung nicht, da Sie keine maximal zu empfangenen Mails einstellen k&ouml;nnen.",
-       'MAX_PER_DAY' => "Maximale Mitgliedermails/Tag",
+       'MAX_PER_DAY' => "Maximale Anzahl an Klick-Mails pro Tag",
        'PER_DAY' => "Mails",
        'REFID_BY' => "Sie wurden geworben von",
        'TERMS_OF_USAGE' => "AGBs zustimmen und absenden",
@@ -1057,11 +1057,11 @@ addMessages(array(
 
        'MEMBER_MAIL_BONUS_CONFIRMED_ON' => "Sie haben diese Bonusmail <span class=\"data\">%s</span> best&auml;tigt.",
        'MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN' => "Es konnte nicht festgestellt werden, wann Sie die Bonus-Mail <span class=\"data\">%s</span> best&auml;tigt hatten.",
-       'MEMBER_MAIL_NORMAL_CONFIRMED_ON' => "Sie haben diese Klickmail <span class=\"data\">%s</span> best&auml;tigt.",
-       'MEMBER_MAIL_NORMAL_CONFIRMED_UNKNOWN' => "Es konnte nicht festgestellt werden, wann Sie die Klickmail <span class=\"data\">%s</span> best&auml;tigt hatten.",
+       'MEMBER_MAIL_NORMAL_CONFIRMED_ON' => "Sie haben diese Klick-Mail <span class=\"data\">%s</span> best&auml;tigt.",
+       'MEMBER_MAIL_NORMAL_CONFIRMED_UNKNOWN' => "Es konnte nicht festgestellt werden, wann Sie die Klick-Mail <span class=\"data\">%s</span> best&auml;tigt hatten.",
 
        // @TODO Rewrite these two constants
-       'MEMBER_MAIL_NORMAL_DETAILS_TITLE' => "Details zur Klickmail <span class=\"data\">%s</span>:",
+       'MEMBER_MAIL_NORMAL_DETAILS_TITLE' => "Details zur Klick-Mail <span class=\"data\">%s</span>:",
 
        // Email status
        'EMAIL_STATUS_ACTIVE' => "Wird gerade versendet",
index b1fb3347d8fc18f37a7c3077bd8566dece690311..4d9c2e34f82b91b2eb3275b4395d8f71d715f090 100644 (file)
@@ -64,28 +64,28 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $data = SQL_FETCHARRAY($result);
+                               $content = SQL_FETCHARRAY($result);
 
                                // Prepare data for the row template
-                               $data = array(
-                                       'action' => adminAddMenuSelectionBox('admin', 'action', 'sel_action[' . $sel . ']', $data['action']),
-                                       'what'   => adminAddMenuSelectionBox('admin', 'what'  , 'sel_what['   . $sel . ']', $data['what']),
+                               $content = array(
+                                       'action' => adminAddMenuSelectionBox('admin', 'action', 'sel_action[' . $sel . ']', $content['action']),
+                                       'what'   => adminAddMenuSelectionBox('admin', 'what'  , 'sel_what['   . $sel . ']', $content['what']),
                                        'sel'    => $sel,
-                                       'menu'   => $data['title'],
-                                       'descr'  => $data['descr'],
-                                       'cnt'    => $count,
+                                       'menu'   => $content['title'],
+                                       'descr'  => $content['descr'],
+                                       'count'  => $count,
                                );
 
                                // Load row template
-                               $OUT .= loadTemplate('admin_edit_admin_menu_row', true, $data);
+                               $OUT .= loadTemplate('admin_edit_admin_menu_row', true, $content);
                        } else {
                                // Entry not found?
-                               $data = array(
+                               $content = array(
                                        'sel' => $sel
                                );
 
                                // Load row template
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
 
                        // Free result and switch color
@@ -94,7 +94,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        } // END - foreach
 
        $content['rows'] = $OUT;
-       $content['cnt'] = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_edit_admin_menu_form', false, $content);
@@ -112,27 +112,27 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $data = SQL_FETCHARRAY($result);
+                               $content = SQL_FETCHARRAY($result);
 
                                // Prepare data for the row template
-                               $data = array(
-                                       'menu' => $data['title'],
-                                       'cnt'  => $count,
-                                       'sel'  => $sel,
+                               $content = array(
+                                       'menu'  => $content['title'],
+                                       'count' => $count,
+                                       'sel'   => $sel,
                                );
-                               $OUT .= loadTemplate('admin_delete_admin_menu_row', true, $data);
+                               $OUT .= loadTemplate('admin_delete_admin_menu_row', true, $content);
                        } else {
                                // Entry not found?
-                               $data = array(
+                               $content = array(
                                        'sel' => $sel
                                );
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
                        SQL_FREERESULT($result);
                } // END - if
        } // END - switch
        $content['rows'] = $OUT;
-       $content['cnt'] = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_delete_admin_menu', false, $content);
@@ -201,28 +201,28 @@ LIMIT 1",
                $count = '0';
 
                // Process all entries
-               while ($data = SQL_FETCHARRAY($result)) {
+               while ($content = SQL_FETCHARRAY($result)) {
                        // Count this entry
                        $count++;
 
                        // Init navigation variable
-                       $data['navi'] = '';
-                       if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($SUB)))) {
+                       $content['navi'] = '';
+                       if (($content['sort'] == '0') || (($content['sort'] == 1) && (!empty($SUB)))) {
                                // Is highest position
-                               $data['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
+                               $content['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']+1) . '&amp;fid=' . $content['sort'] . '%}">{--LOWER--}</a>';
                        } elseif ($count == SQL_NUMROWS($result)) {
                                // Is lowest position
-                               $data['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>';
-                       } elseif ($data['sort'] > 0) {
+                               $content['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']-1) . '&amp;fid=' . $content['sort'] . '%}">{--HIGHER--}</a>';
+                       } elseif ($content['sort'] > 0) {
                                // Anything else between highest and lowest
-                               $data['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>|<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
+                               $content['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']-1) . '&amp;fid=' . $content['sort'] . '%}">{--HIGHER--}</a>|<a href="{%url=modules.php?module=admin&amp;what=adminedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']+1) . '&amp;fid=' . $content['sort'] . '%}">{--LOWER--}</a>';
                        }
 
-                       // Add more data to $data
-                       $data['mode'] = 'admin';
+                       // Add more data to $content
+                       $content['mode'] = 'admin';
 
                        // Load row template and switch colors
-                       $OUT .= loadTemplate('admin_menu_overview_row', true, $data);
+                       $OUT .= loadTemplate('admin_menu_overview_row', true, $content);
                } // END - switch
 
                // Remember all rows
index 4587458acb697c599dcb9b80e7828d1e7c9d2f96..3e92946f101d4e26e48b6a9ac5bcf5afd24652c4 100644 (file)
@@ -65,25 +65,25 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $DATA = SQL_FETCHARRAY($result);
+                               $content = SQL_FETCHARRAY($result);
 
                                // Prepapre content
-                               $DATA = array(
-                                       'cnt'    => $count,
+                               $content = array(
+                                       'count'  => $count,
                                        'sel'    => $sel,
-                                       'action' => adminAddMenuSelectionBox('guest', 'action', 'sel_action[' . $sel . ']', $DATA['action']),
-                                       'what'   => adminAddMenuSelectionBox('guest', 'what'  , 'sel_what['   . $sel . ']', $DATA['what']),
-                                       'menu'   => $DATA['title'],
+                                       'action' => adminAddMenuSelectionBox('guest', 'action', 'sel_action[' . $sel . ']', $content['action']),
+                                       'what'   => adminAddMenuSelectionBox('guest', 'what'  , 'sel_what['   . $sel . ']', $content['what']),
+                                       'menu'   => $content['title'],
                                );
 
                                // Load row template
-                               $OUT .= loadTemplate('admin_edit_guest_menu_row', true, $DATA);
+                               $OUT .= loadTemplate('admin_edit_guest_menu_row', true, $content);
                        } else {
                                // Entry not found
-                               $DATA = array(
+                               $content = array(
                                        'sel' => $sel
                                );
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $DATA);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
 
                        // Free result and switch color
@@ -92,7 +92,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        } // END - foreach
 
        $content['rows'] = $OUT;
-       $content['cnt']  = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_edit_guest_menu_form', false, $content);
@@ -111,25 +111,25 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $DATA = SQL_FETCHARRAY($result);
-                               $DATA = array(
-                                       'cnt'  => $count,
-                                       'menu' => $DATA['title'],
-                                       'sel'  => $sel,
+                               $content = SQL_FETCHARRAY($result);
+                               $content = array(
+                                       'count' => $count,
+                                       'menu'  => $content['title'],
+                                       'sel'   => $sel,
                                );
-                               $OUT .= loadTemplate('admin_delete_guest_menu_row', true, $DATA);
+                               $OUT .= loadTemplate('admin_delete_guest_menu_row', true, $content);
                        } else {
                                // Entry not found?
-                               $DATA = array(
+                               $content = array(
                                        'sel' => $sel
                                );
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $DATA);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
                        SQL_FREERESULT($result);
                } // END - if
        } // END - foreach
        $content['rows'] = $OUT;
-       $content['cnt']  = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_delete_guest_menu', false, $content);
@@ -147,29 +147,29 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $data = SQL_FETCHARRAY($result);
-                               $data = array(
-                                       'cnt'     => $count,
-                                       'menu'    => $data['title'],
+                               $content = SQL_FETCHARRAY($result);
+                               $content = array(
+                                       'count'   => $count,
+                                       'menu'    => $content['title'],
                                        'sel'     => $sel,
-                                       'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
-                                       'locked'  => addSelectionBox('yn', $data['locked'] , 'locked' , $sel),
+                                       'visible' => addSelectionBox('yn', $content['visible'], 'visible', $sel),
+                                       'locked'  => addSelectionBox('yn', $content['locked'] , 'locked' , $sel),
                                );
 
                                // Load template
-                               $OUT .= loadTemplate('admin_menu_status_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_status_row', true, $content);
                        } else {
                                // Entry not found?
-                               $data = array(
+                               $content = array(
                                        'sel' => $sel
                                );
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
 
                        SQL_FREERESULT($result);
                } // END - if
        } // END - foreach
-       $content['cnt']  = $count;
+       $content['count'] = $count;
        $content['rows'] = $OUT;
 
        // Load template
@@ -201,31 +201,31 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                $OUT = '';
 
                // Process all menu entries
-               while ($data = SQL_FETCHARRAY($result)) {
+               while ($content = SQL_FETCHARRAY($result)) {
                        $count++;
-                       if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($subMenu)))) {
+                       if (($content['sort'] == '0') || (($content['sort'] == 1) && (!empty($subMenu)))) {
                                // Is highest position
-                               $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
+                               $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']+1) . '&amp;fid=' . $content['sort'] . '%}">{--LOWER--}</a>';
                        } elseif ($count == SQL_NUMROWS($result)) {
                                // Is lowest position
-                               $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>';
-                       } elseif ($data['sort'] > 0) {
+                               $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']-1) . '&amp;fid=' . $content['sort'] . '%}">{--HIGHER--}</a>';
+                       } elseif ($content['sort'] > 0) {
                                // Anything else between highest and lowest
-                               $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>|<a href=\"{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
+                               $NAVI = '<a href="{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']-1) . '&amp;fid=' . $content['sort'] . '%}">{--HIGHER--}</a>|<a href=\"{%url=modules.php?module=admin&amp;what=guestedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']+1) . '&amp;fid=' . $content['sort'] . '%}">{--LOWER--}</a>';
                        }
 
                        // Prepapre content
-                       $row = array(
-                               'id'     => $data['id'],
-                               'action' => $data['action'],
-                               'what'   => $data['what'],
-                               'title'  => $data['title'],
+                       $content = array(
+                               'id'     => $content['id'],
+                               'action' => $content['action'],
+                               'what'   => $content['what'],
+                               'title'  => $content['title'],
                                'navi'   => $NAVI,
                                'mode'   => 'guest'
                        );
 
                        // Load row template
-                       $OUT .= loadTemplate('admin_menu_overview_row', true, $row);
+                       $OUT .= loadTemplate('admin_menu_overview_row', true, $content);
                } // END - while
 
                // Add rows
index 4295891afb21f3dfefd8a48a6f3eb24dc2909d97..b330b66c255b051c5881718de49e317a8360d418 100644 (file)
@@ -50,16 +50,16 @@ $colspan = 4;
 // Add lock reason?
 if (isExtensionInstalledAndNewer('user', '0.3.5')) {
        // Add them...
-       $MORE .= ", UNIX_TIMESTAMP(`lock_timestamp`) AS `lock_timestamp`";
+       $MORE .= ', UNIX_TIMESTAMP(`lock_timestamp`) AS `lock_timestamp`';
 } // END - if
 
 // Is the extension 'country' installed?
 if (isExtensionActive('country')) {
        // Add country code
-       $MORE .= ", `country_code`";
+       $MORE .= ', `country_code`';
 } else {
        // Add direct value
-       $MORE .= ", `country`";
+       $MORE .= ', `country`';
 }
 
 // Init unset data
@@ -90,9 +90,9 @@ LIMIT 1",
                $content  = SQL_FETCHARRAY($result_user);
 
                // Get count/sum of refs, selected categories, unconfirmed mails
-               $content['refs']  = countSumTotalData($userid, 'refsystem' , 'counter');
-               $content['cats']  = countSumTotalData($userid, 'user_cats' , 'id', 'userid', true);
-               $content['links'] = countSumTotalData($userid, 'user_links', 'id', 'userid', true);
+               $content['refs']  = countSumTotalData($userid, 'refsystem', 'counter');
+               $content['cats']  = countSumTotalData($userid, 'user_cats', 'id', 'userid', true);
+               $content['links'] = getTotalUnconfirmedMails($userid);
 
                // Add links to the numbers
                if ($content['links'] > 0) $content['links'] = $base . '&amp;what=list_links&amp;userid=' . $userid . '%}">' . $content['links'] . '</a>]';
@@ -105,18 +105,18 @@ LIMIT 1",
                // Is this above zero?
                if ($stamp > 0) {
                        // Then use it
-                       $content['birthday'] = generateDateTime($stamp, 3);
+                       $content['birthday'] = generateDateTime($stamp, '3');
                } else {
                        // Zero or below so set zero!
-                       $content['birthday'] = generateDateTime(0, 3);
+                       $content['birthday'] = generateDateTime(0, '3');
                }
 
                // Prepare data for template
                $content['email_link']        = generateEmailLink($content['email'], 'user_data');
-               $content['last_online']       = generateDateTime($content['last_online'], 0);
-               $content['joined']            = generateDateTime($content['joined'], 0);
-               $content['last_update']       = generateDateTime($content['last_update'], 0);
-               $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], 0);
+               $content['last_online']       = generateDateTime($content['last_online'], '0');
+               $content['joined']            = generateDateTime($content['joined'], '0');
+               $content['last_update']       = generateDateTime($content['last_update'], '0');
+               $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], '0');
                $content['total_points']      = getTotalPoints($content['userid']);
                $content['locked_points']     = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points');
 
@@ -130,8 +130,8 @@ LIMIT 1",
                $data = runFilterChain('get_own_points', $data);
 
                // Add more data
-               $content['own_points']        = $data['points'];
-               $content['lock_timestamp']    = generateDateTime($content['lock_timestamp'], 2);
+               $content['own_points']     = $data['points'];
+               $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
 
                // Link to email_details if some are sent
                if ($content['emails_sent'] > 0) {
@@ -265,7 +265,7 @@ LIMIT 1",
                        $content = merge_array($content, $templateContent);
 
                        // Get number of unconfirmed mails
-                       $content['links'] = countSumTotalData($content['userid'], 'user_links', 'id', 'userid', true);
+                       $content['links'] = getTotalUnconfirmedMails($content['userid']);
                        if ($content['links'] > 0) {
                                $content['links'] = $base . '&amp;what=list_links&amp;userid=' . $content['userid'] . '%}">{%pipe,translateComma=' . $content['links'] . '%}</a>]';
                        } // END - if
@@ -275,10 +275,10 @@ LIMIT 1",
                                $content['emails_sent'] = $base . '&amp;what=email_details&amp;userid=' . $content['userid'] . '%}">{%pipe,translateComma=' . $content['emails_sent'] . '%}</a>]';
                        } // END - if
 
-                       // Clickrate
-                       $content['rate'] = '0';
+                       // Click rate
+                       $content['click_rate'] = '0';
                        if ($content['emails_received'] > 0) {
-                               $content['rate'] = $content['mails_confirmed'] / $content['emails_received'] * 100;
+                               $content['click_rate'] = $content['mails_confirmed'] / $content['emails_received'] * 100;
                        } // END - if
 
                        // Transfer data to array
index d0d08009fad79f3a317511293b9ed0e724d4fc55..eb62f05dcd9e1f44438f370ddcf143ff6c0a4aea 100644 (file)
@@ -64,25 +64,25 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $data = SQL_FETCHARRAY($result);
-                               $data = array(
-                                       'cnt'    => $count,
+                               $content = SQL_FETCHARRAY($result);
+                               $content = array(
+                                       'count'  => $count,
                                        'sel'    => $sel,
-                                       'menu'   => $data['title'],
-                                       'action' => adminAddMenuSelectionBox('member', 'action', 'sel_action[' . $sel . ']', $data['action']),
-                                       'what'   => adminAddMenuSelectionBox('member', 'what'  , 'sel_what[' . $sel . ']', $data['what']),
+                                       'menu'   => $content['title'],
+                                       'action' => adminAddMenuSelectionBox('member', 'action', 'sel_action[' . $sel . ']', $content['action']),
+                                       'what'   => adminAddMenuSelectionBox('member', 'what'  , 'sel_what[' . $sel . ']', $content['what']),
                                );
 
                                // Load template
-                               $OUT .= loadTemplate('admin_edit_member_menu_row', true, $data);
+                               $OUT .= loadTemplate('admin_edit_member_menu_row', true, $content);
                        } else {
                                // Entry not found?
-                               $data = array(
+                               $content = array(
                                        'sel' => $sel
                                );
 
                                // Load template
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
                        SQL_FREERESULT($result);
                } // END - if
@@ -90,7 +90,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
 
        // Add row content and current counter
        $content['rows'] = $OUT;
-       $content['cnt'] = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_edit_member_menu', false, $content);
@@ -108,7 +108,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                // Entry found so we load the stuff...
                                list($title) = SQL_FETCHROW($result);
                                $content = array(
-                                       'cnt'   => $count,
+                                       'count' => $count,
                                        'sel'   => $sel,
                                        'title' => $title
                                );
@@ -128,7 +128,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                } // END - if
        } // END - foreach
        $content['rows'] = $OUT;
-       $content['cnt'] = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_delete_member_menu', false, $content);
@@ -144,31 +144,31 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
-                               $data = SQL_FETCHARRAY($result);
-                               $data = array(
-                                       'cnt'     => $count,
-                                       'menu'    => $data['title'],
+                               $content = SQL_FETCHARRAY($result);
+                               $content = array(
+                                       'count'   => $count,
+                                       'menu'    => $content['title'],
                                        'sel'     => $sel,
-                                       'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
-                                       'locked'  => addSelectionBox('yn', $data['locked'] , 'locked' , $sel),
+                                       'visible' => addSelectionBox('yn', $content['visible'], 'visible', $sel),
+                                       'locked'  => addSelectionBox('yn', $content['locked'] , 'locked' , $sel),
                                );
 
                                // Load template
-                               $OUT .= loadTemplate('admin_menu_status_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_status_row', true, $content);
                        } else {
                                // Entry not found?
-                               $data = array(
+                               $content = array(
                                        'sel' => $sel
                                );
 
                                // Load template
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $data);
+                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
                        }
                        SQL_FREERESULT($result);
                } // END - if
        } // END - foreach
        $content['rows'] = $OUT;
-       $content['cnt'] = $count;
+       $content['count'] = $count;
 
        // Load template
        loadTemplate('admin_member_menu_status', false, $content);
@@ -193,26 +193,26 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                $content['sub'] = $subMenu;
 
                $count = '0'; $OUT = '';
-               while ($data = SQL_FETCHARRAY($result)) {
+               while ($content = SQL_FETCHARRAY($result)) {
                        // Init navigation
-                       $data['navi'] = '';
+                       $content['navi'] = '';
                        $count++;
-                       if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($subMenu)))) {
+                       if (($content['sort'] == '0') || (($content['sort'] == 1) && (!empty($subMenu)))) {
                                // Is highest position
-                               $data['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
+                               $content['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']+1) . '&amp;fid=' . $content['sort'] . '%}">{--LOWER--}</a>';
                        } elseif ($count == SQL_NUMROWS($result)) {
                                // Is lowest position
-                               $data['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>';
-                       } elseif ($data['sort'] > 0) {
+                               $content['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']-1) . '&amp;fid=' . $content['sort'] . '%}">{--HIGHER--}</a>';
+                       } elseif ($content['sort'] > 0) {
                                // Anything else between highest and lowest
-                               $data['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']-1) . '&amp;fid=' . $data['sort'] . '%}">{--HIGHER--}</a>|<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $data['action'] . '&amp;w=' . $data['what'] . '&amp;tid=' . ($data['sort']+1) . '&amp;fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
+                               $content['navi'] = '<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']-1) . '&amp;fid=' . $content['sort'] . '%}">{--HIGHER--}</a>|<a href="{%url=modules.php?module=admin&amp;what=memedit&amp;sub=' . $content['sub'] . '&amp;act=' . $content['action'] . '&amp;w=' . $content['what'] . '&amp;tid=' . ($content['sort']+1) . '&amp;fid=' . $content['sort'] . '%}">{--LOWER--}</a>';
                        }
 
                        // Add more entries
-                       $data['mode'] = 'mem';
+                       $content['mode'] = 'mem';
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_menu_overview_row', true, $data);
+                       $OUT .= loadTemplate('admin_menu_overview_row', true, $content);
                } // END - while
 
                // Free memory
index 77e54c93bd99e70af0afbd463c7762774ea1ffe4..c5c6b87db61b42c81ba46c73876c75eb49679730 100644 (file)
@@ -140,7 +140,7 @@ switch (getConfig('guest_stats')) {
                                'm_descr'  => $GLOBALS['month_descr'][$month],
                                'r_class'  => $r,
                                'r2_class' => $r2,
-                               'cnt'      => $count
+                               'count'    => $count
                        );
 
                        // Load row template
@@ -163,8 +163,8 @@ switch (getConfig('guest_stats')) {
                foreach ($cat_cnt as $id => $count) {
                        // Prepare data for the template
                        $data = array(
-                               'cat' => $cats[$id],
-                               'cnt' => $count,
+                               'cat'   => $cats[$id],
+                               'count' => $count,
                        );
 
                        // Load row template and switch colors
index 3435584416cb034ffd0e9f2f56b96633d49e745a..ee437a3b594532fa3113ba2c51e7163ef977d0fe 100644 (file)
@@ -67,7 +67,7 @@ $OUT = ''; $count = 1;
 while ($content = SQL_FETCHARRAY($result)) {
        // Prepare data for template
        $content = array(
-               'cnt'          => $count,
+               'count'        => $count,
                'userid'       => $content['userid'],
                'last_online'  => generateDateTime($content['last_online'], '3'),
        );
@@ -122,7 +122,7 @@ LIMIT {?top10_max?}", __FILE__, __LINE__);
 $OUT = ''; $count = 1;
 while ($content = SQL_FETCHARRAY($result)) {
        // Prepare data for template
-       $content['cnt']         = $count;
+       $content['count']       = $count;
        $content['last_online'] = generateDateTime($content['last_online'], '3');
 
        // Load row template
@@ -176,7 +176,7 @@ $OUT = ''; $count = 1;
 while ($content = SQL_FETCHARRAY($result)) {
        // Prepare data for template
        $content = array(
-               'cnt'         => $count,
+               'count'       => $count,
                'userid'      => $content['userid'],
                'refs'        => $content['refs'],
                'last_online' => generateDateTime($content['last_online'], '3')
index d41f5964f5522c2995e90bd115df86e3c98a3e4f..9f265539f9d9ada84c192f7743983ae32419bba8 100644 (file)
@@ -84,8 +84,8 @@ if (!SQL_HASZERONUMS($result)) {
        $count = 1;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
-               $content['cnt']         = $count;
-               $content['last_online'] = generateDateTime($content['last_online'], 2);
+               $content['count']       = $count;
+               $content['last_online'] = generateDateTime($content['last_online'], '2');
 
                // Load row template
                $OUT .= loadTemplate('member_list_beg_row', true, $content);
index 21c07396ff0fbf373fc7ad7fe2dd828463f8d3c8..afd5af2f32b7f0fc169bcb3c35f46b862fd8cc79 100644 (file)
@@ -100,8 +100,8 @@ if (!SQL_HASZERONUMS($result)) {
        $count = 1;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
-               $content['cnt']         = $count;
-               $content['last_online'] = generateDateTime($content['last_online'], 2);
+               $content['count']       = $count;
+               $content['last_online'] = generateDateTime($content['last_online'], '2');
 
                // Load row template
                $OUT .= loadTemplate('member_bonus_row', true, $content);
index bcaece4fecc09f2df6636ab1a4072ff16e067014..95a1e0d9e59c853102ca0146b4654a64373428d5 100644 (file)
@@ -51,7 +51,7 @@ if ((!isExtensionActive('order')) && (!isAdmin())) {
 $url = ''; $id = '0';
 
 // Count unconfirmed mails
-$links = countSumTotalData(getMemberId(), 'user_links', 'id', 'userid', true);
+$links = getTotalUnconfirmedMails(getMemberId());
 
 $ALLOWED = getUserData('receive_mails') - getUserData('mail_orders');
 if (getConfig('order_max_full') == 'MAX') $ALLOWED = getUserData('receive_mails');
index 5b26ebfab58e0886e509d8e24bc77ce2a521b680..cec12c40a71e63db515d4e03b426792a498aa814 100644 (file)
@@ -372,7 +372,7 @@ ORDER BY
                        $row['points'] = getTotalPoints($row['refid']);
 
                        // Get unconfirmed mails
-                       $row['unconfirmed']  = countSumTotalData($row['refid'], 'user_links', 'id', 'userid', true);
+                       $row['unconfirmed'] = getTotalUnconfirmedMails($row['refid']);
 
                        // Init click rate with zero
                        $row['click_rate'] = '0';
index 84e126ca9fa99a7df4c930f9f90ce9495799565c..a826c3d69b85716689946314fb9f18eb01ac04d9 100644 (file)
@@ -2581,6 +2581,18 @@ function getTotalReceivers ($mode = 'normal') {
        return $numRows;
 }
 
+// Wrapper "getter" to get total unconfirmed mails for given userid
+function getTotalUnconfirmedMails ($userid) {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__][$userid])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_links', 'id', 'userid', true);
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__][$userid];
+}
+
 //-----------------------------------------------------------------------------
 //                        Configuration wrapper
 //-----------------------------------------------------------------------------
index 5d95461c72dca440c7067da76dde268ad6bf38eb..2d42e33c10a826c58d68439e90f8755840a7664f 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td colspan="2" class="table_footer">
                        <input type="hidden" name="ok" value="delete" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="submit" class="form_delete submit" name="submit" value="{--DEL_ENTRIES--}" />
                </td>
        </tr>
index 3d74ed714d503a8554eeebd1889855c79bf35e4a..ce509e83c3dc0f19fa87223eacd1a1f16e996113 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td class="{%template,ColorSwitch%} bottom" align="right">
-               $content[cnt]. {--ADMIN_ENTRY_DELETE--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_DELETE--}:
        </td>
        <td class="{%template,ColorSwitch%} bottom">
                $content[menu]
index ea16a559ece8b89ba30b10e73fe4cc82ef767ca7..ff364427096793cbb0732e31e6d8f7010ccc8d83 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td colspan="2" class="table_footer">
                        <input type="hidden" name="ok" value="delete" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="submit" class="form_delete" name="submit" value="{--DEL_ENTRIES--}" />
                </td>
        </tr>
index f1a6105abcfee96e3f5984ed6316846c2ada9869..079606b843ba01a099a18646a932ddf3ef2a39cb 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td class="bottom {%template,ColorSwitch%}" align="right">
-               $content[cnt]. {--ADMIN_ENTRY_DELETE--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_DELETE--}:
        </td>
        <td class="bottom {%template,ColorSwitch%}">
                $content[menu]
index e4308aae4b32127d00f061f524876dc8d693cddf..31a1910a9fa35dbec371070d8f5cf723b077ca0a 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td colspan="2" class="table_footer">
                        <input type="hidden" name="ok" value="delete" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="submit" class="form_delete" name="submit" value="{--DEL_ENTRIES--}" />
                </td>
        </tr>
index a647a25fc03ada651320f0dcd9e9bc70b640de78..2e00bcb80762029e02660d745a72c14f1f1e1fd5 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td align="right">
-               $content[cnt]. {--ADMIN_ENTRY_DELETE--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_DELETE--}:
        </td>
        <td>
                $content[title] <input type="hidden" name="sel[$content[sel]]" value="1" />
index 79e00d68a0c45fbe0b949a3774040d122622232a..a1e19073482d00b31eca00cb83c79264af4fc21c 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td colspan="2" class="table_footer">
                        <input type="hidden" name="ok" value="edit" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
                        <input type="submit" class="form_submit" name="submit" value="{--SUBMIT_CHANGES--}" />
                </td>
index 644a375f60c55f1c8b4b16f273fd5f6fd86cb33e..e14739f9360008e23ac6c54a40c83d3415a98b5b 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td colspan="2" class="form_submit {%template,ColorSwitch%}">
-               $content[cnt]. {--ADMIN_ENTRY_MODIFY--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
index 3df5c79be13717aed594a9a9c665056ad08e40c9..0ada43ee60052c136d261fd6a43cd50e66a86502 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td class="table_footer" colspan="2">
                        <input type="hidden" name="ok" value="edit" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
                        <input type="submit" class="form_submit" name="submit" value="{--SUBMIT_CHANGES--}" />
                </td>
index d74d78d9909800d8605cf5b6c9f26b2cd6d11c3f..2b509282f87fa60237df76068fd73cd77f3eaaf1 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td colspan="2" class="form_submit {%template,ColorSwitch%}">
-               $content[cnt]. {--ADMIN_ENTRY_MODIFY--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
index 72e67ac0611a617c9934ef568a844799980df5fd..d927b1cc8c6bf8b4f5c1fd1f5e62dc7687ae8c85 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td align="center" colspan="2" class="table_footer">
                        <input type="hidden" name="ok" value="edit" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
                        <input type="submit" class="form_submit" name="submit" value="{--SUBMIT_CHANGES--}" />
                </td>
index 2d8e75dcf5b2407dcb075fb58c656d017cdb4a4c..41436645038813f14d26c9d69d08d37d1c7ca45a 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td class="{%template,ColorSwitch%}" colspan="2">
-               $content[cnt]. {--ADMIN_ENTRY_MODIFY--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
index 82267d2dedbae0e201c2876dbab0a7d6ddf89ad0..5d091e2bf41382c587b0db9bd57484d7da5354c5 100644 (file)
@@ -15,7 +15,7 @@
        <tr>
                <td colspan="4" align="center" class="table_footer">
                        <input type="hidden" name="ok" value="status" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
                        <input type="submit" class="form_submit" name="submit" value="{--ADMIN_CHANGE_ENTRIES--}" />
                </td>
index f76f79190b92972f77338a1539caef285d1f551f..cddfa9809716b78d230ee712ff26bfa619d592ca 100644 (file)
@@ -36,7 +36,7 @@
 <tr>
        <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,getTotalPoints,translateComma=$content[userid]%} {?POINTS?}</td>
        <td align="center" class="right {%template,ColorSwitch%} bottom">$content[emails_sent]</td>
-       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[rate]%}&#37;</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[click_rate]%}&#37;</td>
        <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[locked_points]%} {?POINTS?}</td>
        <td align="center" class="{%template,ColorSwitch%} bottom">$content[refs]</td>
 </tr>
index 57d29af522d509928ee669d2e5a633eb68a93461..722ef9ad4be88e43e29187da6f1a25df789d59ca 100644 (file)
@@ -12,7 +12,7 @@
        <tr>
                <td colspan="4" align="center" height="40" class="table_footer">
                        <input type="hidden" name="ok" value="status" />
-                       <input type="hidden" name="chk" value="$content[chk]_$content[cnt]" />
+                       <input type="hidden" name="chk" value="$content[chk]_$content[count]" />
                        <input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
                        <input type="submit" class="form_submit" name="submit" value="{--ADMIN_CHANGE_ENTRIES--}" />
                </td>
index 8397481a2968a627a96248ed5d65683a163c9365..f4bf065cb70412a2fe5dd72f03ddf26ea32a2aa4 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td width="25%" align="right" class="{%template,ColorSwitch%} bottom">
-               $content[cnt]. {--ADMIN_ENTRY_MODIFY--}:
+               {%pipe,translateComma=$content[count]%}. {--ADMIN_ENTRY_MODIFY--}:
        </td>
        <td width="25%" class="{%template,ColorSwitch%} bottom">
                $content[menu]
index bccf6eab9420614a6e83b80bb84ec524e4bdfe4d..80691265f5fc195fb068b7acbfd4c39cd35858eb 100644 (file)
@@ -1,4 +1,4 @@
 <tr>
        <td class="{%template,ColorSwitch%} guest_stats_l bottom" colspan="3">$content[cat]</td>
-       <td class="{%template,ColorSwitch%} guest_stats_r bottom">$content[cnt]</td>
+       <td class="{%template,ColorSwitch%} guest_stats_r bottom">{%pipe,translateComma=$content[count]%}</td>
 </tr>
index 6ef77e3bb663f04b15ada0ca09d76c69e42705cd..8601cbaf9517d99682d6486578664a99e4a3ede4 100644 (file)
@@ -7,30 +7,30 @@
        </tr>
        <tr>
                <td class="guest_stats_l bottom">{--USERS_TOTAL--}:</td>
-               <td class="guest_stats_r bottom right">$content[total_users]</td>
+               <td class="guest_stats_r bottom right">{%pipe,translateComma=$content[total_users]%}</td>
                <td class="guest_stats_l bottom">{--UNCONFIRMED_USERIDS--}:</td>
-               <td class="guest_stats_r bottom">$content[unconfirmed]</td>
+               <td class="guest_stats_r bottom">{%pipe,translateComma=$content[unconfirmed]%}</td>
        </tr>
        <tr>
                <td class="guest_stats_l bottom">{--GUEST_STATS_MALES--}:</td>
-               <td class="guest_stats_r bottom right">$content[total_males]</td>
+               <td class="guest_stats_r bottom right">{%pipe,translateComma=$content[total_males]%}</td>
                <td class="guest_stats_l bottom">{--GUEST_STATS_FEMALES--}:</td>
-               <td class="guest_stats_r bottom">$content[total_females]</td>
+               <td class="guest_stats_r bottom">{%pipe,translateComma=$content[total_females]%}</td>
        </tr>
        <!--
        @TODO We have to fix these counters.
        <tr>
                <td class="guest_stats_l bottom">{--GUEST_STATS_TONLINE--}:</td>
-               <td class="guest_stats_r bottom right">$content[tmem_count]</td>
+               <td class="guest_stats_r bottom right">{%pipe,translateComma=$content[tmem_count]%}</td>
                <td class="guest_stats_l bottom">{--GUEST_STATS_YONLINE--}:</td>
-               <td class="guest_stats_r bottom">$content[ymem_count]</td>
+               <td class="guest_stats_r bottom">{%pipe,translateComma=$content[ymem_count]%}</td>
        </tr>
        //-->
        <tr>
                <td class="guest_stats_l bottom">{--GUEST_STATS_TREGISTER--}:</td>
-               <td class="guest_stats_r bottom right">$content[treg_count]</td>
+               <td class="guest_stats_r bottom right">{%pipe,translateComma=$content[treg_count]%}</td>
                <td class="guest_stats_l bottom">{--GUEST_STATS_YREGISTER--}:</td>
-               <td class="guest_stats_r bottom">$content[yreg_count]</td>
+               <td class="guest_stats_r bottom">{%pipe,translateComma=$content[yreg_count]%}</td>
        </tr>
        <tr>
                <td align="center" class="table_header bottom" colspan="4">
index acc86a79c115e6e1c61927855e65c7a4b6a2ddc3..5e12902a109fa8c791ccc95e71fbc2c249883ca8 100644 (file)
@@ -1,3 +1,7 @@
 <!-- VORSICHT----! KEINE <tr> UND </tr> HIER EINSETZEN----! //-->
-<td class="guest_stats_$content[l_class] bottom">$content[m_descr]:</td>
-<td class="guest_stats_$content[r_class] bottom$content[r2_class]">$content[cnt]</td>
+<td class="guest_stats_$content[l_class] bottom">
+       $content[m_descr]:
+</td>
+<td class="guest_stats_$content[r_class] bottom$content[r2_class]">
+       {%pipe,translateComma=$content[count]%}
+</td>
index 4ae195dcd3235b2ebaf1c2c354848229072266b6..ad2f1f157c5e56d3f650f3216a65cbb7c4c5d317 100644 (file)
@@ -1,4 +1,4 @@
 <tr>
        <td class="{%template,ColorSwitch%} bottom right" align="right" width="250">$content[title]</td>
-       <td class="{%template,ColorSwitch%} bottom" width="50">$content[counter]</td>
+       <td class="{%template,ColorSwitch%} bottom" width="50">{%pipe,translateComma=$content[counter]%}</td>
 </tr>
index 5f2b0ed38f3c408a1e45ea112146d20f51e768f3..f1a7600d351239fc1bf65ac9bbaa45c5dbd30f57 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[count]%}</td>
        <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
        <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
        <td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
index fc17f05219394d00da510c8448b95dccf1f58942..e2ba4d604e16b8d955a6602847426723204cb738 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[count]%}</td>
        <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
        <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%user,total_logins,translateComma=$content[userid]%}</td>
        <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,getTotalPoints,translateComma=$content[userid]%}</td>
index d37ec997a0ae2fc755ad67f946aeffbe108a8eb7..0eba04a28a6041ffd90560dffc2d3ac1b50f2b80 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[count]%}</td>
        <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%user,nickname,fixEmptyContentToDashes=$content[userid]%})</td>
        <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[refs]%}</td>
        <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,getTotalPoints,translateComma=$content[userid]%}</td>
index 6812612af1ed8e17034c43c190f5e59273f75b39..08dbc276497ae37279b8dbe86dd8f711e5f87ced 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td align="center" class="{%template,ColorSwitch%} bottom">$content[cnt]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[count]%}</td>
        <td align="center" class="{%template,ColorSwitch%} bottom">$content[userid]</td>
        <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[points]%}</td>
        <td align="center" class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
index fc6c2c0674bf2701738e868046edf350079ea77e..e2cc36a4326400f92c31d2cde8fd30e55ef95131 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
        <td align="center" class="{%template,ColorSwitch%} bottom">
-               $content[cnt]
+               {%pipe,translateComma=$content[count]%}
        </td>
        <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[userid]
index 83e7ee24b014274045876fcf2094db2cbf88837b..71afe4612922d4297053a11ff6f8502a9efc6b66 100644 (file)
@@ -1,8 +1,8 @@
 <div align="center">
 <table border="0" cellspacing="0" cellpadding="0" width="400" class="table dashed">
        <tr>
-               <td align="right" height="40" class="register_left">
-                       <strong>{--MAX_PER_DAY--}:</strong>&nbsp;&nbsp;
+               <td align="right" height="40" class="register_left" style="margin-right:3px">
+                       {--MAX_PER_DAY--}:
                </td>
                <td class="register_right">
                        <select name="max_mails" size="1" class="form_select">