X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_sponsor.php;h=8e441949871cbf04612b572fc1e0b250c251851d;hb=c5173c4d66be7ec72fbf8051a2097cbb377e87a0;hp=633a7c79bc637c90df3fdce967f1ab11f655294b;hpb=1e651767aee72496f6af1a50784919afcde7a0eb;p=mailer.git diff --git a/inc/modules/admin/what-del_sponsor.php b/inc/modules/admin/what-del_sponsor.php index 633a7c79bc..8e44194987 100644 --- a/inc/modules/admin/what-del_sponsor.php +++ b/inc/modules/admin/what-del_sponsor.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -43,11 +41,11 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (isGetRequestParameterSet('id')) { // Check for selected sponsor - $result = SQL_QUERY_ESC("SELECT email, gender, surname, family FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`='%s' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `id`, `email`, `gender`, `surname`, `family` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1", array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Remove sponsor @@ -56,7 +54,6 @@ if (isGetRequestParameterSet('id')) { $content = SQL_FETCHARRAY($result); // Prepare data for the template - $content['gender'] = translateGender($content['gender']); $content['reason'] = secureString(postRequestParameter('reason')); // Prepare message and send it away @@ -64,7 +61,7 @@ if (isGetRequestParameterSet('id')) { sendEmail($content['email'], '{--ADMIN_SPONSOR_DELETE_SUBJECT--}', $message); // Remove account - SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`='%s' LIMIT 1", + SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1", array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__); // Remove orders @@ -81,11 +78,10 @@ if (isGetRequestParameterSet('id')) { $content = SQL_FETCHARRAY($result); // Transfer data to constants for the template - $content['gender'] = translateGender($content['gender']); $content['userid'] = bigintval(getRequestParameter('id')); // Display form - loadTemplate('admin_del_sponsor', false, $content); + loadTemplate('admin_delete_sponsor', false, $content); } } else { // Sponsor not found!