X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=cfeab36e6f17332876e5a98a055649a73972e1f9;hp=816878d3641ffc909ba7e721c8b59c038c27146d;hb=6f9f29d5caee60a2cceae33a7a53e1b4c7319a0c;hpb=f01652b7b8efac92d97889e312402c4a845c2f14 diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index 816878d364..cfeab36e6f 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 = '{--ADMIN_SPONSOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS--}'; } } else { - // Sponsor not found! - $MSG = ADMIN_SPONSOR_404_1.bigintval($_GET['id']).ADMIN_SPONSOR_404_2; + // Sponsor not found + $message = '{%message,ADMIN_SPONSOR_404=' . bigintval(getRequestElement('id')) . '%}'; } + + // 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] ?>