From: Roland Häder Date: Sun, 21 Oct 2012 12:40:14 +0000 (+0000) Subject: Some minor improvements X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b3055f6c5889383a78eace62230ca4be55acee43;p=mailer.git Some minor improvements --- diff --git a/click.php b/click.php index c3659428ea..e323b7639d 100644 --- a/click.php +++ b/click.php @@ -54,7 +54,7 @@ setContentType('text/html'); // 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) diff --git a/inc/config-local.php.dist b/inc/config-local.php.dist index 348ecbb728..d98b9dc8a5 100644 --- a/inc/config-local.php.dist +++ b/inc/config-local.php.dist @@ -101,7 +101,7 @@ setConfigEntry('DEBUG_TEMPLATE_CACHE', 'N'); // 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 ;-) ) diff --git a/inc/libs/task_functions.php b/inc/libs/task_functions.php index 4184c6722a..a46d8323a9 100644 --- a/inc/libs/task_functions.php +++ b/inc/libs/task_functions.php @@ -100,7 +100,7 @@ function outputAdvancedOverview (&$result_main) { // Unconfirmed accounts $value = getTotalUnconfirmedUser(); if ($value > 0) { - $content['unconfirmed_members'] = '' . $value . ''; + $content['unconfirmed_members'] = '' . $value . ''; } // END - if // Locked accounts diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index e5fe404f48..5ddcf36369 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -990,14 +990,13 @@ function removeReceiver (&$receivers, $key, $userid, $poolId, $statsId = 0, $isB // 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, @@ -1005,6 +1004,7 @@ function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatemen ), __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, diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 31e30cbefe..c6bb6cb804 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1222,6 +1222,7 @@ function getTotalConfirmedUser () { } // END - if // Return cached value + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]); return $GLOBALS[__FUNCTION__]; } @@ -1238,6 +1239,7 @@ function getTotalUnconfirmedUser () { } // END - if // Return cached value + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]); return $GLOBALS[__FUNCTION__]; } @@ -1254,6 +1256,7 @@ function getTotalLockedUser () { } // END - if // Return cached value + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]); return $GLOBALS[__FUNCTION__]; } @@ -1270,6 +1273,7 @@ function getTotalRandomRefidUser () { } // END - if // Return cached value + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, __FUNCTION__ . '()=' . $GLOBALS[__FUNCTION__]); return $GLOBALS[__FUNCTION__]; }