Task extension now shows surfbar URLs in admin overview
[mailer.git] / inc / libs / task_functions.php
index 2a51e25..bd2f711 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);