X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_norefs.php;h=a541084bacefccf7e0653f1571cce42d00bdf993;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=313ccfc2481236b8747809ea84ed75597995b516;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git diff --git a/inc/modules/admin/what-list_norefs.php b/inc/modules/admin/what-list_norefs.php index 313ccfc248..a541084bac 100644 --- a/inc/modules/admin/what-list_norefs.php +++ b/inc/modules/admin/what-list_norefs.php @@ -6,7 +6,7 @@ * -------------------------------------------------------------------- * * File : what-list_norefs.php * * -------------------------------------------------------------------- * - * Short description : Show all members w/o a referral * + * Short description : Show all members w/o a referal * * -------------------------------------------------------------------- * * Kurzbeschreibung : Alle Mitgliederaccounts ohne Werber auflisten * * -------------------------------------------------------------------- * @@ -32,7 +32,7 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { +if ((!defined('__SECURITY')) || (!IS_ADMIN())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("user")) || (GET_EXT_VERSION("user") == "")) { @@ -42,9 +42,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); - -OPEN_TABLE("100%", "admin_content admin_content_align", ""); +ADD_DESCR("admin", __FILE__); $MORE = ", userid"; $colspan = "4"; // 27 if (EXT_IS_ACTIVE("nickname")) { $MORE = ", nickname"; } @@ -54,23 +52,31 @@ if (empty($_GET['sortby'])) { $_GET['sortby'] = "userid"; } if (empty($_GET['page'])) { $_GET['page'] = "1"; } // Set base URL -$BASE = " 0) { - // Free memory - SQL_FREERESULT($result_master); - // 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)); - if ($PAGES > 1) - { - define('__PAGE_NAV', ADD_PAGENAV($PAGES, $CONFIG['user_limit'], true, $colspan, true)); - } - else - { + 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")) - { + if (EXT_IS_ACTIVE("nickname")) { // Nickname extension found define('__NICKNAME_TH', "