// Expression call-back for dynamic messages
function doExpressionMessage ($data) {
// Message string replacement depends on if message is masked
- if (isMessageMasked($data['callback'])) {
+ if ((isMessageMasked($data['callback'])) && ((!empty($data['extra_func'])) || ($data['extra_func'] == '0'))) {
// Message should be masked
$replacer = "{DQUOTE} . getMaskedMessage('" . $data['callback'] . "', '" . $data['extra_func'] . "') . {DQUOTE}";
} else {
// Main compilation loop
function doFinalCompilation ($code, $insertComments = true) {
- // Insert comments?
+ // Insert comments? (Only valid with HTML templates, of course)
enableTemplateHtml($insertComments);
// Init counter
// Compile it
//* DEBUG: */ print '<pre>'.htmlentities($code).'</pre>';
$eval = '$newContent = "' . str_replace('{DQUOTE}', '"', compileCode(escapeQuotes($code))) . '";';
- //* DEBUG: */ die('<pre>'.htmlentities($eval).'</pre>');
+ //* DEBUG: */ if ($insertComments) die('<pre>'.linenumberCode($eval).'</pre>');
eval($eval);
//* DEBUG: */ die('<pre>'.htmlentities($newContent).'</pre>');
$content['city'] = SQL_ESCAPE(postRequestParameter('city'));
$content['email'] = SQL_ESCAPE(postRequestParameter('email'));
- // Prepare country selection box
- $OUT = "<select name=\"country_code\" class=\"guest_select\" size=\"1\">\n";
+ // The admin may see all
$whereStatement = "WHERE `is_active`='Y'";
if (isAdmin()) $whereStatement = '';
+
+ // Prepare country selection box
+ $OUT = '<select name="country_code" class="guest_select" size="1">';
$OUT .= generateOptionList('countries', 'id', 'descr', postRequestParameter('country_code'), 'code', $whereStatement);
- $OUT .= "</select>";
+ $OUT .= '</select>';
$content['country'] = $OUT;
// Set must-fillout fields