2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 08/03/2004 *
4 * =================== Last change: 11/19/2005 *
6 * -------------------------------------------------------------------- *
7 * File : task_functions.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Special task functions *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Spezielle task-Funktionen *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * -------------------------------------------------------------------- *
18 * Copyright (c) 2003 - 2009 by Roland Haeder *
19 * Copyright (c) 2009 - 2013 by Mailer Developer Team *
20 * For more information visit: http://mxchange.org *
22 * This program is free software; you can redistribute it and/or modify *
23 * it under the terms of the GNU General Public License as published by *
24 * the Free Software Foundation; either version 2 of the License, or *
25 * (at your option) any later version. *
27 * This program is distributed in the hope that it will be useful, *
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30 * GNU General Public License for more details. *
32 * You should have received a copy of the GNU General Public License *
33 * along with this program; if not, write to the Free Software *
34 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
44 // The advanced overview shows detailed informations to your exchange script:
45 // - Unconfirmed / locked accounts
46 // - Mails waiting to be approved
51 // @TODO Move all extension-dependent queries into filters
52 function outputAdvancedOverview (&$result_main) {
53 // Init variables/arrays
60 // Chheck for new extensions and updates
61 $jobsDone = outputStandardOverview($result_main);
70 'confirmed_members','unconfirmed_members','locked_members','random_refid','testers',
72 'update_tasks','new_tasks','closed_tasks','your_tasks','deleted_tasks','solved_tasks',
74 'pending_mails','canceled_mails','send_emails',
78 'purged_mails','purged_bonus_mails'
81 $content[$entry] = '0';
84 // Extension updates found
85 $value = countSumTotalData(getCurrentAdminId(), 'task_system', 'id', 'assigned_admin', TRUE, " AND `status`='NEW' AND `task_type`='EXTENSION_UPDATE'");
88 $content['update_tasks'] = '<a href="{%url=modules.php?module=admin&what=list_task&type=updates%}">' . $value . '</a>';
92 // First check for all account status seperately
95 $value = getTotalConfirmedUser();
97 $content['confirmed_members'] = '<a href="{%url=modules.php?module=admin&what=list_user&status=confirmed%}">' . $value . '</a>';
100 // Unconfirmed accounts
101 $value = getTotalUnconfirmedUser();
103 $content['unconfirmed_members'] = '<a href="{%url=modules.php?module=admin&what=list_user&status=unconfirmed%}">' . $value . '</a>';
107 $value = getTotalLockedUser();
109 $content['locked_members'] = '<a href="{%url=modules.php?module=admin&what=list_user&status=locked%}">' . $value . '</a>';
112 if (isExtensionInstalledAndNewer('user', '0.3.4')) {
114 $value = getTotalRandomRefidUser();
116 $content['random_refid'] = '<a href="{%url=modules.php?module=admin&what=list_user&do=random_refid%}">' . $value . '</a>';
119 if (isExtensionInstalledAndNewer('user', '0.5.0')) {
120 // And tester accounts
121 $value = getTotalTesterUsers();
123 $content['testers'] = '<a href="{%url=modules.php?module=admin&what=list_user&do=testers%}">' . $value . '</a>';
131 $value = countSumTotalData(NULL, 'task_system', 'id', 'assigned_admin', TRUE, " AND `status` != 'DELETED'");
134 $content['new_tasks'] = '<a href="{%url=modules.php?module=admin&what=list_task&type=unassigned%}">' . $value . '</a>';
140 $value = countSumTotalData('CLOSED', 'task_system', 'id', 'status', TRUE);
143 $content['closed_tasks'] = '<a href="{%url=modules.php?module=admin&what=list_task&type=closed%}">' . $value . '</a>';
149 $value = countSumTotalData('DELETED', 'task_system', 'id', 'status', TRUE);
152 $content['deleted_tasks'] = '<a href="{%url=modules.php?module=admin&what=list_task&type=deleted%}">' . $value . '</a>';
158 $value = countSumTotalData('SOLVED', 'task_system', 'id', 'status', TRUE, sprintf(" AND `assigned_admin`=%s", getCurrentAdminId()));
161 $content['solved_tasks'] = '<a href="{%url=modules.php?module=admin&what=list_task&type=solved%}">' . $value . '</a>';
167 $value = countSumTotalData(getCurrentAdminId(), 'task_system', 'id', 'assigned_admin', TRUE, " AND `status`='NEW' AND task_type != 'EXTENSION_UPDATE'");
170 $content['your_tasks'] = '<a href="{%url=modules.php?module=admin&what=list_task%}">' . $value . '</a>';
174 // Mails waiting to be approved
176 $value = countSumTotalData('ADMIN', 'pool', 'id', 'data_type', TRUE);
179 $content['pending_mails'] = '<a href="{%url=modules.php?module=admin&what=unlock_emails%}">' . $value . '</a>';
183 // Unfinished mail orders
185 $value = countSumTotalData('TEMP', 'pool', 'id', 'data_type', TRUE);
188 $content['canceled_mails'] = '<a href="{%url=modules.php?module=admin&what=email_details%}">' . $value . '</a>';
194 $value = countSumTotalData('SEND', 'pool', 'id', 'data_type', TRUE);
197 $content['send_emails'] = '<a href="{%url=modules.php?module=admin&what=email_archiv%}">' . $value . '</a>';
203 if (isExtensionActive('autopurge')) {
204 // Get auto-purged mails
205 $value = countSumTotalData('DELETED', 'pool', 'id', 'data_type', TRUE);
208 $content['purged_mails'] = '<a href="{%url=modules.php?module=admin&what=email_details%}">' . $value . '</a>';
212 // Autopurged bonus mails
214 if (isExtensionInstalledAndNewer('bonus', '0.1.8')) {
215 // Get auto-purged bonus mails
216 $value = countSumTotalData('DELETED', 'bonus', 'id', 'data_type', TRUE);
219 $content['purged_bonus_mails'] = '<a href="{%url=modules.php?module=admin&what=email_details%}">' . $value . '</a>';
221 } elseif (isExtensionActive('bonus')) {
222 $content['purged_bonus_mails'] = '{%message,ADMIN_EXTENSION_BONUS_OUTDATED=0.1.8%}';
224 $content['purged_bonus_mails'] = '<span class="bad">{--ADMIN_EXTENSION_BONUS_404--}</span>';
227 $content['purged_bonus_mails'] = '<span class="bad">{--ADMIN_EXTENSION_AUTOPURGE_404--}</span>';
228 $content['purged_mails'] = '<span class="bad">{--ADMIN_EXTENSION_AUTOPURGE_404--}</span>';
234 if (isExtensionInstalledAndNewer('bonus', '0.1.8')) {
235 // Get sent bonus mails (but not notifications)
236 $value = countSumTotalData('SEND', 'bonus', 'id', 'data_type', TRUE, " AND `is_notify`='N'");
239 $content['send_bonus_mails'] = '<a href="{%url=modules.php?module=admin&what=email_details%}">' . $value . '</a>';
241 } elseif (isExtensionActive('bonus')) {
242 $content['send_bonus_mails'] = '{%message,ADMIN_EXTENSION_BONUS_OUTDATED=0.1.8%}';
244 $content['send_bonus_mails'] = '{--ADMIN_EXTENSION_BONUS_404--}';
247 // Both extensions must be there
248 if ((isExtensionActive('autopurge')) && (isExtensionActive('user'))) {
249 // Start finding them...
250 $userExclusionSql = ' ';
251 $excludedUserids = runFilterChain('config_userid_exclusion_sql', array());
252 if (count($excludedUserids) > 0) {
254 $userExclusionSql .= ' AND `d`.`userid` NOT IN (' . implode(', ', $excludedUserids) . ')';
257 // Check for more extensions
258 // @TODO This can be rewritten to filter
259 if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
260 // Recent ext-holiday found
261 $userExclusionSql .= " AND `d`.`holiday_active`='N'";
264 // Check for all accounts
270 `{?_MYSQL_PREFIX?}_user_data` AS `d`
272 `d`.`status`='CONFIRMED' AND
273 (UNIX_TIMESTAMP() - `d`.`joined`) >= {?ap_inactive_since?} AND
274 (UNIX_TIMESTAMP() - `d`.`last_online`) >= {?ap_inactive_since?} AND
275 (UNIX_TIMESTAMP() - `d`.`ap_notified`) >= {?ap_inactive_since?}
276 " . runFilterChain('user_exclusion_sql', $userExclusionSql) . "
279 $WHATs[] = 'list_autopurge';
280 $DESCRs[] = '{--ADMIN_TASK_INACTIVE_AUTOPURGE--}';
281 $TITLEs[] = '{--ADMIN_TASK_INACTIVE_AUTOPURGE_TITLE--}';
284 if ((isExtensionInstalledAndNewer('sql_patches', '0.3.4')) && (isExtensionActive('user'))) {
285 // Check for accounts without referral
286 addSql('SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=0 OR `refid` IS NULL ' . runFilterChain('user_exclusion_sql', ' ') . ' ORDER BY `userid` ASC');
287 $DESCRs[] = '{--ADMIN_TASK_LIST_ACCOUNT_NO_REFERRAL--}';
288 $TITLEs[] = '{--ADMIN_TASK_LIST_ACCOUNT_NO_REFERRAL_TITLE--}';
289 $WHATs[] = 'list_user&do=norefs';
292 if (isExtensionActive('payout')) {
293 // List new payout requests
294 addSql("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_payouts` WHERE `status`='NEW' ORDER BY `userid` ASC");
295 $WHATs[] = 'list_payouts';
296 $DESCRs[] = '{--ADMIN_TASK_LIST_PAYOUTS_WAITING--}';
297 $TITLEs[] = '{--ADMIN_TASK_LIST_PAYOUTS_WAITING_TITLE--}';
298 addSql('SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_payouts` ORDER BY `userid` ASC');
299 $WHATs[] = 'list_payouts';
300 $DESCRs[] = '{--ADMIN_TASK_LIST_PAYOUTS_ALL--}';
301 $TITLEs[] = '{--ADMIN_TASK_LIST_PAYOUTS_ALL_TITLE--}';
304 if (isExtensionActive('wernis')) {
305 // List new wernis requests
306 addSql('SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_wernis` ORDER BY `userid` ASC');
307 $WHATs[] = 'list_wernis';
308 $DESCRs[] = '{--ADMIN_TASK_LIST_WERNIS_ALL--}';
309 $TITLEs[] = '{--ADMIN_TASK_LIST_WERNIS_ALL_TITLE--}';
312 if (isExtensionActive('holiday')) {
313 // List holiday requests
314 addSql('SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_holidays` ORDER BY `userid` ASC');
315 $WHATs[] = 'list_holiday';
316 $DESCRs[] = '{--ADMIN_TASK_LIST_HOLIDAYS--}';
317 $TITLEs[] = '{--ADMIN_TASK_LIST_HOLIDAYS_TITLE--}';
320 if (isExtensionInstalledAndNewer('bonus', '0.8.7')) {
321 // List all notifications
322 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `is_notify`='Y' ORDER BY `timestamp` DESC");
323 $WHATs[] = 'list_notifications';
324 $DESCRs[] = '{--ADMIN_TASK_LIST_NOTIFICATIONS--}';
325 $TITLEs[] = '{--ADMIN_TASK_LIST_NOTIFICATIONS_TITLE--}';
328 // Both extensions must be there
329 if ((isExtensionInstalledAndNewer('bonus', '0.2.3')) && (isExtensionActive('user'))) {
331 $add = runFilterChain('add_bonus_points_user_columns', '');
333 // Active rallye, so add more point columns, if not empty
336 $pointsColumns = '(0' . $add . ')';
342 // Autopurge installed?
343 if ((isExtensionActive('autopurge')) && (isAutopurgeInactiveEnabled()) && (getApInactiveSince() > 0)) {
344 // Use last online timestamp to keep inactive members away from here
345 $lastOnline = ' AND (UNIX_TIMESTAMP() - `last_online`) < {?ap_inactive_since?}';
349 " . $pointsColumns . " AS `points`
351 `{?_MYSQL_PREFIX?}_user_data`
353 `status`='CONFIRMED' AND
354 " . $pointsColumns . " > 0
359 $WHATs[] = 'list_bonus';
360 $DESCRs[] = '{--ADMIN_TASK_LIST_BONUS--}';
361 $TITLEs[] = '{--ADMIN_TASK_LIST_BONUS_TITLE--}';
364 // Again both extensions must be there
365 if ((isExtensionInstalledAndNewer('beg', '0.1.2')) && (isExtensionActive('user'))) {
366 // ----- Begging rallye -----
371 // Autopurge installed?
372 if ((isExtensionActive('autopurge')) && (isAutopurgeInactiveEnabled()) && (getApInactiveSince() > 0)) {
373 // Use last online timestamp to keep inactive members away from here
374 $lastOnline = ' AND (UNIX_TIMESTAMP() - `last_online`) < {?ap_inactive_since?}';
380 `{?_MYSQL_PREFIX?}_user_data`
382 `status`='CONFIRMED' AND
388 $WHATs[] = 'list_beg';
389 $DESCRs[] = '{--ADMIN_TASK_LIST_BEG--}';
390 $TITLEs[] = '{--ADMIN_TASK_LIST_BEG_TITLE--}';
393 if (isExtensionActive('doubler')) {
394 // List waiting payouts
395 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_doubler` WHERE `completed`='N' ORDER BY `id` ASC");
396 $WHATs[] = 'list_doubler&do=waiting&select=all';
397 $DESCRs[] = '{--ADMIN_TASK_LIST_DOUBLER_WAITING--}';
398 $TITLEs[] = '{--ADMIN_TASK_LIST_DOUBLER_WAITING_TITLE--}';
399 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_doubler` ORDER BY `id` ASC');
400 $WHATs[] = 'list_doubler';
401 $DESCRs[] = '{--ADMIN_TASK_LIST_DOUBLER_ALL--}';
402 $TITLEs[] = '{--ADMIN_TASK_LIST_DOUBLER_ALL_TITLE--}';
406 // All referral banner
408 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `id` ASC');
409 $WHATs[] = 'refbanner';
410 $DESCRs[] = '{--ADMIN_TASK_LIST_REFBANNER_ALL--}';
411 $TITLEs[] = '{--ADMIN_TASK_LIST_REFBANNER_ALL_TITLE--}';
414 // All activated referral banner
416 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `visible`='Y' ORDER BY `id` ASC");
417 $WHATs[] = 'refbanner';
418 $DESCRs[] = '{--ADMIN_TASK_LIST_REFBANNER_ACTIVE--}';
419 $TITLEs[] = '{--ADMIN_TASK_LIST_REFBANNER_ACTIVE_TITLE--}';
424 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_extensions` ORDER BY `id` ASC');
425 $WHATs[] = 'extensions';
426 $DESCRs[] = '{--ADMIN_TASK_LIST_EXTENSIONS_ALL--}';
427 $TITLEs[] = '{--ADMIN_TASK_LIST_EXTENSIONS_ALL_TITLE--}';
430 // All activated extensions
432 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `ext_active`='Y' ORDER BY `id` ASC");
433 $WHATs[] = 'extensions&active=Y';
434 $DESCRs[] = '{--ADMIN_TASK_LIST_EXTENSIONS_ACTIVE--}';
435 $TITLEs[] = '{--ADMIN_TASK_LIST_EXTENSIONS_ACTIVE_TITLE--}';
437 if (isExtensionActive('sponsor')) {
439 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` ORDER BY `id` ASC');
440 $WHATs[] = 'list_sponsor';
441 $DESCRs[] = '{--ADMIN_TASK_LIST_SPONSOR--}';
442 $TITLEs[] = '{--ADMIN_TASK_LIST_SPONSOR_TITLE--}';
444 // List confirmed sponsor accounts
445 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `status`='CONFIRMED' ORDER BY `id` ASC");
446 $WHATs[] = 'list_sponsor';
447 $DESCRs[] = '{--ADMIN_TASK_LIST_SPONSOR_CONFIRMED--}';
448 $TITLEs[] = '{--ADMIN_TASK_LIST_SPONSOR_CONFIRMED_TITLE--}';
450 // List unconfirmed sponsor accounts
451 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `status`='UNCONFIRMED' ORDER BY `id` ASC");
452 $WHATs[] = 'list_sponsor';
453 $DESCRs[] = '{--ADMIN_TASK_LIST_SPONSOR_UNCONFIRMED--}';
454 $TITLEs[] = '{--ADMIN_TASK_LIST_SPONSOR_UNCONFIRMED_TITLE--}';
456 // List locked sponsor accounts
457 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `status`='LOCKED' ORDER BY `id` ASC");
458 $WHATs[] = 'list_sponsor';
459 $DESCRs[] = '{--ADMIN_TASK_LIST_SPONSOR_LOCKED--}';
460 $TITLEs[] = '{--ADMIN_TASK_LIST_SPONSOR_LOCKED_TITLE--}';
462 // List waiting sponsor accounts to be approved
463 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `status`='PENDING' ORDER BY `id` ASC");
464 $WHATs[] = 'unlock_sponsor';
465 $DESCRs[] = '{--ADMIN_TASK_LIST_SPONSOR_PENDING--}';
466 $TITLEs[] = '{--ADMIN_TASK_LIST_SPONSOR_PENDING_TITLE--}';
469 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_orders` WHERE `pay_status`='PENDING' ORDER BY `id` ASC");
470 $WHATs[] = 'list_sponsor_pays';
471 $DESCRs[] = '{--ADMIN_TASK_LIST_SPONSOR_ORDERS--}';
472 $TITLEs[] = '{--ADMIN_TASK_LIST_SPONSOR_ORDERS_TITLE--}';
475 if (isExtensionActive('country')) {
476 // List country codes
477 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_countries` ORDER BY `id` ASC');
478 $WHATs[] = 'list_country';
479 $DESCRs[] = '{--ADMIN_TASK_LIST_COUNTRY--}';
480 $TITLEs[] = '{--ADMIN_TASK_LIST_COUNTRY_TITLE--}';
483 if (isExtensionActive('theme')) {
485 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id` ASC');
486 $WHATs[] = 'theme_edit';
487 $DESCRs[] = '{--ADMIN_TASK_LIST_THEME_ALL--}';
488 $TITLEs[] = '{--ADMIN_TASK_LIST_THEME_ALL_TITLE--}';
490 // List active themes
491 addSql("SELECT `id` FROM `{?_MYSQL_PREFIX?}_themes` WHERE `theme_active`='Y' ORDER BY `id` ASC");
492 $WHATs[] = 'theme_edit';
493 $DESCRs[] = '{--ADMIN_TASK_LIST_THEME_ACTIVE--}';
494 $TITLEs[] = '{--ADMIN_TASK_LIST_THEME_ACTIVE_TITLE--}';
497 if (isExtensionActive('admins')) {
498 // List all administrator logins
499 addSql('SELECT `id` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `id` ASC');
500 $WHATs[] = 'admins_edit';
501 $DESCRs[] = '{--ADMIN_TASK_LIST_ADMINS_ALL--}';
502 $TITLEs[] = '{--ADMIN_TASK_LIST_ADMINS_ALL_TITLE--}';
505 if (isExtensionActive('surfbar')) {
506 // List all URLs in surfbar
507 addSql('SELECT `url_id` FROM `{?_MYSQL_PREFIX?}_surfbar_urls` ORDER BY `url_id` ASC');
508 $WHATs[] = 'list_surfbar_urls';
509 $DESCRs[] = '{--ADMIN_TASK_LIST_SURFBAR_URLS_ALL--}';
510 $TITLEs[] = '{--ADMIN_TASK_LIST_SURFBAR_URLS_ALL_TITLE--}';
512 // List all pending URLs in surfbar
513 addSql("SELECT `url_id` FROM `{?_MYSQL_PREFIX?}_surfbar_urls` WHERE `url_status`='PENDING' ORDER BY `url_id` ASC");
514 $WHATs[] = 'unlock_surfbar_urls';
515 $DESCRs[] = '{--ADMIN_TASK_LIST_SURFBAR_URLS_PENDING--}';
516 $TITLEs[] = '{--ADMIN_TASK_LIST_SURFBAR_URLS_PENDING_TITLE--}';
519 if (isExtensionInstalledAndNewer('sql_patches', '0.9.2')) {
520 // Check for wrong "SERVER_NAME" entries
521 addSql('SELECT `server_name_id` FROM `{?_MYSQL_PREFIX?}_server_name_log`');
522 $DESCRs[] = '{--ADMIN_TASK_LIST_SERVER_NAME_LOG--}';
523 $TITLEs[] = '{--ADMIN_TASK_LIST_SERVER_NAME_LOG_TITLE--}';
524 $WHATs[] = 'list_server_name';
527 if (isExtensionInstalled('network')) {
528 // Check for HTTP logging entries
529 addSql('SELECT `network_header_id` FROM `{?_MYSQL_PREFIX?}_network_header_logging`');
530 $DESCRs[] = '{--ADMIN_TASK_LIST_NETWORK_HEADER_LOG--}';
531 $TITLEs[] = '{--ADMIN_TASK_LIST_NETWORK_HEADER_LOG_TITLE--}';
532 $WHATs[] = 'list_network_http_header';
535 // Generate extra overview rows
536 $EXTRAS .= createExtraTaskRows($WHATs, $DESCRs, $TITLEs);
538 // If empty just keep a forced-space left for CSS issues
539 if (empty($EXTRAS)) {
543 // Add compiled string to constant for final template
544 $content['extra_table'] = $EXTRAS;
546 // Simply load the template... :-)
547 loadTemplate('admin_overview_task', FALSE, $content);
551 function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
555 // Sadly this cannot be rewritten to a filter... :(
556 foreach (getSqls() as $sqls) {
558 foreach ($sqls as $key => $sql) {
559 // Run SQL command, get line numbers and free memory
560 $result = sqlQuery($sql, __FUNCTION__, __LINE__);
562 // Prepare array for output
564 'row_descr' => $DESCRs[$key],
568 // Rewrite CSS class if not last entry is reached
569 if ($key < (count($sqls) - 1)) {
570 $content['bottom'] = 'bottom';
573 if ((!ifSqlHasZeroNums($result)) && (!empty($WHATs[$key]))) {
574 if (empty($TITLEs[$key])) {
575 $TITLEs[$key] = '{--ADMIN_TASK_UNKNOWN_LIST_TITLE--}';
577 $content['row_link'] = '<a href="{%url=modules.php?module=admin&what=' . $WHATs[$key] . '%}" title="' . $TITLEs[$key] . '">' . sqlNumRows($result) . '</a>';
579 $content['row_link'] = '0';
583 sqlFreeResult($result);
585 // And insert the final string into extras template
586 $OUT .= loadTemplate('admin_overview_task_rows', TRUE, $content);
590 // Return output in the template
591 return loadTemplate('admin_overview_task_extras', TRUE, $OUT);