X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-edit_sponsor.php;h=455d3c7fa6d727b5283671bfe514e70a0e6404ce;hb=b748f2cc85e5f019b76ea0fbbeb03a35b8fc304b;hp=1fe5197c2ef232d1e48fef9f0131e2a26aebe8f5;hpb=e5dffd4249c97200cbad02f3f4eaf5c373fdb89a;p=mailer.git diff --git a/inc/modules/admin/what-edit_sponsor.php b/inc/modules/admin/what-edit_sponsor.php index 1fe5197c2e..455d3c7fa6 100644 --- a/inc/modules/admin/what-edit_sponsor.php +++ b/inc/modules/admin/what-edit_sponsor.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__); if ((isGetRequestElementSet('id')) && (isGetRequestElementSet('do'))) { // Check for selected sponsor $result_main = sqlQueryEscaped("SELECT - `id`, `company`, `position`, `gender`, `surname`, `family`, + `id`, `company`, `position`, `sex`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`, `phone`, `fax`, `cell`, `email`, `url`, `tax_ident`, `receive_warnings`, `warning_interval` @@ -65,7 +65,7 @@ LIMIT 1", $content['warning_interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh'); // Init variables here - $TPL = sprintf("admin_edit_sponsor_%s", getRequestElement('do')); + $TPL = sprintf('admin_edit_sponsor_%s', getRequestElement('do')); initSqls(); // Sponsor was found @@ -79,7 +79,11 @@ LIMIT 1", // Add points to account sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET `points_amount`=`points_amount`+%s WHERE `id`=%s LIMIT 1", - array($points, bigintval(getRequestElement('id'))), __FILE__, __LINE__); + array( + $points, + bigintval(getRequestElement('id')) + ), __FILE__, __LINE__ + ); // Remember points /reason for the template $content['points'] = $points; @@ -134,7 +138,7 @@ LIMIT 1", handleSponsorRequest(postRequestArray()); // Convert some data for the email template - postRequestElement('gender' , '{%pipe,translateGender=' . postRequestElement('gender') . '%}'); + postRequestElement('sex' , '{%pipe,translateSex=' . postRequestElement('sex') . '%}'); postRequestElement('warning_interval', '{%pipe,createFancyTime=' . postRequestElement('warning_interval') . '%}'); if ($PASS === FALSE) setPostRequestElement('password1', '{--SPONSOR_PASS_UNCHANGED--}'); @@ -145,10 +149,10 @@ LIMIT 1", break; default: // Unknown mode - logDebugMessage(__FILE__, __LINE__, sprintf("Unknown mode %s detected.", getRequestElement('do'))); + logDebugMessage(__FILE__, __LINE__, sprintf('Unknown mode %s detected.', getRequestElement('do'))); $message = '{%message,ADMIN_SPONSOR_INVALID_MODE=' . getRequestElement('do') . '%}'; break; - } + } // END - switch if (!empty($message)) { // Output message