From: Roland Häder Date: Thu, 4 Sep 2008 22:29:33 +0000 (+0000) Subject: Task extension now shows surfbar URLs in admin overview X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6896b68f8242a49fff5e09f5e740305eb00e4edc;p=mailer.git Task extension now shows surfbar URLs in admin overview --- diff --git a/inc/language/task_de.php b/inc/language/task_de.php index e8b7c8194a..4792d0e020 100644 --- a/inc/language/task_de.php +++ b/inc/language/task_de.php @@ -115,8 +115,12 @@ define('TASK_ADMIN_LIST_EXTENSIONS_ALL', "Alle Erweiterungen"); define('TASK_ADMIN_LIST_EXTENSIONS_ALL_TITLE', "Es exisitieren Erweiterungen in Ihrem ".MT_WORD."."); define('TASK_ADMIN_LIST_EXTENSIONS_ACTIVE', "Aktivierte Erweit."); define('TASK_ADMIN_LIST_EXTENSIONS_ACTIVE_TITLE', "Sie haben Erweiterungen aktiviert!"); -define('TAKS_ADMIN_LIST_ACCOUNT_NOREF', "Accounts ohne Werber"); -define('TAKS_ADMIN_LIST_ACCOUNT_NOREF_TITLE', "Es wurden Accounts ohne Werber-ID (refid=0) gefunden!"); +define('TASK_ADMIN_LIST_ACCOUNT_NOREF', "Accounts ohne Werber"); +define('TASK_ADMIN_LIST_ACCOUNT_NOREF_TITLE', "Es wurden Accounts ohne Werber-ID (refid=0) gefunden!"); +define('TASK_ADMIN_LIST_SURFBAR_URLS_ALL', "Alle URLs in Surfbar"); +define('TASK_ADMIN_LIST_SURFBAR_URLS_ALL_TITLE', "In der Surfbar sind URLs gebucht worden."); +define('TASK_ADMIN_LIST_SURFBAR_URLS_PENDING', "Wartende URLs in Surfbar"); +define('TASK_ADMIN_LIST_SURFBAR_URLS_PENDING_TITLE', "Es warten noch URLs auf Freischaltung für die Surfbar"); // ?> diff --git a/inc/libs/task_functions.php b/inc/libs/task_functions.php index 2a51e25b22..bd2f71179f 100644 --- a/inc/libs/task_functions.php +++ b/inc/libs/task_functions.php @@ -298,8 +298,8 @@ ORDER BY d.userid"; if (GET_EXT_VERSION("sql_patches") >= "0.3.4") { // Check for accounts without referral $SQLs[] = "SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE refid='0' ORDER BY userid"; - $DESCRs[] = TAKS_ADMIN_LIST_ACCOUNT_NOREF; - $TITLEs[] = TAKS_ADMIN_LIST_ACCOUNT_NOREF_TITLE; + $DESCRs[] = TASK_ADMIN_LIST_ACCOUNT_NOREF; + $TITLEs[] = TASK_ADMIN_LIST_ACCOUNT_NOREF_TITLE; $WHATs[] = "list_norefs"; } @@ -516,6 +516,20 @@ ORDER BY beg_points DESC, userid"; $TITLEs[] = TASK_ADMIN_LIST_ADMINS_ALL_TITLE; } + if (EXT_IS_ACTIVE("surfbar")) { + // List all URLs in surfbar + $SQLs[] = "SELECT id FROM "._MYSQL_PREFIX."_surfbar_urls ORDER BY id"; + $WHATs[] = "list_surfbar_urls"; + $DESCRs[] = TASK_ADMIN_LIST_SURFBAR_URLS_ALL; + $TITLEs[] = TASK_ADMIN_LIST_SURFBAR_URLS_ALL_TITLE; + + // List all pending URLs in surfbar + $SQLs[] = "SELECT id FROM "._MYSQL_PREFIX."_surfbar_urls WHERE status='PENDING' ORDER BY id"; + $WHATs[] = "unlock_surfbar_urls"; + $DESCRs[] = TASK_ADMIN_LIST_SURFBAR_URLS_PENDING; + $TITLEs[] = TASK_ADMIN_LIST_SURFBAR_URLS_PENDING_TITLE; + } + // Generate extra overview rows $EXTRAS .= TASK_CREATE_EXTRA_ROWS($SQLs, $WHATs, $DESCRs, $TITLEs);