X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=dff0cb7793e00706148f1393a3e841a49422fda8;hp=834aab41f51a630c7fc84b4e7358ee48bc07011c;hb=0f3a135204757cc8750262871c8e62c42300acb4;hpb=cca98f57dff720b174d21d071cee8303462485d7 diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index 834aab41f5..dff0cb7793 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(getRequestParameter('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] ?>