X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fguest%2Fwhat-welcome.php;h=060c24e76ce67aa2033474641cbf6d6c356e25f9;hb=596c8ab32594401ca84abfbfe35513ddfff31bec;hp=dfb9c4e4d461d580ffd326f3fb03ffccc7b13a12;hpb=f928ad2bed60fa256d0641eaf6d2c027a2944688;p=mailer.git diff --git a/inc/modules/guest/what-welcome.php b/inc/modules/guest/what-welcome.php index dfb9c4e4d4..060c24e76c 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' => 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 -LOAD_TEMPLATE(substr(basename(__FILE__), 5, -4), false, $content); +loadTemplate('welcome', FALSE, $content); -// +// [EOF] ?>