X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=0.2.1%2Finc%2Fmodules%2Fmember%2Fwhat-welcome.php;h=9dc7e4c6cbb716c205f2ad281314fff4d10101cd;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hp=2053a1fbde97fe51c251ed954135dddf0b9cf512;hpb=157ee010917df5ca07e6d31b42f67417b2516d74;p=mailer.git diff --git a/0.2.1/inc/modules/member/what-welcome.php b/0.2.1/inc/modules/member/what-welcome.php index 2053a1fbde..9dc7e4c6cb 100644 --- a/0.2.1/inc/modules/member/what-welcome.php +++ b/0.2.1/inc/modules/member/what-welcome.php @@ -1,78 +1,78 @@ -
"); - -// Export data for template -define('_LAST_ONLINE_VALUE', MAKE_DATETIME($LAST['online'])); -define('_LAST_MODULE_VALUE', GET_MOD_DESCR("member", $LAST['module'])); - -// Load header template -LOAD_TEMPLATE("member_welcome_header"); - -// Chedk if he is returning from a profile update notification -$result = SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE notified='Y' AND userid=%d LIMIT 1", - array($GLOBALS['userid']), __FILE__, __LINE__); - -if ((SQL_NUMROWS($result) == 1) && (EXT_IS_ACTIVE("profile"))) -{ - // Yes, he is so let's place him his wanted buttons - LOAD_TEMPLATE("profile-update"); -} - else -{ - // Load the template below this default data - LOAD_TEMPLATE("member_welcome"); -} - -// Free memory -SQL_FREERESULT($result); - -// Load footer template -LOAD_TEMPLATE("member_welcome_footer"); - -// -?> +
"); + +// Export data for template +define('_LAST_ONLINE_VALUE', MAKE_DATETIME($LAST['online'])); +define('_LAST_MODULE_VALUE', GET_MOD_DESCR("member", $LAST['module'])); + +// Load header template +LOAD_TEMPLATE("member_welcome_header"); + +// Chedk if he is returning from a profile update notification +$result = SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE notified='Y' AND userid=%d LIMIT 1", + array($GLOBALS['userid']), __FILE__, __LINE__); + +if ((SQL_NUMROWS($result) == 1) && (EXT_IS_ACTIVE("profile"))) +{ + // Yes, he is so let's place him his wanted buttons + LOAD_TEMPLATE("profile-update"); +} + else +{ + // Load the template below this default data + LOAD_TEMPLATE("member_welcome"); +} + +// Free memory +SQL_FREERESULT($result); + +// Load footer template +LOAD_TEMPLATE("member_welcome_footer"); + +// +?>