// Run filter chain
runFilterChain('handle_click_php');
-// Load index page
+// Load index page (if click.php call was not detected)
redirectToUrl('modules.php?module=index');
// Shutdown (if reached)
// CFG: DEBUG-REGEX (comment in to debug regular expressions)
//setConfigEntry('DEBUG_REGEX', 'Y');
-// CFG: ALLOW-TESTER0ACCOUNTS (comment in to allow tester accounts being re-included)
+// CFG: ALLOW-TESTER-ACCOUNTS (comment in to allow tester accounts being re-included)
//setConfigEntry('ALLOW_TESTER_ACCOUNTS', 'Y');
// Your MySQL data (we don't like M$ SQL ;-) )
// Unconfirmed accounts
$value = getTotalUnconfirmedUser();
if ($value > 0) {
- $content['unconfirmed_members'] = '<a href="{%url=modules.php?module=admin&what=list_user&status=UNCONFIRMED%}">' . $value . '</a>';
+ $content['unconfirmed_members'] = '<a href="{%url=modules.php?module=admin&what=list_user&status=unconfirmed%}">' . $value . '</a>';
} // END - if
// Locked accounts
// Calculate sum (default) or count records of given criteria
function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatement = 'userid', $countRows = FALSE, $add = '', $mode = '=') {
- // Init count/sum
- $data['res'] = '0';
-
+ // Debug message
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'search=' . $search . ',tableName=' . $tableName . ',lookFor=' . $lookFor . ',whereStatement=' . $whereStatement . ',add=' . $add);
if ((empty($search)) && ($search != '0')) {
// Count or sum whole table?
if ($countRows === TRUE) {
// Count whole table
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'COUNT!');
$result = SQL_QUERY_ESC('SELECT COUNT(`%s`) AS `res` FROM `{?_MYSQL_PREFIX?}_%s`' . $add . ' LIMIT 1',
array(
$lookFor,
), __FUNCTION__, __LINE__);
} else {
// Sum whole table
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'SUM!');
$result = SQL_QUERY_ESC('SELECT SUM(`%s`) AS `res` FROM `{?_MYSQL_PREFIX?}_%s`' . $add . ' LIMIT 1',
array(
$lookFor,
} // END - if
// Return cached value
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]);
return $GLOBALS[__FUNCTION__];
}
} // END - if
// Return cached value
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]);
return $GLOBALS[__FUNCTION__];
}
} // END - if
// Return cached value
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]);
return $GLOBALS[__FUNCTION__];
}
} // END - if
// Return cached value
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]);
return $GLOBALS[__FUNCTION__];
}