X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fprimera_functions.php;h=baf88c8796b5bf106a82eef3da02119d7e957a9e;hp=7d58b8ee74f06a23e26d31f26f74944eabdcb25a;hb=0715fa7aa8e5e70bcf1d957fb09ae655c3896c4e;hpb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c diff --git a/inc/libs/primera_functions.php b/inc/libs/primera_functions.php index 7d58b8ee74..baf88c8796 100644 --- a/inc/libs/primera_functions.php +++ b/inc/libs/primera_functions.php @@ -55,6 +55,7 @@ * @version 1.0 - beta * @copyright (c) 2007 by Primusportal.de * @copyright (c) 2008 by Roland Haeder + * @copyright 2009, 2010 by Mailer Developer Team */ class PrimeraApi { /** @@ -236,7 +237,7 @@ class PrimeraApi { // is not false the API data is valid, else invalid function testPrimeraApi () { // Get new instance - $api = new PrimeraApi(postRequestElement('primera_api_name'), postRequestElement('primera_api_md5')); + $api = new PrimeraApi(postRequestParameter('primera_api_name'), postRequestParameter('primera_api_md5')); // Was that fine? return ($api->getPrimera() !== false); @@ -257,7 +258,7 @@ function executePrimeraWithdraw ($primusNick, $userMd5, $amount) { $api = new PrimeraApi($primusNick, $userMd5); // Prepare purpose - eval("\$purpose = \"".compileRawCode(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid')))."\";"); + eval('$purpose = "' . preCompileCode(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid'))) . '";'); // Pay the Primera return $api->payPrimera($primusNick, $amount, $purpose); @@ -269,7 +270,7 @@ function executePrimeraPayout ($primusNick, $userMd5, $amount) { $api = new PrimeraApi(getConfig('primera_api_name'), getConfig('primera_api_md5')); // Prepare purpose - eval("\$purpose = \"".compileRawCode(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId()))."\";"); + eval('$purpose = "' . preCompileCode(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId())) . '";'); // Pay the Primera return $api->payPrimera($primusNick, $amount, $purpose);