X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Fsponsor_functions.php;h=ee59586f50d798230b1e80d1961af8d6f1b4672d;hb=797955d491179ef77612e476a2079ed5563f1a93;hp=7606738e22c41b0ecc2f6e7eac8abc4ace5d0473;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git
diff --git a/inc/libs/sponsor_functions.php b/inc/libs/sponsor_functions.php
index 7606738e22..ee59586f50 100644
--- a/inc/libs/sponsor_functions.php
+++ b/inc/libs/sponsor_functions.php
@@ -18,6 +18,7 @@
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -137,7 +138,7 @@ function handlSponsorRequest (&$postData, $update=false, $messageArray=array(),
// Remove last ", " from SQL string
$sql = substr($sql, 0, -2)." WHERE `id`='%s' LIMIT 1";
- $DATA['values'][] = bigintval(getRequestElement('id'));
+ $DATA['values'][] = bigintval(getRequestParameter('id'));
// Generate message
$message = getMessageFromIndexedArray(getMessage('ADMIN_SPONSOR_UPDATED'), 'updated', $messageArray);
@@ -176,7 +177,7 @@ function handlSponsorRequest (&$postData, $update=false, $messageArray=array(),
foreach ($postData as $k => $v) {
// Do not add 'force' !
if ($k != 'force') {
- $OUT .= "\n";
+ $OUT .= '';
} // END - if
} // END - foreach
@@ -189,7 +190,7 @@ function handlSponsorRequest (&$postData, $update=false, $messageArray=array(),
return;
} else {
// Already added!
- $message = sprintf(getMessage('SPONSOR_ALREADY_FOUND'), $postData['email']);
+ $message = getMaskedMessage('SPONSOR_ALREADY_FOUND', $postData['email']);
$ret = 'already';
}
@@ -224,7 +225,7 @@ function sponsorTranslateUserStatus ($status) {
} else {
// Not found!
logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
- $ret = sprintf(getMessage('UNKNOWN_STATUS'), $status);
+ $ret = getMaskedMessage('UNKNOWN_STATUS', $status);
}
return $ret;
}
@@ -294,7 +295,7 @@ ORDER BY `sort`",
$content = merge_array($content, $content2);
// Check if current selected menu is matching the loaded one
- if ($current == $content['sub_what']) $content['sub_title'] = "".$content['sub_title']."";
+ if ($current == $content['sub_what']) $content['sub_title'] = '' . $content['sub_title'] . '';
// Prepare data for the sub template
$content = array(
@@ -343,7 +344,7 @@ function addSponsorContent ($what) {
loadIncludeOnce($INC);
} else {
// File not found!
- $OUT .= loadTemplate('admin_settings_saved', true, sprintf(getMessage('SPONSOR_CONTENT_404'), $what));
+ $OUT .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
}
// Return content
@@ -465,7 +466,7 @@ function saveSponsorData ($postData, $content) {
default: // Unknown sponsor what value!
logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown sponsor module (what) %s detected.", getWhat()));
- $message = sprintf(getMessage('SPONSOR_UNKNOWN_WHAT'), getWhat());
+ $message = getMaskedMessage('SPONSOR_UNKNOWN_WHAT', getWhat());
$templ = ''; $subj = '';
break;
}