Changeset - r27:4d96cfceba10
[Not reviewed]
v0.7 default
0 2 0
Wolfgang Scherer (ws) - 13 years ago 2012-03-31 21:18:55
wolfgang.scherer@gmx.de
index.php: cut'n'paste error fixed.
2 files changed with 16 insertions and 2 deletions:
0 comments (0 inline, 0 general)
index.php
Show inline comments
 
@@ -457,13 +457,13 @@ if ($x_wsv_raw || $EXPERT_ENABLED)
 
        $text_rows = 5;
 
    }
 
    $form[] = sshl(get_text('expert_mode'));
 
    // raw message
 
    $form[] = sprintf('<span class="label">%s<sup>*</sup>:</span>', get_text('message'));
 
    $form[] = (
 
        '<textarea name="body" cols="56" rows="'.$text_rows.'"'
 
        '<textarea name="message" cols="56" rows="'.$text_rows.'"'
 
        .' style="vertical-align: top; width: 440px;">' . htmlspecialchars($vacation_msg, ENT_NOQUOTES, "UTF-8") . '</textarea><br />');
 

	
 
    $form[] = '<span class="label">&nbsp;</span>';
 
    $form[] = (
 
        '<span style="display: inline-block; width: 440px; margin-top: 5px; font-size: 8pt;">'
 
        . get_text('explain_expert')
lib/util.php
Show inline comments
 
@@ -295,14 +295,28 @@ function message_split($message)
 
        {
 
            $headers[$current_field] .= "\n" . $line;
 
            continue;
 
        }
 
        $headers[] = $line;
 
    }
 
    $body = implode($lines, "\n");
 

	
 
    $body = implode($lines, "\n");
 
    global $_debug;
 
    if ( $_debug ) {
 
        echo "<pre>\n";
 
        echo "--------------------------------------------------\n";
 
        echo "headers\n";
 
        echo "--------------------------------------------------\n";
 
        var_dump($headers);
 
        echo "--------------------------------------------------\n";
 
        echo "body\n";
 
        echo "--------------------------------------------------\n";
 
        var_dump($body);
 
        echo "</pre>\n";
 
    }
 

	
 
    return Array($headers, $body);
 
}
 

	
 
function message_join($headers, $body)
 
{
 
    return sprintf("%s\n\n%s", implode($headers, "\n"), $body);
0 comments (0 inline, 0 general)