Source for file decodeheader.php
Documentation is available at decodeheader.php
-  * SquirrelMail Test Plugin 
-  * This page tests the decodeHeader function. 
-  * @copyright 2006-2020 The SquirrelMail Project Team 
-  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-  * @version $Id: decodeheader.php 14845 2020-01-07 08:09:34Z pdontthink $ 
- include_once('../../include/init.php'); 
- include_once(SM_PATH - .  'functions/mime.php');
 
- global $oTemplate, $color; 
- $header - =  array("< &  \xC3",                   // plain text
 
-                 '=?iso-8859-1?Q?=3C_&__=C3?=', // Q encoding 
-                 '=?iso-8859-1?B?PCAmICDD?=',   // B encoding 
-                 '=?utf-8?Q?=3C_&__=C3=80?=',   // Q encoding other charset 
-                 '=?utf-8?B?PCAmICDDgA==?=',    // B encoding other charset 
- if (sqGetGlobalVar('lossy', $lossy, SQ_GET)) { 
-         if ($default_charset - ==  'utf-8')
 
-             $default_charset - =  'iso-8859-1';
 
- // NOTE: Not bothering to "templatize" the following output, since 
- //       this plugin is merely an administrative (and not user-facing) 
- //       tool.  If this is really important to you, please help by 
- //       submitting the work to the team. 
- echo  "<strong>decodeHeader() Test:</strong>\n";
- if ($default_charset - ==  'utf-8'- ||  $lossy_encoding) {
 
-     echo  '<p><a href="decodeheader.php?lossy=0">Test with lossy_encoding OFF</a></p>';
-     echo  '<p><a href="decodeheader.php?lossy=1">Test with lossy_encoding ON</a></p>';
- echo  '<p>Default charset: '- .  $default_charset- .  "<br />\n"
-    .  'Lossy_encoding: '- .  ($lossy_encoding- ?  'true'- :  'false')- .  '</p>';
- echo  '<p>The results of this test depend on your current language (translation) selection (see Options==>Display Preferences) (and the character set it employs) and your $lossy_encoding setting (see config/config.php or conf.pl ==> 10 ==> 5).</p>';
- echo  "(MDN) 000:\n html chars are not encoded,\n space is not encoded,\n 8bit chars are unmodified\n";
- foreach ($header as $test) { 
- echo  "(compose) 001:\n html chars are not encoded,\n space is not encoded,\n 8bit chars may be converted or not (depends on \$lossy_encoding and \$default_charset)\n";
- foreach ($header as $test) { 
- foreach ($header as $test) { 
- foreach ($header as $test) { 
- foreach ($header as $test) { 
- foreach ($header as $test) { 
- foreach ($header as $test) { 
- foreach ($header as $test) { 
- $oTemplate->display('footer.tpl'); 
 
	
		Documentation generated on Mon, 13 Jan 2020 04:22:18 +0100 by phpDocumentor 1.4.3