X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_sponsor.php;h=e5588721f4513ca04bd16fc8820554f26a027546;hb=3f51c40f4fede87228216f9285b745a339e3891d;hp=58a59baed3cde224f701dc268f23cbd8592afcd4;hpb=5071030af40e69ca4284642f44758964e18f5be8;p=mailer.git diff --git a/inc/modules/admin/what-unlock_sponsor.php b/inc/modules/admin/what-unlock_sponsor.php index 58a59baed3..e5588721f4 100644 --- a/inc/modules/admin/what-unlock_sponsor.php +++ b/inc/modules/admin/what-unlock_sponsor.php @@ -46,7 +46,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { ADD_DESCR('admin', __FILE__); // Check if admin has submitted form -if (IS_FORM_SENT()) { +if (isFormSent()) { // Does he have selected at least one sponsor? if (countSelection(REQUEST_POST('id')) > 0) { // At least one entry selected @@ -167,12 +167,12 @@ WHERE `id`='%s' LIMIT 1", } // Add seperator - OUTPUT_HTML("
"); + OUTPUT_HTML('
'); } // Begin listing of all pending sponsor accounts $result = SQL_QUERY("SELECT - id, gender, surname, family, email, remote_addr, sponsor_created + `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, `sponsor_created` FROM `{!_MYSQL_PREFIX!}_sponsor_data` WHERE @@ -192,19 +192,19 @@ if (SQL_NUMROWS($result) > 0) { 'gender' => translateGender($content['gender']), 'surname' => $content['surname'], 'family' => $content['family'], - 'email' => "mailto:".$content['email'], + 'email' => generateEmailLink($content['email'], 'sponsor_data'), 'remote' => $content['remote_addr'], 'created' => generateDateTime($content['sponsor_created'], '2'), ); // Load row template and switch colors - $OUT .= LOAD_TEMPLATE("admin_unlock_sponsor_row", true, $content); + $OUT .= LOAD_TEMPLATE('admin_unlock_sponsor_row', true, $content); $SW = 3 - $SW; } define('__SPONSOR_ROWS', $OUT); // Load template - LOAD_TEMPLATE("admin_unlock_sponsor"); + LOAD_TEMPLATE('admin_unlock_sponsor'); } else { // No pending accounts found LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_PENDING'));