X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-welcome.php;h=cd8e84353b284f87c7259b7d593a4d2b7e2bd7c0;hb=20741b93fd58620af677a7f1039ffd16ea6ec689;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..cd8e84353b 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); +addYouAreHereLink('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] ?>