X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-welcome.php;h=91f3becd65379d918012b2fe31a75fb936cf6902;hb=15d03825972c38fbd95abad41f304c7494c5a70e;hp=51e3c47f4bfcf75f7c1a259bf7102bb31acdc867;hpb=3fc48d57e44aec36f8edc4574c4e7cdf18bb49de;p=mailer.git diff --git a/inc/modules/guest/what-welcome.php b/inc/modules/guest/what-welcome.php index 51e3c47f4b..91f3becd65 100644 --- a/inc/modules/guest/what-welcome.php +++ b/inc/modules/guest/what-welcome.php @@ -1,7 +1,7 @@ 0", __FILE__, __LINE__); - -// Fetch rows -list($cnt) = SQL_FETCHROW($result); - -// Free result -SQL_FREERESULT($result); +addMenuDescription('guest', __FILE__); // Prepare content -$content = array( - 'register' => TRANSLATE_COMMA($_CONFIG['points_register']), - 'ref_levels' => $cnt, - 'ref_points' => TRANSLATE_COMMA($_CONFIG['points_ref']) -); +$content['ref_levels'] = countSumTotalData('', 'refdepths', 'id', '', true, ' WHERE `level` > 0'); // Load default template -LOAD_TEMPLATE(substr(basename(__FILE__), 5, -4), false, $content); +loadTemplate('welcome', false, $content); -// +// [EOF] ?>