X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_norefs.php;h=a541084bacefccf7e0653f1571cce42d00bdf993;hb=7e977ea8d28b05219b02727fcca35150d9c8fcbe;hp=d751a994e0d7b1b2dbf4f5b608ae6cdf3d06c28c;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/modules/admin/what-list_norefs.php b/inc/modules/admin/what-list_norefs.php index d751a994e0..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,16 +52,24 @@ 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('__TITLE' , ADMIN_LIST_NOREFS_ACCOUNTS); + + if ($PAGES > 1) { + // Add navigation define('__PAGE_NAV', ADD_PAGENAV($PAGES, $_CONFIG['user_limit'], true, $colspan, true)); - } - else - { + } 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', "