Files
@ r29:f2b665ecdc34
Branch filter:
Location: public/ws-vacation/test/check-qp.php
r29:f2b665ecdc34
3.3 KiB
text/x-php
doc/index-template.txt: use jQuery to display screenshots as dialogs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | <?php // -*- php -*-
// Copyright (C) 2012, Wolfgang Scherer, <Wolfgang.Scherer at gmx.de>
// Sponsored by WIEDENMANN SEILE GMBH, http://www.wiedenmannseile.de
//
// This file is part of Wiedenmann Vacation.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>,
// or write to Wolfgang Scherer, <Wolfgang.Scherer at gmx.de>
// $_REQUEST['_DEBUG_'] = 1;
// $_REQUEST['_DEBUG_TEST_'] = 1;
require_once(dirname(__FILE__) . '/../lib/util.php');
echo "--------------------------------------------------\n";
$subject = '$SUBJECT';
$subject = 'Re: ?= $SUBJECT$SUBJECT, äöü ?=$SUBJECT';
$subject = subject_quoted_printable_encode($subject);
echo 'Subject: ' . $subject . "\n";
// var_dump($subject_partsq);
echo "--------------------------------------------------\n";
$sencoded = $subject . '+' . $subject;
$subject = subject_quoted_printable_decode($sencoded);
echo 'Subject: ' . $subject . "\n";
echo "--------------------------------------------------\n";
echo "vacation_split: undecoded\n";
echo "--------------------------------------------------\n";
$msg = get_text('vacation');
$vacationa = vacation_split($msg, False);
$subject = $vacationa[0];
$headers = $vacationa[1];
$body = $vacationa[2];
$msg = vacation_join($subject, $body, $headers);
echo $msg."\n";
echo "--------------------------------------------------\n";
echo "vacation_split: decoded\n";
echo "--------------------------------------------------\n";
$vacationa = vacation_split($msg, True);
$subject = $vacationa[0];
$headers = $vacationa[1];
$body = $vacationa[2];
$msg = vacation_join($subject, $body);
echo $msg."\n";
echo "--------------------------------------------------\n";
$vacationa = vacation_split($msg, True);
$subject = $vacationa[0];
$headers = $vacationa[1];
$body = $vacationa[2];
$msg = vacation_join($subject . 'äöü', $body);
echo $msg."\n";
echo "--------------------------------------------------\n";
$vacationa = vacation_split($msg, True);
$subject = $vacationa[0];
$headers = $vacationa[1];
$body = $vacationa[2];
echo 'Subject: '.$subject."\n";
echo 'Headers: '. $headers."\n";
echo 'Body: '.$body."\n";
echo "--------------------------------------------------\n";
$msg = vacation_join($subject, $body);
echo $msg."\n";
//
// :ide-menu: Emacs IDE Menu - Buffer @BUFFER@
// . M-x `eIDE-menu' ()(eIDE-menu "z")
// :ide: COMPILE: PHP _DEBUG_=2 _DEBUG_TEST_=2
// . (compile (concat "php " (file-name-nondirectory (buffer-file-name)) " _DEBUG_=2 _DEBUG_TEST_=2"))
// :ide: QUO: $this->
// . (insert "$this->" )
// :ide: COMPILE: PHP w/o args
// . (compile (concat "php " (file-name-nondirectory (buffer-file-name)) ""))
// :ide: COMPILE: PHP _DEBUG_=1 _DEBUG_TEST_=1
// . (compile (concat "php " (file-name-nondirectory (buffer-file-name)) " _DEBUG_=1 _DEBUG_TEST_=1"))
//
// Local Variables:
// mode: php
// End:
?>
|