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];
$api = new PrimeraApi($primusNick, $userMd5);
// Prepare purpose
- eval('$purpose = "' . preCompileCode(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);
$api = new PrimeraApi(getConfig('primera_api_name'), getConfig('primera_api_md5'));
// Prepare purpose
- eval('$purpose = "' . preCompileCode(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);