} // END - if
// Unconfirmed accounts
- $value = countSumTotalData('UNCONFIRMED', 'user_data', 'userid', 'status', true);
+ $value = getTotalUnconfirmedUser();
if ($value > 0) {
$content['unconfirmed_members'] = '<a href="{%url=modules.php?module=admin&what=chk_regs%}">' . $value . '</a>';
// And locked accounts
- $value = countSumTotalData('LOCKED', 'user_data', 'userid', 'status', true);
+ $value = getTotalLockedUser();
if ($value > 0) {
$content['locked_members'] = '<a href="{%url=modules.php?module=admin&what=list_user&status=locked%}">' . $value . '</a>';
} // END - if
// Autopurge installed?
$lastOnline = '';
- if ((isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) {
+ if ((isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getApInactiveSince() > 0)) {
// Use last online timestamp to keep inactive members away from here
$lastOnline = ' AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})';
} // END - if
// Autopurge installed?
$lastOnline = '';
- if ((isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) {
+ if ((isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getApInactiveSince() > 0)) {
// Use last online timestamp to keep inactive members away from here
$lastOnline = ' AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})';
} // END - if
//
function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
// Init variables
- $OUT = ''; $SW = 2;
+ $OUT = '';
// Sadly this cannot be rewritten to a filter... :(
foreach (getSqls() as $sqls) {
// Prepare array for output
$content = array(
'row_descr' => $DESCRs[$key],
- 'row_sw' => $SW,
'bottom' => '',
);
// And insert the final string into extras template
$OUT .= loadTemplate('admin_overview_task_rows', true, $content);
-
- // Switch color
- $SW = 3 - $SW;
} // END- foreach
} // END - foreach