X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-welcome.php;h=91f3becd65379d918012b2fe31a75fb936cf6902;hb=537df432292cb0aa63070479258e3e84b182a28b;hp=58569f567307d8a5d362d15183f36027ef6b9d8a;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/modules/guest/what-welcome.php b/inc/modules/guest/what-welcome.php index 58569f5673..91f3becd65 100644 --- a/inc/modules/guest/what-welcome.php +++ b/inc/modules/guest/what-welcome.php @@ -40,29 +40,16 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // Add description as navigation point addMenuDescription('guest', __FILE__); -// Count referal levels -$result = SQL_QUERY("SELECT COUNT(`id`) FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0", __FILE__, __LINE__); - -// Fetch rows -list($cnt) = SQL_FETCHROW($result); - -// Free result -SQL_FREERESULT($result); - // Prepare content -$content = array( - 'register' => translateComma(getConfig('points_register')), - 'ref_levels' => $cnt, - 'ref_points' => translateComma(getConfig('points_ref')) -); +$content['ref_levels'] = countSumTotalData('', 'refdepths', 'id', '', true, ' WHERE `level` > 0'); // Load default template -loadTemplate(substr(basename(__FILE__), 5, -4), false, $content); +loadTemplate('welcome', false, $content); // [EOF] ?>