// Output HTML code directly or 'render' it. You addionally switch the new-line character off
function outputHtml ($htmlCode, $newLine = true) {
// Transfer username
- $username = getUsername();
+ $username = getMessage('USERNAME_UNKNOWN');
+ if (isset($GLOBALS['username'])) $username = getUsername();
// Do we have HTML-Code here?
if (!empty($htmlCode)) {
unset($content);
unset($DATA);
- // Return compiled content
- return compileCode($newContent);
+ // Compile the code and eval it
+ $eval = '$newContent = "' . compileCode(addSmartSlashes($newContent)) . '";';
+ eval($eval);
+
+ // Return content
+ return $newContent;
}
// Send mail out to an email address
$message_user = loadEmailTemplate('order-accept', array(), $DATA['sender']);
// Send email
- sendEmail($DATA['sender'], MEMBER_ORDER_ACCEPTED, $message_user);
+ sendEmail($DATA['sender'], getMessage('MEMBER_ORDER_ACCEPTED'), $message_user);
// Unlock selected email
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='NEW' WHERE `id`=%s AND `data_type`='ADMIN' LIMIT 1",
$mailText = loadEmailTemplate('done-member', $content, $DATA['sender']);
// Send it also waway
- sendEmail($email, MEMBER_SUBJ_SEND_DONE, $mailText);
+ sendEmail($email, getMessage('MEMBER_SUBJ_SEND_DONE'), $mailText);
} // END - if
// Free result
$GLOBALS['raw_request']['get'][$element] = $value;
// Update cache
- $GLOBALS['cache_request']['request_get'][$element][null] = $value;
+ $GLOBALS['cache_request']['request_get'][$element] = $value;
}
// Wrapper for elements in $_POST