Even more rewrites to make use of the EL
[mailer.git] / inc / modules / admin / what-list_primera.php
index 34610aa895eede831ce787cb9d5b2040b505afde..cb9969bc2dee77ab78b7eee076b61442dc7e3e5f 100644 (file)
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
 // Check for entries
-$result = SQL_QUERY("SELECT id, userid, primera_account, primera_amount, primera_timestamp, primera_type, primera_api_message, primera_api_status FROM `{?_MYSQL_PREFIX?}_user_primera` ORDER BY primera_timestamp DESC, id DESC",
-__FILE__, __LINE__);
+$result = SQL_QUERY("SELECT
+       `id`, `userid`, `primera_account`, `primera_amount`, `primera_timestamp`, `primera_type`, `primera_api_message`, `primera_api_status`
+FROM
+       `{?_MYSQL_PREFIX?}_user_primera`
+ORDER BY
+       `primera_timestamp` DESC,
+       `id` DESC",
+       __FILE__, __LINE__);
 
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
@@ -56,11 +62,7 @@ if (SQL_NUMROWS($result) > 0) {
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
                $content['sw']                = $SW;
-               $content['link']              = generateUserProfileLink($content['userid']);
-               $content['primera_amount']    = translateComma($content['primera_amount']);
                $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
-               $content['raw_type']          = strtolower($content['primera_type']);
-               $content['primera_type']      = PRIMERA_TRANSFER_STATUS($content['primera_type']);
 
                // Fix empty message and status
                if (empty($content['primera_api_message'])) $content['primera_api_message'] = '---';