]> git.mxchange.org Git - mailer.git/commitdiff
Task extension now shows surfbar URLs in admin overview
authorRoland Häder <roland@mxchange.org>
Thu, 4 Sep 2008 22:29:33 +0000 (22:29 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 4 Sep 2008 22:29:33 +0000 (22:29 +0000)
inc/language/task_de.php
inc/libs/task_functions.php

index e8b7c8194aebaab312ec30c006ccd13ccb383fd5..4792d0e0201dda58747f51856483d5371b74341a 100644 (file)
@@ -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&uuml;r die Surfbar");
 
 //
 ?>
index 2a51e25b22da981420d513b3eba913f03fef6ce1..bd2f71179f5d403bbf6807c28c0b0981313c7b96 100644 (file)
@@ -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);