X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-welcome.php;h=3c5aa1b02f297cd92e8fa15de84d31a2aa71047b;hb=7db85bc0c45b62c28ba49e728f489ad4bc1c115f;hp=f7e6f350cfa427c6260815294fa42fdd153cc659;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/modules/guest/what-welcome.php b/inc/modules/guest/what-welcome.php index f7e6f350cf..3c5aa1b02f 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(getConfig('points_register')), - 'ref_levels' => $cnt, - 'ref_points' => TRANSLATE_COMMA(getConfig('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] ?>