]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
Complete rewrite and debug message surpressed:
[mailer.git] / inc / modules / admin / what-list_user.php
index a13bbaf73243ebc10448c32ed1010025f6cff07f..a0143e28a06c820d230a694c4240fc994bb8c862 100644 (file)
@@ -42,7 +42,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        require($INC);
 } elseif ((!EXT_IS_ACTIVE('user')) || (GET_EXT_VERSION('user') == '')) {
        // Missing extension!
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'user'));
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('user'));
        return;
 }
 
@@ -92,7 +92,7 @@ if (EXT_IS_ACTIVE('country')) {
 // Init unset data (bad that we change $_GET here!)
 if (!REQUEST_ISSET_GET(('letter'))) { REQUEST_SET_GET('letter', getMessage('_ALL2')); }
 if (!REQUEST_ISSET_GET(('sortby'))) { REQUEST_SET_GET('sortby', 'userid');            }
-if (!REQUEST_ISSET_GET('page'))   { REQUEST_SET_GET('page'  , "1");                 }
+if (!REQUEST_ISSET_GET('page'))   { REQUEST_SET_GET('page'  , '1');                 }
 
 // Set base URL
 $base = "[<a href=\"{!URL!}/modules.php?module=admin";
@@ -106,15 +106,15 @@ if (REQUEST_ISSET_GET('uid')) {
 FROM `{!_MYSQL_PREFIX!}_user_data`
 WHERE userid=%s
 LIMIT 1",
-               array($uid), __FILE__, __LINE__);
+       array($uid), __FILE__, __LINE__);
        if (SQL_NUMROWS($result_user) == 1) {
                // Account found!
                $DATA  = SQL_FETCHARRAY($result_user);
 
                // Get count/sum of refs, selected categories, unconfirmed mails
                $REFS  = GET_TOTAL_DATA($uid, "refsystem", "counter");
-               $CATS  = GET_TOTAL_DATA($uid, "user_cats", "id", 'userid', true);
-               $LINKS = GET_TOTAL_DATA($uid, "user_links", "id", 'userid', true);
+               $CATS  = GET_TOTAL_DATA($uid, "user_cats", 'id', 'userid', true);
+               $LINKS = GET_TOTAL_DATA($uid, "user_links", 'id', 'userid', true);
 
                // Add links to the numbers
                if ($LINKS > 0) $LINKS = $base."&amp;what=list_links&amp;uid=".$uid."\">".$LINKS."</a>]";
@@ -129,10 +129,10 @@ LIMIT 1",
                // Is this above zero?
                if ($stamp > 0) {
                        // Then use it
-                       define('_BIRTHDAY', generateDateTime($stamp, "3"));
+                       define('_BIRTHDAY', generateDateTime($stamp, '3'));
                } else {
                        // Zero or below so set zero!
-                       define('_BIRTHDAY', generateDateTime(0, "3"));
+                       define('_BIRTHDAY', generateDateTime(0, '3'));
                }
 
                // Prepare data for template
@@ -151,7 +151,7 @@ LIMIT 1",
                $DATA['last_profile_sent'] = generateDateTime($DATA['last_profile_sent'], '0');
                $DATA['total']             = translateComma(GET_TOTAL_DATA($uid, "user_points", "points"));
                $DATA['locked']            = translateComma(GET_TOTAL_DATA($uid, "user_points", "locked_points"));
-               $DATA['lock_timestamp']    = generateDateTime($DATA['lock_timestamp'], "2");
+               $DATA['lock_timestamp']    = generateDateTime($DATA['lock_timestamp'], '2');
 
                // Is the lock reason not set?
                if (!isset($DATA['lock_reason'])) $DATA['lock_reason'] = '---';
@@ -159,7 +159,7 @@ LIMIT 1",
                // Nickname inclusion?
                // @TODO Rewrite these to filters
                if (EXT_IS_ACTIVE('nickname')) {
-                       // Nickname not set or invalid? Then 
+                       // Nickname not set or invalid? Then
                        if ((empty($DATA['nickname'])) || ($DATA['nickname'] == $uid)) $DATA['nickname'] = '---';
                } else {
                        // Extension not found
@@ -250,7 +250,7 @@ LIMIT 1",
        // Activate the extension please!
        $PAGES = round(SQL_NUMROWS($result_master) / getConfig('user_limit') + 0.5);
 
-       if (!REQUEST_ISSET_GET('page'))   REQUEST_SET_GET('page'  , "1");
+       if (!REQUEST_ISSET_GET('page'))   REQUEST_SET_GET('page'  , '1');
        if (!REQUEST_ISSET_GET('offset')) REQUEST_SET_GET('offset', getConfig('user_limit'));
 
        // Add limitation to SQL string and run him again
@@ -298,7 +298,7 @@ LIMIT 1",
                        if ($content['refid'] > 0) $content['refid'] = generateUserProfileLink($content['refid']);
 
                        // Get number of unconfirmed mails
-                       $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", "id", 'userid', true);
+                       $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", 'id', 'userid', true);
                        if ($LINKS > 0) $LINKS = $base."&amp;what=list_links&amp;uid=".$content['userid']."\">".translateComma($LINKS)."</a>]";
 
                        // Set link to sent mails if present
@@ -327,7 +327,7 @@ LIMIT 1",
                        $content['points'] = translateComma($pointsTotal);
                        $content['rate']   = translateComma($clickRate);
                        $content['locked'] = translateComma(GET_TOTAL_DATA($content['userid'], "user_points", "locked_points"));
-                       $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], "2");
+                       $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2');
                        $content['status'] = translateUserStatus($content['status']);
 
                        // Is the lock reason not set?