X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-welcome.php;h=cd8e84353b284f87c7259b7d593a4d2b7e2bd7c0;hb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;hp=fe2a7e9b85f2bf51b40a4204235cdc3013cbb5a9;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/modules/guest/what-welcome.php b/inc/modules/guest/what-welcome.php index fe2a7e9b85..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] ?>