]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_beg.php
Deprecated 'replacer' removed. Now we use EL code instead (there are a lot example...
[mailer.git] / inc / modules / admin / what-list_beg.php
index 38bc8c3772e00210125b0260969ff9e9fcdbcb4d..deed93b238e0e17827c79d661468345fd71df32f 100644 (file)
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (isBegRallyeEnabled()) {
        // Shall I withdraw now?
@@ -75,13 +75,13 @@ ORDER BY
 
        if (!SQL_HASZERONUMS($result)) {
                // List users
-               $OUT = ''; $cnt = 1; $total = '0';
+               $OUT = ''; $count = 1; $total = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Init variables
                        $WIN1 = ''; $WIN2 = '';
 
                        // Maybe he can win his active beg?
-                       if ($cnt <= getConfig('beg_ranks')) {
+                       if ($count <= getBegRanks()) {
                                // Mark him
                                $WIN1 = '<strong>';
                                $WIN2 = '</strong>';
@@ -96,19 +96,19 @@ ORDER BY
                                'last_online' => generateDateTime($content['last_online'], 2),
                                'win1'        => $WIN1,
                                'win2'        => $WIN2,
-                               'cnt'         => $cnt,
+                               'cnt'         => $count,
                        );
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_beg_rows', true, $content);
-                       $cnt++; $total += $content['beg_points'];
+                       $count++; $total += $content['beg_points'];
                } // END - while
 
                $content['rows']  = $OUT;
-               $content['total'] = translateComma($total);
+               $content['total'] = $total;
 
                // Check if we need to display form or not with manuel withdraw
-               if (getConfig('last_month') == getMonth()) {
+               if (getLastMonth() == getMonth()) {
                        // Load form
                        $content['withdraw_form'] = loadTemplate('admin_list_beg_form', true);
                } else {