X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=fa24ea418059e29f132997310c814ba81afb0c38;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hp=2cfe38d92fed4f353e9f9efdd7e1a979dc9e4701;hpb=5bdeaf8b452206598b6c6cd4f941145b11a0eccc;p=mailer.git diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index 2cfe38d92f..fa24ea4180 100644 --- a/inc/modules/admin/what-lock_sponsor.php +++ b/inc/modules/admin/what-lock_sponsor.php @@ -1,7 +1,7 @@ ".__GENDER." ".__SURNAME." ".__FAMILY.""); + $content['email_link'] = '' . $content['gender'] . ' ' . $content['surname'] . ' ' . $content['family'] . ''; // Display form - LOAD_TEMPLATE("admin_lock_sponsor"); + loadTemplate('admin_lock_sponsor', false, $content); } } else { // Cannot change status on unconfirmed or pending accounts! - $MSG = ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS; + $message = getMessage('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS'); } } else { // Sponsor not found! - $MSG = ADMIN_SPONSOR_404_1.bigintval($_GET['id']).ADMIN_SPONSOR_404_2; + $message = getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))); } + + // Free result + SQL_FREERESULT($result_sponsor); } else { // Not called by what-list_sponsor.php - $MSG = ADMIN_CALL_NOT_DIRECTLY; + $message = getMessage('ADMIN_CALL_NOT_DIRECTLY'); } -if (!empty($MSG)) { +if (!empty($message)) { // Output message - LOAD_TEMPLATE("admin_settings_saved", false, $MSG); -} -// + loadTemplate('admin_settings_saved', false, $message); +} // END - if + +// [EOF] ?>