X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fprimera_functions.php;h=9adf85660da902ad58776ae32d0354e909665679;hb=64bd945ec270b9ed5e0a2490b5631e02d4dc62d8;hp=7d58b8ee74f06a23e26d31f26f74944eabdcb25a;hpb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c;p=mailer.git diff --git a/inc/libs/primera_functions.php b/inc/libs/primera_functions.php index 7d58b8ee74..9adf85660d 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 { /** @@ -111,7 +112,7 @@ class PrimeraApi { var $errno = '0'; var $err = ''; - var $seperator = ':'; + var $separator = ':'; var $username = ''; var $password = ''; @@ -159,7 +160,7 @@ class PrimeraApi { function parseContent ( $content ) { $x = explode("\n", $content); $return = array(); - foreach($x as $currentLine) { + foreach ($x as $currentLine) { $line_exploded = explode(':', $currentLine,2); if (count($line_exploded) > 1) { $return[$line_exploded[0]] = $line_exploded[1]; @@ -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 = "' . doFinalCompilation(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid')), true) . '";'); // 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 = "' . doFinalCompilation(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId()), true) . '";'); // Pay the Primera return $api->payPrimera($primusNick, $amount, $purpose);