X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=00b2e2560a6390870392c168ae4a8976660432cc;hb=a44235215a481489b76a39269cf98b170901186b;hp=2d22e80e03f0b707496ac3991edfa57606a3a997;hpb=9beb33ae0c3194b05d172508768a833b1b69af2f;p=mailer.git diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index 2d22e80e03..00b2e2560a 100644 --- a/inc/modules/admin/what-lock_sponsor.php +++ b/inc/modules/admin/what-lock_sponsor.php @@ -1,7 +1,7 @@ ".__SALUT." ".__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 - { + } else { // Cannot change status on unconfirmed or pending accounts! - $MSG = ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS; + $message = '{--ADMIN_SPONSOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS--}'; } + } else { + // Sponsor not found + $message = getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))); } - else - { - // Sponsor not found! - $MSG = ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['id'].ADMIN_SPONSOR_404_2; - } -} - else -{ + + // Free result + SQL_FREERESULT($result_sponsor); +} else { // Not called by what-list_sponsor.php - $MSG = ADMIN_CALL_NOT_DIRECTLY; + $message = '{--ADMIN_CALL_NOT_DIRECTLY--}'; } -if (!empty($MSG)) -{ +if (!empty($message)) { // Output message - LOAD_TEMPLATE("admin_settings_saved", false, $MSG); -} -// + displayMessage($message); +} // END - if + +// [EOF] ?>