X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_norefs.php;h=f87b68fd319130d505ca122256bd7490eb3d0a92;hb=b7a1b50bec9d45efcf037db83b7e7c58ba2846dd;hp=94b8f903e6281cfa856b46f37fca827c3bbb2c90;hpb=7f104f6fe558bb56b4205241435a2357c2feece1;p=mailer.git diff --git a/inc/modules/admin/what-list_norefs.php b/inc/modules/admin/what-list_norefs.php index 94b8f903e6..f87b68fd31 100644 --- a/inc/modules/admin/what-list_norefs.php +++ b/inc/modules/admin/what-list_norefs.php @@ -1,190 +1,3 @@ 0) -{ - // We have some (new?) registrations! - define('__COLSPAN1' , $colspan); - define('__COLSPAN2' , ($colspan + 2)); - define('__USER_CNT' , $user_count); - define('__ALPHA_SORT', alpha($_GET['sortby'], $colspan, true)); - define('__SORT_LINKS', SortLinks($_GET['letter'], $_GET['sortby'], $colspan, true)); - define('__TITLE' , ADMIN_LIST_NOREFS_ACCOUNTS); - - if ($PAGES > 1) { - // Add navigation - define('__PAGE_NAV', ADD_PAGENAV($PAGES, $_CONFIG['user_limit'], true, $colspan, true)); - } else { - // No page navigation is required - define('__PAGE_NAV', ""); - } - - // Column with nickname when nickname extension is present - if (EXT_IS_ACTIVE("nickname")) { - // Nickname extension found - define('__NICKNAME_TH', " ".NICKNAME.""); - } else { - // Not found - define('__NICKNAME_TH', ""); - } - - $SW = 2; $OUT = ""; - while (list($uid, $gender, $sname, $fname, $email, $IP, $ref, $status, $emails_sent, $mails_confirmed, $emails_received, $nick) = SQL_FETCHROW($result)) { - // Get unconfirmed emails - $LINKS = GET_TOTAL_DATA($uid, "user_links", "id", "userid", true); - - // Set link to unconfirmed emails - if ($LINKS > 0) { - // Translate value - $LINKS = TRANSLATE_COMMA($LINKS); - - // Add link - $LINKS = $BASE."&what=list_links&u_id=".$uid."\">".$LINKS."]"; - } // END - if - - // Add nickname - if ((empty($nick)) || ($uid == $nick)) $nick = "---"; - - // Sent emails - $SENT = $emails_sent; - if ($emails_sent > 0) $SENT = $BASE."&what=email_details&u_id=".$uid."\">".TRANSLATE_COMMA($emails_sent)."]"; - - // Calculate total points - $pointsTotal = GET_TOTAL_DATA($uid, "user_points", "points") - GET_TOTAL_DATA($uid, "user_data", "used_points"); - - // Clickrate - $clickRate = 0; - if ($emails_received > 0) { - $clickRate = $mails_confirmed / $emails_received * 100; - } // END - if - - // Transfer data to array - $content = array( - 'sw' => $SW, - 'uid' => ADMIN_USER_PROFILE_LINK($uid), - 'gender' => TRANSLATE_GENDER($gender), - 'sname' => $sname, - 'fname' => $fname, - 'email' => "[".$email."]", - 'addr' => $IP, - 'ref' => $ref, - 'status' => TRANSLATE_STATUS($status), - 'links' => $LINKS, - 'alinks' => MEMBER_ACTION_LINKS($uid, $status), - 'nick' => $nick, - 'points' => TRANSLATE_COMMA($pointsTotal), - 'sent' => $SENT, - 'rate' => TRANSLATE_COMMA($clickRate), - 'locked' => TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points")) - ); - - // Load row template and switch colors - $OUT .= LOAD_TEMPLATE("admin_list_user_row", true, $content); - $SW = 3 - $SW; - } // END - while - - // Free memory - SQL_FREERESULT($result); - - define('__USER_ROWS', $OUT); - - // Load main template - LOAD_TEMPLATE("admin_list_user"); - - // Free some memory - SQL_FREERESULT($result_master); -} else { - // No one as registered so far! :-( - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_ACCOUNT_NOREFS_404); -} - -// Free memory -SQL_FREERESULT($result_master); - -// +// DEPRECATED! ?>